Other Parts Discussed in Thread: C2000WARE
Hi
I am using this example:
C:\ti\c2000\C2000Ware_4_01_00_00\libraries\diagnostic\f28002x\examples\sdl_ex_dcsm_ffi
The problem I encounter is that when I reach to the function DCSM_secureZone1() (in main).
As you can see in the image below:
This function write to the address of the control register to the force secure bit.
See image below:
static inline void DCSM_secureZone1(void) { // // Write to the FORCESEC bit. // HWREGH(DCSMBANK0_Z1_BASE + DCSM_O_Z1_CR)|= DCSM_Z1_CR_FORCESEC; }
After this function executed and secure zone1 The program jump to interrupt below:
static void Interrupt_illegalOperationHandler(void) { // // Something has gone wrong. The CPU has tried to execute an illegal // instruction, generating an illegal instruction trap (ITRAP). ESTOP0; for(;;) { ; } }
My question is why when I make the zone secure it will jump to this interrupt? The program didn’t try to change
Anything yet in the secure zone( the array).
What am I missing here?
I tried to comment the ESTOP0 command and it doesn't matter, it always come back to this
Interrupt and I can't continue my debug no matter what I do.
Thanks
Yoav