MCLoader & XPort


Results 1 to 40 of 45

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Look at this

    This is a BAD example because we Erase the first block and can never enter the loader again after RESETTING the PIC.

    But atleast this code writes what it should.


    for i=0 to 4 'erase first 5 blocks
    Flash = n*64
    ERASECODE Flash
    next i

    for n=0 to 255
    FLASH=n
    WRITECODE FLASH, n
    next n


    I didn't really look into why, but your software does not write correctly. As I have said a million times:

    DO NOT USE FORMULAS INTO READCODE AND WRITECODE

    It just doesn't seem to work (no arrays, no cute stuff, nothing except as below!)

    use ONLY a WORD variable for the address and a BYTE or WORD variable for DATA


    /me
    Attached Images Attached Images  
    Last edited by Jumper; - 25th August 2006 at 15:11.

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