Single stepping through PWMSP001_CNT001_Example1_RelaxKit produces BusFault

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
I am using DAVE-3.1.8 with all updates installed.

I am debugging 'PWMSP001_CNT001_Example1_RelaxKit' on a RelaxKit board, and I am stepping through the code. I am entering the DAVE_Init function (using F5) then executing each function (using F6), then when I get to the end of the function, F5 does not return to main. Interrupting the program indicates that it is spending time in 'BusFault_Handler'.

How did it get there?

If I start the debug session then let it run, the program runs as expected.
0 Likes
2 Replies
Not applicable
Hi Florin,

I have no problem on stepping through the code using both F5 & F6. I'm using XMC4500 Relax Lite Kit-V1.

BR,
Zain
0 Likes
Not applicable
I have not tried this specific example, but I have often had a program get stuck in the BusFault_Handler. This has happened when I have had illegal pointers or performed illegal register writes..

/Åse Maj
0 Likes