s32k146 RCM-SSRS SWDOG Abnormal Set

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

s32k146 RCM-SSRS SWDOG Abnormal Set

723 Views
luhaiou
Contributor II

Dear NXP,

My target chip is S32K146.

When I am debugging online, the program hasn't run yet and stops at the beginning of the main function.

I found that the RCM-SSRS SWDOG was set.

RCM-SSRS SWDOG is only set after the first click on the debug button. It is normally cleared after clicking the restart button.

Looking forward to NXP's explanation, thank you very much.

Tags (1)
0 Kudos
Reply
3 Replies

625 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @luhaiou,

The SSRS bits include status flags to indicate all reset sources since the last POR or LVD
that have not been cleared by software. 

Also, the SWDOG bit reads: Indicates a reset has been caused by the watchdog timer timing out. This reset source can be blocked by disabling the watchdog.

This means that the WDOG runs and expires before connecting the debugger. If you are using S32K1 SDK, you can use the DISABLE_WDOG symbol to disable the WDOG: S32K118 Watchdog Issue.

Best regards,
Julián

 

0 Kudos
Reply

610 Views
luhaiou
Contributor II

I have already used the DISABLE_WDOG symbol to disable the WDOG.

But When I am debugging online, the program hasn't run yet and stops at the beginning of the main function.

I found that the RCM-SSRS SWDOG was set.

RCM-SSRS SWDOG is only set after the first click on the debug button. It is normally cleared after clicking the restart button.

Looking forward to NXP's explanation, thank you very much.

0 Kudos
Reply

595 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @luhaiou,

What is inside your routine? Does this also happen with an example code? After starting debug session, debugger should assert reset by external pin:

Snag_173c4d.png

Do you clear the RCM-SSRS register by code anywhere? Also, please share which SDK or RTD version you are using so I can test it on my side.

Best regards,
Julián

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2344378%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Es32k146%20RCM-SSRS%20SWDOG%20%20Abnormal%20Set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2344378%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20NXP%2C%3C%2FP%3E%3CP%3EMy%20target%20chip%20is%20S32K146.%3C%2FP%3E%3CP%3EWhen%20I%20am%20debugging%20online%2C%20the%20program%20hasn't%20run%20yet%20and%20stops%20at%20the%20beginning%20of%20the%20main%20function.%3C%2FP%3E%3CP%3EI%20found%20that%20the%20RCM-SSRS%20SWDOG%20was%20set.%3C%2FP%3E%3CP%3ERCM-SSRS%20SWDOG%20is%20only%20set%20after%20the%20first%20click%20on%20the%20debug%20button.%20It%20is%20normally%20cleared%20after%20clicking%20the%20restart%20button.%3C%2FP%3E%3CP%3ELooking%20forward%20to%20NXP's%20explanation%2C%20thank%20you%20very%20much.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2345794%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k146%20RCM-SSRS%20SWDOG%20%20Abnormal%20Set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2345794%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F62298%22%20target%3D%22_blank%22%3E%40luhaiou%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThe%20SSRS%20bits%20include%20status%20flags%20to%20indicate%20all%20reset%20sources%20since%20the%20last%20POR%20or%20LVD%3CBR%20%2F%3Ethat%20have%20not%20been%20cleared%20by%20software.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%2C%20the%20SWDOG%20bit%20reads%3A%26nbsp%3BIndicates%20a%20reset%20has%20been%20caused%20by%20the%20watchdog%20timer%20timing%20out.%20This%20reset%20source%20can%20be%20blocked%20by%20disabling%20the%20watchdog.%3C%2FP%3E%0A%3CP%3EThis%20means%20that%20the%26nbsp%3BWDOG%20runs%20and%20expires%20before%20connecting%20the%20debugger.%20If%20you%20are%20using%20S32K1%20SDK%2C%20you%20can%20use%20the%26nbsp%3B%3CSTRONG%3EDISABLE_WDOG%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3Bsymbol%20to%20disable%20the%20WDOG%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K118-Watchdog-Issue%2Fm-p%2F1875431%22%20target%3D%22_blank%22%3ES32K118%20Watchdog%20Issue%3C%2FA%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2345941%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k146%20RCM-SSRS%20SWDOG%20%20Abnormal%20Set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2345941%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSTRONG%3EI%20have%20already%20used%20the%20DISABLE_WDOG%20symbol%20to%20disable%20the%20WDOG.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EBut%20When%20I%20am%20debugging%20online%2C%20the%20program%20hasn't%20run%20yet%20and%20stops%20at%20the%20beginning%20of%20the%20main%20function.%3C%2FP%3E%3CP%3EI%20found%20that%20the%20RCM-SSRS%20SWDOG%20was%20set.%3C%2FP%3E%3CP%3ERCM-SSRS%20SWDOG%20is%20only%20set%20after%20the%20first%20click%20on%20the%20debug%20button.%20It%20is%20normally%20cleared%20after%20clicking%20the%20restart%20button.%3C%2FP%3E%3CP%3ELooking%20forward%20to%20NXP's%20explanation%2C%20thank%20you%20very%20much.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2346564%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k146%20RCM-SSRS%20SWDOG%20%20Abnormal%20Set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2346564%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F62298%22%20target%3D%22_blank%22%3E%40luhaiou%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EWhat%20is%20inside%20your%20routine%3F%20Does%20this%20also%20happen%20with%20an%20example%20code%3F%26nbsp%3BAfter%20starting%20debug%20session%2C%20debugger%20should%20assert%20reset%20by%20external%20pin%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Snag_173c4d.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snag_173c4d.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F381471i27B4AE3222E3E796%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Snag_173c4d.png%22%20alt%3D%22Snag_173c4d.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EDo%20you%20clear%20the%26nbsp%3BRCM-SSRS%20register%20by%20code%20anywhere%3F%20Also%2C%20please%20share%20which%20SDK%20or%20RTD%20version%20you%20are%20using%20so%20I%20can%20test%20it%20on%20my%20side.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%3C%2FLINGO-BODY%3E