Surely a boot loader can’t be written in a few instructions...
Have you scrolled right down the bottom of your hex file when only the boot loader is loaded?
I think it would be written to the last locations it could fit.
Surely a boot loader can’t be written in a few instructions...
Have you scrolled right down the bottom of your hex file when only the boot loader is loaded?
I think it would be written to the last locations it could fit.
Art, I think the bootloader contains the "goto" section at the start, and then the actual loader is at the end of the code space as shown below and confirmed in the attachment.
@Henrik, Line added to the main code - thanks
It's still flakey, but seems to work 8 out of 10 times !
Cheers guys
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.
Bookmarks