difference between USER mode and USER mode with HAR

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

cross mob
Not applicable
Hi,
What is the major difference between User mode and User mode with HAR in in BMI selection???
0 Likes
1 Reply
chismo
Employee
Employee
First like received
Hello,

From the DAVE BMI selection drop down list, there are altogether 3 user modes:
1) User mode (productive), no debug
2) User mode (debug)
3) User mode (HAR)

The 3rd one is user mode debug with halt after reset.
Therefore it is the same as the 2nd mode, except that the CPU is stalled upon exit from SSW and before the first user instruction.

For example, on a XMC1200 boot kit, you can observe:
- when BMI is user mode debug, the existing application code runs when USB cable is connected (debug not yet started)
- whereas when BMI is user mode HAR, the same code does not begin execution since CPU is stalled.

Regards,
Min Wei
0 Likes