How to cause a software reset on AURIX?

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

cross mob
User17740
Level 4
Level 4
First solution authored First like received
Hi all,

could you please help me with the following: To cause a software reset on AURIX while executing code from CPU0 I am writing a 0 to the WDTCPU0CON0 register. is this correct?

Thank you!

Best regards
B.


#8042000 12003
0 Likes
4 Replies
User18151
Level 3
Level 3
First like received First solution authored
Hi Bernie,

While this will cause a reset (depending on what is configured for the RSTCON.SMU, default is an application reset).
Within the RSTCON.SW is a configuration to allow you to configure a Software Reset (default is an application reset).

To issue a software reset, you need to read the SWRSTCON register, maintain the bit values for 15..8 and additionally set the bit SWRSTREQ. When written, this will issue a reset (note: this register is EINIT protected).
After a reset occurs, the user can observe that a SW reset occurred by querying the RSTSTAT register.

Best regards
Christine
0 Likes
teoBits
Employee
Employee
5 sign-ins 100 replies posted 50 replies posted
Hello Bernie,

You can find a code example project for the triggering reset and detecting the source here: Reset training code example.
this example also comes with a tutorial, which can be found here: SCU Reset tutorial.


If you are interested in other modules and you want to start programming for AURIX™, you can get the new Integrated Development Environment (IDE) here: AURIX™ Development Studio and get inspired by numerous other trainings from here: AURIX™ Trainings.

If you are not familiar with Eclipse based IDE’s checkout the Getting Started guide!

Hope it helps,
teoBits
0 Likes
Anonymous
Not applicable
Sorry to awake this old post, but does anyone know how to perform a reset to the board after flashing it with memtool?
To be clear, I want to reset the board via a command line from the PC since Memtool doesn't reset the board after disconnect.
0 Likes
VincentWan
Employee
Employee
50 replies posted 5 sign-ins First like received
Hi

maybe u can try DAS?
it is available when u install Memtool.

Windows -> DAS -> DAS Device scanner -> Start DAS server -> Installed servers -> UDAS -> Start

u should see Tricore Family
then click 'start client'
u should be able to see 'Reset' button
0 Likes