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.

TDA4VM: Trap function

Part Number: TDA4VM


Hi TI,

We have two question when testing illegal address access. 

1. We found that when test code execute to "*testPtr1 = 0xff;", SW will jump to Trap, but we want to know why it doesn't go to trap at "*testPtr0 = 0xff;"

2. During debug, the behavior is OK, SW will enter trap function once and leave(SUBS PC, R14, #8 at end of trap). But when running without debug mode,  it enters trap function twice. Do you have any idea why behavior is different?

Blew is our test code.

uint32* testPtr0 = (uint32*)0xf3000001;

uint32* testPtr1 = (uint32*)0x3000000;

uint32* testPtr2 = (uint32*)0x73000001;

 

uint32 testVal0;

uint32 testVal1;

uint32 testVal2;

 

*testPtr0 = 0xff;

*testPtr1 = 0xff;

*testPtr2 = 0xff;

Thank you!

Zhihua