Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
User16898
Level 4
Level 4
Hi,

I was wondering what happens in following situation:

1. I uploaded .hex file into Aurix 2G (tricore 1.6 architecture) microcontroler via memetool
2. I ran program
3. Program crash ( null pointer or other trap)

what system do next ?
It goes to reset state or, its doing nothing ( NOP operation) or reset itself ?
0 Likes
1 Reply
NeMa_4793301
Level 6
Level 6
10 likes received 10 solutions authored 5 solutions authored
It depends on what your trap handler does. Most compilers just enter an infinite loop after a DEBUG trap. If no debugger is connected, it depends on whether your application has disabled the watchdogs:
- with watchdogs disabled, the CPU will stay stuck in the trap handler infinite loop
- with watchdogs enabled, the watchdogs will eventually time out, and unless you've reprogrammed the alarm registers, this will eventually cause a system reset.
0 Likes