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

How to build code when code split between ROM/RAM

For the 8051 code space, if I have some code in ROM and some in RAM and I am using bank switching, how should I build my code? My specific question is with regards to RAM updates. I would want to be able to update the code in RAM and yet have the same ROM code.

What process should I follow for compilation, linking, data segments management etc? Do I need to create libraries? Any pointers will be helpful. thanks!

Parents
  • The 8051 architecture (and, therefore, the C51 tools) neither knows nor cares about RAM or ROM or any other memory technology - all it sees is CODE space and the various data spaces.

    You need to explain how you intend to achieve updatable code in RAM for people to be able to explain what tool configuration(s) might be necessary...

Reply
  • The 8051 architecture (and, therefore, the C51 tools) neither knows nor cares about RAM or ROM or any other memory technology - all it sees is CODE space and the various data spaces.

    You need to explain how you intend to achieve updatable code in RAM for people to be able to explain what tool configuration(s) might be necessary...

Children