??? 12/18/09 01:03 Read: times |
#171708 - explanation Responding to: ???'s previous message |
Erik and Andy thanks for the feedback.
My boot loader code has to run between 0x0000 to 0x09ff. The application code starts at 0x0a00. In my application code I should be able to go in to boot loader code (which is in between 0x0000 to 0x09ff) if required in order to update my application code. I have written programs in assembly 8051 which work perfectly fine this way. I send a command to the application code to switch to boot loader mode and the code jumps to 0x000. Also when I compile my program I make sure that the interrupts are correctly vectored to the new location. I should be able to switch from oX0a00 location to 0X000 and stay there till I am done with the boot loader functions where in I erase the code between 0x0a00 to 0x8e00(a random location that I know for sure is within my code capacity). Then I rewrite the flash memory from 0x0a00 to 0x8e00 with new program code. |