I am trying to run a code in F28069 from FLASH. The delay routine from file "F28069_usDelay.asm" instructs to copy the "ramfuncs" from flash to ram if running from flash. How could I do that?
The F28069_usDelay.asm file has following code
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
*IMPORTANT*
;// IF RUNNING FROM FLASH, PLEASE COPY OVER THE SECTION "ramfuncs" FROM FLASH
;// TO RAM PRIOR TO CALLING InitSysCtrl(). THIS PREVENTS THE MCU FROM THROWING AN EXCEPTION
;// WHEN A CALL TO DELAY_US() IS MADE.
;//
.def _DSP28x_usDelay
.sect "ramfuncs"
.global __DSP28x_usDelay
_DSP28x_usDelay:
SUB ACC,#1
BF _DSP28x_usDelay,GEQ ;; Loop if ACC >= 0
LRETR
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////