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.

Flash memory in Piccolo

Other Parts Discussed in Thread: TMS320F28035

Hello all!, I trying to program a tms320f28035 into its flash memory. For this I select the corresponding .cmd file, and configure the FLASH memory by writting the FlashRegs registers. The configuration that I use is the next:

asm(" EALLOW"); // Enable EALLOW protected register access
FlashRegs.FPWR.bit.PWR = 3; // Flash set to active mode
FlashRegs.FSTATUS.bit.V3STAT = 1; // Clear the 3VSTAT bit
FlashRegs.FSTDBYWAIT.bit.STDBYWAIT = 0x01FF; // Sleep to standby cycles
FlashRegs.FACTIVEWAIT.bit.ACTIVEWAIT = 0x01FF; // Standby to active cycles
FlashRegs.FBANKWAIT.bit.RANDWAIT = 3; // F280x Random access wait states
FlashRegs.FBANKWAIT.bit.PAGEWAIT = 3; // F280x Paged access wait states
FlashRegs.FOTPWAIT.bit.OTPWAIT = 5; // F280x OTP wait states
FlashRegs.FOPT.bit.ENPIPE = 1; // Enable the flash pipeline
asm(" EDIS"); // Disable EALLOW protected register access

asm(" RPT #6 || NOP"); // Takes 8 cycles to execute

This configuration is the same that the examples in control suite. When I program the DSP and runs without debugger, the DSP don't works. If I connect the debuger and pause the code execution, the program pointer is in unknow address without code...  however, if I put a breakpoint after PAGEWAIT configuration, and run again, the code runs correctly. I'm sure that the error is in FLASH configuration... maybe in the PAGEWAIT but this configuration works in examples....  Any idea??? Thanks!!!