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.

unable to run code from flash

I am new to TI and working on picolo 28069 device. The problem I am facing is that whenever I put the device in debug mode, the functioning is OK but as soon as I power OFF/ON the device the code needs to be reflashed. That is, it seems that the code is not getting flashed. I am using XDS100V2 tool. As per the info from forum contents, I have already added F28069.cmd. My main routine looks like this ..

void main(void)
{
// Step 1. Initialize System Control:
// PLL, WatchDog, enable Peripheral Clocks
// This example function is found in the DSP2803x_SysCtrl.c file.
InitSysCtrl();

InitPeripheralClocks();

InitAdc();

InitCmp();
InitPieCtrl();

// Disable CPU interrupts and clear all CPU interrupt flags:
IER = 0x0000;
IFR = 0x0000;


// This function is found in F2806x_PieVect.c.
InitPieVectTable();


// The RamfuncsLoadStart, RamfuncsLoadSize, and RamfuncsRunStart
// symbols are created by the linker. Refer to the F2808.cmd file.
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (Uint32)&RamfuncsLoadSize);

// Call Flash Initialization to setup flash waitstates
// This function must reside in RAM
InitFlash();

// Enable global Interrupts and higher priority real-time debug events:
EINT; // Enable Global interrupt INTM