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.
I get this error when I turn optimizations off. If I set the opt. level to 2, the error does not occur. However I sometimes need to turn off optimization in order to run the debugger. Is there a way to get past this error?
I did see a similar posting on the forum, but the answer appeared to refer to somewhere deep in the project build properties. I would have cut and pasted it here but clicking a link on your web site (e.g., New Question) always obliterates the existing browser tab instead of opening a new tab. So nothing to cut unless I go back and lose what I've entered so far...
Some FYI: My project is taken from a TI sample named pfc3phvienna_F2837x. At this point I have made very few changes. The sample build properties were set up to load the program into Flash. I have not changed that.
Hey Fred,
Often times the example projects only put the .text and .bss sections into a single memory section. This can cause linking to fail if you add additional code or variables, which is what I expect to have happened in your case.
Look in the project for a *.cmd file. Inside you can modify this file to distribute your text section across multiple memory spaces using the >> operator. You can also look in the build folder for a file with a *.map extension. This file will show how the linker tried to allocate your sections and will also show the sections that failed to allocate. This information will tell you which section you need to add memory to. There is also a great guide on linker command files here:
https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html
Hope this helps!!
Trey