AnsweredAssumed Answered

Store a variable in ROM/FLASH

Question asked by Nathan Zimmerman on Aug 31, 2014
Latest reply on Mar 21, 2017 by Yadhukrishnan V M

Hey all,

I have an array in global space such as: const char myArray[] = "Hello World"

 

Codewarrior(10.5) stores this data somewhere in RAM. How do I force this into flash with minimum effort? Most other IDEs/Compilers i've worked with have had very simple compiler directives to do this such as __Flash ..ect. I can't  seem to figure it out for code warrior. I know I can modify the linker to allocate a region in flash but that seems abit silly that I would have to do that to simply store a given variable in flash. Is there any practical solution?

Outcomes