Hello,
The --ramfunc=on option is equivalent to specifying the attribute on all functions in translations units compiled with the option, with no source modification required.
Does "all functions" include the "main" function ,as my understanding ,we need to use the memcpy function to copy the functions in the TI.ramfunc. from flash to RAM in the main function, so main function will be executed in flash, right?
So does it mean "all functions except main function"?
On flash-based devices, the BINIT functionality may be used to automatically copy the code to RAM for execution at boot:
.TI.ramfunc : {} load=FLASH, run=RAM, table(BINIT)
what does this mean? Does it mean we do not need to use memcpy function to copy the function from flash to ram and it will finish it automatically?