LM3S9B96 constant section for rodata
Hi,
Any body knows how to place the constant data into external flash? I modified the linker file and can see the const data have been placed into external flash from the memory usage. But the question is how to load the const data into external flash? I tried to modify the loader file just like Olimex LPC-2478-STL examples, but no success. Any suggestions are appreciated!!! Thanks!
-Tekkon
-
I got my bootloader working which can load the constant data into external flash and code into internal flash. But when in the debugging process, the debugger loader(in the default directory) always failed to load the file into external.
What I am currently doing is using "<ProgramSection alignment="4" load="Yes" name=".FLASHCONST"/>" when generating the code for external. After loading the constant data into external, I have to change it back to "<ProgramSection alignment="4" load="No" name=".FLASHCONST"/>" for the debugger, otherwise, the debugger loader always failed when trying to load the FLASHCONST section into external and I can not start debugging.
Is there any good idea that I don't have to modify the flash placement file every time when I start debugging?
Please sign in to leave a comment.
Comments
1 comment