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

XC167 - write data to flash memory

Hi at all!
I have to save some configuration Data to the flash rom of a xc167CI processor. Can I use the program flash? I don't have any experience with this topic. How do I have to config the L166 Locate user classes and user sections. Can I use the application not 138 which is provided by Keil? Does anybody have such an example program? Please contact me through my email adress (walterbader(at)aon.at). Thanks in advance.
Regards,
WAlter

  • Ok, I modified the Keil application note by adding a calibration (NCONST) class and sent it to you as an example, but I ran into a question that perhaps you are someone else could answer. When defining a particular class (NCONST) is there a linker command to make this class exclusive (or unique)? I had to add dummy data to fill up the rest of 8K sector as not to touch other NCONST data that would be located.

    This feature is available on other toolchains that I have used but I could not figure it out for the Keil. Any suggestions would be appreciated.