Part Number: TMS320F28069F
Dear team:
When I debug lab02b, the program can run normally in flash without encrypting the program, but the program can't run after encryption.
I see the following code in the program:
#ifdef CSM_ENABLE
//copy .econst to unsecure RAM
if(*econst_end - *econst_start)
{
memCopy((uint16_t *)&econst_start,(uint16_t *)&econst_end,(uint16_t *)&econst_ram_load);
}
//copy .switch ot unsecure RAM
if(*switch_end - *switch_start)
{
memCopy((uint16_t *)&switch_start,(uint16_t *)&switch_end,(uint16_t *)&switch_ram_load);
}
#endif
When I enable this code, CCS prompts econst_end/econst_start/econst_ram_load is not defined. My question is:
1, Should this code be enabled? How can I set econst if it should be enabled_ end/econst_ start/econst_ ram_ Load related definitions?
2, After encryption, will the system be divided into encrypted area and unencrypted area? Can these two areas call each other directly? If not, what should be done?
Best ragards