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.

question for RAM

Other Parts Discussed in Thread: TMS570LS3137

My code is generated from HAL. Cpu is tms570ls3137

My program have defined some static array, for example:

const ss[10]={1,1,1,1};

I found that the value of  "ss" array have changed when program run into main()

It is possible to been changed from "sys_startup.c".

Is it right? This CPU does not allow the definition of static data?

Give me some suggestion ,thank you !

  • Hi,

    Static data such as const are generally stored in flash memory.
    In this case(HAL generated code) the .const section should reside in the FLASH0 | FLASH1 region in the sys_link.cmd. Can you double check in your linker file, if the .const section is mapped properly to Flash region?

    Regards,
    Praveen