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:
|
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);
|