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 update a variable in CODE space?

I need to keep a critical variable in CODE space (target: c8051F320). What is the easiest way for updating it in C.

Parents
  • The 8051 cannot write to code space.

    If your hardware happens to map code memory into the xdata space as well as code space(a "von Neumann" memory architecture), then you can write to the address in xdata that corresponds to the proper place in code memory.

Reply
  • The 8051 cannot write to code space.

    If your hardware happens to map code memory into the xdata space as well as code space(a "von Neumann" memory architecture), then you can write to the address in xdata that corresponds to the proper place in code memory.

Children