Issues with a bootloader


Results 1 to 13 of 13

Threaded View

  1. #13
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Issues with a bootloader

    If the boot loader can write your program over serial the pic must support program memory read/write.
    So you should be able to check if the loader exists with your own pic program.
    If you think you're overwriting it with your program you'd only need to check the first word is correct.
    Code:
    pword var word
    index var word
    
    index = $7F40
    LCDOUT ... clear screen and home command
    READCODE index,pword
    IF pword = $700E THEN
    LCDOUT “  Loader exists   "
    ELSE
    LCDOUT “Loader Overwrite"
    ENDIF
    Last edited by Art; - 15th May 2015 at 00:48.

Similar Threads

  1. pic18F6722 issues
    By ptig185 in forum General
    Replies: 8
    Last Post: - 2nd September 2011, 17:37
  2. EEPROM issues
    By timmers in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th March 2010, 16:19
  3. Comparator Issues
    By Freman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd May 2008, 12:58
  4. Pulsein issues...
    By cpayne in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th April 2006, 18:45

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