MPC5748G SWT module

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5748G SWT module

896 Views
Ada_Lovelace
Contributor IV

Hi, I'm using SWT module now. My code can't realize the reset function. This is my code. I don't know what's wrong with my code. Can you give me some guidance?

This is my clock configuration

Ada_Lovelace_1-1650766622556.png

This is my watchdog initialization configuration

Ada_Lovelace_2-1650766791063.png

In addition, Does the reset module need to be configured manually? Or does SWT timeout automatically trigger the route to reset?Can you give me some guidance? thank you.

0 Kudos
3 Replies

861 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

If I understood you correctly, you want to generate reset on SWT_0 timeout, right?

There is nothing special, your reset will be generated if you enable SWT (enabled by default) and you wont service it.

petervlna_0-1651044165513.png

Have in mind that you cant debug it, as debugger is by default disabling SWT (so you can debug).

Best regards,

Peter

 

0 Kudos

860 Views
Ada_Lovelace
Contributor IV

hi,

Thank you for your reply.

I'm using boot loader. Can you help me see if my watchdog configuration is correct? If there is any problem with my code, please guide me, thank you.

Ada_Lovelace_0-1651045594246.png

Ada_Lovelace_1-1651045687077.png

 

Ada_Lovelace_2-1651045721377.png

 

Ada_Lovelace_3-1651045754197.png

 

Ada_Lovelace_4-1651045778732.png

 

 

0 Kudos

834 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I have just tested it and it is working with no issues:

You simply set TO, enable SWT and enable watchdog in your debugger(in case you want to test it in debug mode).

Reset will occur according to settings of SWT_CR.

petervlna_1-1651220856686.png

 

Best regards,

Peter

 

0 Kudos