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.
Hi,
I'm writing a code and it's getting bigger. I ran into a problem today. Apparently, my code is bigger than the memory defined in my linker script file (.cmd)
Here is a summary.
1) The CCS says my ".text" size = 0x2a039. (-->bigger than before)
2) My ".text" section in the cmd file.
a) before : FLASH1 ~ FLASH6
b) after : FLASH1 ~ FLASH7 (--> I added FLASH7 to accommodate the bigger text size)
Here is the result.
1) No difference. It doesn't make any change. How can I fix this?
Thanks,
Casey
p.s.
I attached linker scripters (before & after) and error messages (before & after).
Hi Casey,
Looks like the Flash sections defined are not large enough to fit the code size you mentioned.
You can update the linker command file to following, where you combine the size of FLASH5, FLASH6 and FLASH7 and add it to FLASH4. That should fit your code. Make sure to comment out FLASH5, FLASH6 and FLASH7 defined in the linker command file and allocate those sections used in the .cmd file to some other sections.
FLASH4 : origin = 0x088000, length = 0x020000 /* on-chip Flash */
//FLASH5 : origin = 0x090000, length = 0x008000 /* on-chip Flash */
//FLASH6 : origin = 0x098000, length = 0x008000 /* on-chip Flash */
//FLASH7 : origin = 0x0A0000, length = 0x008000 /* on-chip Flash */
Best Regards,
Nirav