S32M244 WDOG fast test question

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

S32M244 WDOG fast test question

Jump to solution
1,434 Views
WendyWang
Contributor I

Hi ,

      I done a WDOG fast test, The Watchdog Control and Status Register (CS)'s value be setting 0x25a8(TST=01), But after watchdog reset(RCM->SRS shows 0x20) it alway shows 0x2520(TST=00). Seems the TST be cleared.

      In the S32M24x Reference Manual, Any other reset except POR does not affect the value of the TST field.  

Q:Why it different as the reference manual?   

WendyWang_0-1767509508906.png

 

0 Kudos
Reply
1 Solution
1,361 Views
danielmartynek
NXP TechSupport
NXP TechSupport

HI @WendyWang,

In the startup code of the project, you might have this:

danielmartynek_0-1767600926471.png

 

danielmartynek_1-1767600961623.png

 

That would explain the behavior.

 

BR, Daniel

 

 

View solution in original post

0 Kudos
Reply
5 Replies
1,397 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @WendyWang,

Are you certain that the startup code is not reconfiguring the WDOG?

Here is an example for your reference:
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K116-WDOG-Fast-Test/ta-p/1103420

 

Regards,

Daniel

0 Kudos
Reply
1,383 Views
WendyWang
Contributor I

Hi Daniel,

My project base on the RTD( SW32K1_S32M24X_RTD_R21-11_3.0.0_D2503), and I have reference the example code, just change it to RTD version(let WDOG_IP_ENABLE_TEST_MODE to STD_ON) and before the test init the WDOG (because i found after power on the WDOG is disable, but  I read the CS value before the init code then base it to do the test). I'm sure i did not add the startup code to reconfiguring the WDOG.


And I try read the CS's value in the "void SystemInit(void)" , it always show 0x2520 too. According the S32M24x Reference Manual, it should be 0x2580.  But I cannot found any code reconfiguring the WDOG before the "void SystemInit(void)" .

WendyWang_0-1767581347293.png

 

0 Kudos
Reply
1,362 Views
danielmartynek
NXP TechSupport
NXP TechSupport

HI @WendyWang,

In the startup code of the project, you might have this:

danielmartynek_0-1767600926471.png

 

danielmartynek_1-1767600961623.png

 

That would explain the behavior.

 

BR, Daniel

 

 

0 Kudos
Reply
1,358 Views
WendyWang
Contributor I
Ok, I see .

Is that means for the WDOG fast test I need del this code?

Thanks
0 Kudos
Reply
1,329 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Yes, but remember that the WDOG is enabled by default and needs to be serviced or reconfigured before its timeout period expires.

 

Regards,

Daniel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2270930%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32M244%20WDOG%20fast%20test%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270930%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%2C%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20I%20done%20a%20WDOG%20fast%20test%2C%20The%20Watchdog%20Control%20and%20Status%20Register%20(CS)'s%20value%20be%20setting%200x25a8(TST%3D01)%2C%20But%20after%20watchdog%20reset(RCM-%26gt%3BSRS%20shows%200x20)%20it%20alway%20shows%200x2520(TST%3D00).%20Seems%20the%20TST%20be%20cleared.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20In%20the%20S32M24x%20Reference%20Manual%2C%26nbsp%3BAny%20other%20reset%20except%26nbsp%3BPOR%20does%20not%20affect%20the%20value%20of%20the%20TST%20field.%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EQ%EF%BC%9AWhy%20it%20different%20as%20the%20reference%20manual%3F%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22WendyWang_0-1767509508906.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22WendyWang_0-1767509508906.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371640i152A91EFEB0C05AC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22WendyWang_0-1767509508906.png%22%20alt%3D%22WendyWang_0-1767509508906.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2272925%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32M244%20WDOG%20fast%20test%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2272925%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EOk%2C%20I%20see%20.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20that%20means%20for%20the%20WDOG%20fast%20test%20I%20need%20del%20this%20code%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2272802%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32M244%20WDOG%20fast%20test%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2272802%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%2F258447%22%20target%3D%22_blank%22%3E%40WendyWang%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EIn%20the%20startup%20code%20of%20the%20project%2C%20you%20might%20have%20this%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1767600926471.png%22%20style%3D%22width%3A%20613px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1767600926471.png%22%20style%3D%22width%3A%20613px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371700i5D11F33F3D7EEFB2%2Fimage-dimensions%2F613x288%3Fv%3Dv2%22%20width%3D%22613%22%20height%3D%22288%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1767600926471.png%22%20alt%3D%22danielmartynek_0-1767600926471.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_1-1767600961623.png%22%20style%3D%22width%3A%20356px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_1-1767600961623.png%22%20style%3D%22width%3A%20356px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371701iF527D45E8F681D98%2Fimage-dimensions%2F356x90%3Fv%3Dv2%22%20width%3D%22356%22%20height%3D%2290%22%20role%3D%22button%22%20title%3D%22danielmartynek_1-1767600961623.png%22%20alt%3D%22danielmartynek_1-1767600961623.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThat%20would%20explain%20the%20behavior.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20Daniel%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2271027%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32M244%20WDOG%20fast%20test%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2271027%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Daniel%2C%3C%2FP%3E%3CP%3EMy%20project%20base%20on%20the%20RTD(%20SW32K1_S32M24X_RTD_R21-11_3.0.0_D2503)%2C%20and%20I%20have%20reference%20the%20example%20code%2C%20just%20change%20it%20to%20RTD%20version(let%20WDOG_IP_ENABLE_TEST_MODE%20to%20STD_ON)%20and%20before%20the%20test%20init%20the%20WDOG%20(because%20i%20found%20after%20power%20on%20the%20WDOG%26nbsp%3Bis%20disable%2C%20but%26nbsp%3B%20I%20read%20the%20CS%20value%20before%20the%20init%20code%20then%20base%20it%20to%20do%20the%20test).%20I'm%20sure%20i%20did%20not%20add%20the%20startup%20code%20to%20reconfiguring%20the%20WDOG.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EAnd%20I%20try%20read%20the%20CS's%20value%20in%20the%20%22void%20SystemInit(void)%22%20%2C%20it%20always%20show%200x2520%20too.%20According%20the%20S32M24x%20Reference%20Manual%2C%20it%20should%20be%200x2580.%26nbsp%3B%20But%20I%20cannot%20found%20any%20code%26nbsp%3Breconfiguring%20the%20WDOG%20before%20the%20%22void%20SystemInit(void)%22%20.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22WendyWang_0-1767581347293.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22WendyWang_0-1767581347293.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371663i921ED7B081E0B0EE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22WendyWang_0-1767581347293.png%22%20alt%3D%22WendyWang_0-1767581347293.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270961%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32M244%20WDOG%20fast%20test%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270961%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%2F258447%22%20target%3D%22_blank%22%3E%40WendyWang%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EAre%20you%20certain%20that%20the%20startup%20code%20is%20not%20reconfiguring%20the%20WDOG%3F%3C%2FP%3E%0A%3CP%3EHere%20is%20an%20example%20for%20your%20reference%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FExample-S32K116-WDOG-Fast-Test%2Fta-p%2F1103420%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FExample-S32K116-WDOG-Fast-Test%2Fta-p%2F1103420%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E