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.

TMS320F280039C-Q1: Why the global variable be initialized after CPU reset?

Part Number: TMS320F280039C-Q1

Tool/software:

Hi experts,

I ask this question for my customer.

In our RTM, it says just POR reset will initialize RAM, and another reset will not do it.

So they want to realize this function, they will define a global variable, and will initialize it in main(); If it occur POR reset, this value will be initialized, and the application will do some operation; and if occurs CPU reset, this value will not change so application will do other operation.

But in their test, they found if it occurs CPU reset, this value also be initialized.

They connect the debug probe, and click Scripts--EMU_BOOT_FLASH to let the cpu run into flash after CPU reset.

And they define global variable, after run the a=2, this value changes to 2; but after CPU reset, and stop in Device_init, the a change to 0.

But if they don't define it, but change the value of this address in RAM directly, the value of this address will not change after CPU reset.

So they want to know why this is happen?

BRs

Shuqing