Automatic boot/start

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

cross mob
Not applicable
Hi,

I've flashed my XMC2GO kit, but if I remove the power from it, when I plug it back on the application doesn't start automatically.

I think that the application is saved on the flash, because if I do "play" in the IDE it starts running.

How can I automatically boot my application?
0 Likes
4 Replies
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
It should automatically execute the software in the XMC2GO kit when power is provided.
0 Likes
chismo
Employee
Employee
First like received
Hello,

Which BMI mode are you using?
From your description, it sounds like user mode debug with halt after reset (HAR).
If that is the case, can you use DAVE to switch the mode to user mode debug (debug) instead?

Note that for the XMC2Go kit, you can only use SWD1.

Regards,
Min Wei
0 Likes
Not applicable
Hi,

Thanks for your response.

I already have the BMI selected to SWD1 debug.

The application that was previously on the flash (blink) runned automatically, but the application that I created needs to be started using the run button on CrossStudio.

When I plug the USB, only the power LED turns on and nothing happens.
0 Likes
chismo
Employee
Employee
First like received
Hello,

With SWD1 mode selected for the BMI, the application should be started automatically upon power up.

I have not used CrossStudio before, but can I check the sequence is:
1) connect the USB cable to XMC board, i.e. power up the board. The application should start immediately but for your case it is not?
2) connect the debugger; the device is now reset and halted
3) run/resume the application by clicking the corresponding button on the tool

Are you able to download our DAVE tool to try?

Regards,
Min Wei
0 Likes