Hi Guys,
https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/535034
Regarding this post I have the following question:
Should I now use
#pragma DATA_SECTION(variable,".TI.ramfunc");
instead of
#pragma DATA_SECTION(variable,"ramfuncs"); ??
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 Guys,
https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/535034
Regarding this post I have the following question:
Should I now use
#pragma DATA_SECTION(variable,".TI.ramfunc");
instead of
#pragma DATA_SECTION(variable,"ramfuncs"); ??
This is typically used for functions and not variables, so I'm not sure why you are doing placing a variable in ramfuncs. I think you meant CODE_SECTION and a function, not DATA_SECTION and a variable.
If you are using the new BINIT feature of 15.x.y C2000 compiler that automatically copies functions from FLASH to RAM, you can do it a couple of different ways (provided you are using TABLE(BINIT) in your sections in your .cmd file).
If you are using the GCC __attribute__((ramfunc)), the section must be called .TI.ramfunc otherwise the linker complains and gives an error.
If you are just using pragma, the memory section can be called whatever you like.
e2e.ti.com/.../526941
processors.wiki.ti.com/.../Placing_functions_in_RAM