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.

Compiler/TMS320F28035: Running Code as Stand Alone Application

Part Number: TMS320F28035

Tool/software: TI C/C++ Compiler

Hello I am trying to use the code as standalone application in 28035. I have been able to flash the code successfully on my custom board.

I have followed the this document -http://www.ti.com/lit/an/spra958l/spra958l.pdf 

I am able to flash code using JTAG. But it does not run as stand alone application.

memcpy((void *)0x000D06, (Uint16 *)&PieVectTableInit+6, 256-6) This causes error of PieVectTableInit not initialized.

So I have commented that line and it Runs in flash but not in standalone mode.

My Procedure is as followed:

 Remove the 28035_RAM_Ink.cmd from my project
 Add the F28035.cmd into my project (Right click on my project -> Add files -> F28035)
 Add the following piece of code into my main function:
 

1
2
3
4
5
/*** Initialize the PIE_RAM ***/
PieCtrlRegs.PIECTRL.bit.ENPIE = 0; // Disable the PIE
asm(" EALLOW"); // Enable EALLOW protected register access
memcpy(&PieVectTable, &PieVectTableInit, 256);
asm(" EDIS"); // Disable EALLOW protected register access
 

.

// Copied time critical code and Flash setup code to RAM
// This includes the following ISR functions: epwm1_timer_isr(), epwm2_timer_isr()
// epwm3_timer_isr and and InitFlash();
   memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (Uint32)&RamfuncsLoadSize);