Tool/software: TI C/C++ Compiler
Hi expert,
This is a grammar problem.
In CMD file for C2000 devices, we always see these:
#ifdef __TI_COMPILER_VERSION__
#if __TI_COMPILER_VERSION__ >= 15009000
.TI.ramfunc : {} LOAD = FLASHD,
RUN = RAMLS0 | RAMLS1 | RAMLS2 |RAMLS3,
LOAD_START(_RamfuncsLoadStart),
LOAD_SIZE(_RamfuncsLoadSize),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart),
RUN_SIZE(_RamfuncsRunSize),
RUN_END(_RamfuncsRunEnd),
PAGE = 0, ALIGN(4)
#else
We can see there is a underscore before "RamfuncsLoadStart". But in the C file, when we use this, we don't have underscore anymore (if we have, there will be an error). Could you tell me the reason?
void cpu1_init(xtal_freq_t xtal, pll_freq_t pll_freq)
{
extern uint16_t RamfuncsRunStart;
extern uint16_t RamfuncsLoadStart;
extern uint16_t RamfuncsLoadSize;
//disable_irq();
DINT;
disable_dog();
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
sys_flash_ctrl_init();
If there is a document to support the reason will be warmly welcomed.
Thanks
Sheldon