MCLoader & XPort


Closed Thread
Results 1 to 40 of 45

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Hmm MPLAB plays tricks with me

    Try the original HIJACKING way since I couldn't get it to work with our own DEFINE the second time I tried it.

    If you are using MPLAB you can look under view and program memory to see what your code looks like.

    Try the original approach:

    1: Change the LOADER_USED line in the LIB
    2: DEFINE LOADER_USED 1 in your code
    3: Compile
    4: Check program memory, there should be code in position 0 and 2 then FFFF until $EB00

    Syntax in PBP can be a little bit tricky. Some functions don't really like that you have a formula as argument. They want to have a WORD or BYTE only.

    /me

  2. #2
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Compile results from your file

    DEFINE LOADER_USED 1
    DEFINE HSER_RXSTA 90h
    define HSER_TXSTA 24h
    DEFINE HSER_BAUD 9600

    This is with the DEFINE LOADER_USED in the lib file like this

    ifdef LOADER_USED
    LIST
    ORG 60160 ; Own loader address
    NOLIST
    endif

    Any luck now??

    /me
    Attached Images Attached Images   

  3. #3
    Join Date
    Aug 2006
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    Jumper,

    It seems like that's better. Here is dump result:
    :4
    :0
    :9E
    :AA
    :FD
    7
    :AE
    :50
    8
    :80
    :E1
    :EF
    :75
    :F0
    :E9
    :50

    But we should be able to do this with a custom DEFINE, no??

    Joe

  4. #4
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Maybe , probably but....

    I didn't really look into this because I never use any other loaders but maybe this forum can come up with an answer.

    This will not be solved today since we have passed Midnight a long time ago here.

    Maybe moving this to a new thread might be a good idea after we have solved these problems. Then all our misstakes will be forgotten......

    /me

  5. #5
    Join Date
    Aug 2006
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    Jumper,

    Looking at the .lst listing. the code appears to start at $EB00, even though the ORG directive specifies 60160

    joe

  6. #6
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default HEX and DEC

    EB00 is 60160

    Remeber some numbers are in Decimal and some in HEX

    /me

  7. #7
    Join Date
    Aug 2006
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    I might be doing the math wrong, but by my calculation EB00 is

    E(15) * 4096 + B(11) * 256 + 0 + 0 = 64256

    Joe

Similar Threads

  1. xport code, have example, confused though
    By kenpo in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 30th March 2009, 19:59
  2. Bootloader and Instant Interrupts Atn:_DT_
    By Josuetas in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 16th May 2007, 01:59
  3. McLoader and 18F2580
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th February 2007, 06:20
  4. xport + connecting 2 networks
    By rf_xport in forum General
    Replies: 0
    Last Post: - 12th July 2006, 06:26
  5. Has anyone used the Lantronics Xport
    By octavio bru in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 14th September 2004, 11:51

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts