This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Custom application

Hi All,

I plan to load custom application or bug correction code in any EEPROM address for my project. This code will be load using serial port. Is it possible to do it?

Thank you.

Best regards,
Akram

Parents Reply Children
  • The 8051 instruction set isn't particularly well suited to writing position-independent code. The processor would need a lot of PC-relative addressing modes for all the branch and jump instructions, as well as data access, and they're just not there.

    You could conceivably store relocation information along with the code, and locate it to the desired address when you programmed the program store (or when you loaded the code, if you don't execute out of the ROM). That will be a fair amount of trouble both for development and for the loader, so you have to decide how much the feature is really worth to you.

    Maybe you'd rather use an ARM7. That ISA is good for writing position-independent code, and the ARM compilers I've used even have options to generate such.