Oct 30, 2018
04:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 30, 2018
04:20 AM
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?
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?
- Tags:
- IFX
2 Replies
Nov 07, 2018
01:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 07, 2018
01:27 PM
Hi,
One reason for your observation could be a stack overflow. Do you have enabled the OS_STKCHECK?
Regards,
Jesus
One reason for your observation could be a stack overflow. Do you have enabled the OS_STKCHECK?
Regards,
Jesus
Nov 08, 2018
12:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 08, 2018
12:59 AM
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.