This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am using a custom board with F280049C for developmental purposes with code running in RAM.
Debugger: Xds110 in 2 wire mode.
Now, as the code size increases, I get linker errors which indicate that all SARAM space has been utilized.
To resolve this issue would it be possible to:
1. RUN new code which is to be tested, from RAM.
2. The older code , which has been tested, remains in FLASH and can be accessed.
This would avoid frequent FLASH programming and also reduce the time to test.
regards.
Amar,
Yes, you can do that. You can keep part of the code in RAM and part in Flash
Are you encountering any issue?
Regards, Santosh
Hello Santosh,
I will be more specific.
1. First I set build > configuration > flash_lib and load flash. Functions on which I am currently working remain in ramfunc. This is the normal flash debug.
2. Now, when I debug again I want to switch back to RAM_lib with function in flash accessible. Does the CMD file have to be modified to access Flash?
This way, I avoid repeated flashing of the device.
regards
Amar
.
Amar,
Yes, you can program the library in flash. Subsequently, you can run those functions from flash and keep remaining functions in RAM. You will need to modify the linker command file, as you mentioned earlier.
Please take a look at this link. This goes through the details and example how to use it.
https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html
Regards, Santosh