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

XMC™ Forum Discussions

User10696
Level 4
Level 4
First solution authored
I have a XMC4500 on a board designed by ourselves. I can download a program and it runs correctly, but if I run it with the debugger the program runs correctly for about 20ms and then ends up in an endless loop in the boot ROM.
I am using RTX and the jump to the boot ROM occurs while in the idle loop.

My questions:
1. How is it possible to end up in the boot ROM from a running program? (It cannot be an invalid pointer in the idle loop)
2. Why does it not just restart, the hardware configuration is correct the first time.
3. What effect can the debugger (Keil ULINKpro) be having to cause this?
0 Likes
2 Replies
jferreira
Employee
Employee
First like received 750 replies posted 500 replies posted
Hi,

One reason for your observation could be a stack overflow. Do you have enabled the OS_STKCHECK?

Regards,
Jesus
0 Likes
User14604
Level 4
Level 4
First solution authored
Any interrupts running which could cause the problem? I'd try commenting all interrupts. If it does not help, try commenting out other code (especially DMA-related) until problem disappears.
0 Likes