Example S32R274 SWT_2 reset trigger GHS716

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

Example S32R274 SWT_2 reset trigger GHS716

Example S32R274 SWT_2 reset trigger GHS716

********************************************************************************
* Detailed Description:
* Test HW:  MPC57xx + S32R274RRUEVB
* Maskset:  1N58R
* Target :  internal_FLASH
* Fsys:     240 MHz PLL with 40 MHz crystal reference for z7 and 120MHz for z4
********************************************************************************
Revision History:
1.0     Apr-02-2019     b21190(Vlna Peter)  Initial Version
1.1    Apr-03-2019     b21190(Vlna Peter)  Added SWT reset reaction
*******************************************************************************/

This example demonstrated the reset trigger on first SWT_2 timeout.

Following screens shows the reset source after code execution in standalone mode and debugger connection afterwards:

pastedImage_1.png

pastedImage_2.png

Attachments
Comments

Hi Peter,

I am working on S32R274 and I need help for SWT_2.

I need your help regarding above code :

I am not able to see the NCFS_CFG0 is getting updated with my value 0x40000000 .

FCCU.NCFS_CFG[0].R = 0x40000000;.

and I can see that, NCF_S0  is showing value 0x00070000.

Below are the screen shot during debug :

SWT_2.PNG

Could please help me,. why this value NCF_S0 = 0x00070000, as I have just configure SWT_2 only.

and why I am not able to see the my written value in NCFS_CFG0.

Thanks !

Hi,

Hmm, and do you performing FCCU configuration in FCCU CONFIG mode?

regards,

Peter

Hi Peter, 

If timeout expires the SWT causes a reset, after this reset next timeout the SWT no longer reset.

I try the interrupt mode and the IR is correctly triggered in both cases but no reset after first reset.

What could be the problem?

What can I check?

Thank in advance.

Salvatore.

Hi petervlna

If timeout expires the SWT causes a reset, after this reset next timeout the SWT no longer reset.

I try the interrupt mode and the IR is correctly triggered in both cases but no reset after first reset.

What could be the problem?

What can I check?

Thank in advance.

Salvatore.

Hi,

Since you did not share much about your test setup, I guess it can be debugger whose preventing the code run or simply disable SWT as most debuggers do automatically.

regards,

Peter

Sorry, I've solved the problem. I had commented FCCU_clear_faults(). Now work.

Thanks

%3CLINGO-SUB%20id%3D%22lingo-sub-1129195%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20S32R274%20SWT_2%20reset%20trigger%20GHS716%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1129195%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%20MPC57xx%20%2B%20S32R274RRUEVB%3CBR%20%2F%3E*%20Maskset%3A%26nbsp%3B%201N58R%3CBR%20%2F%3E*%20Target%20%3A%26nbsp%3B%20internal_FLASH%3CBR%20%2F%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20240%20MHz%20PLL%20with%2040%20MHz%20crystal%20reference%20for%20z7%20and%20120MHz%20for%20z4%3CBR%20%2F%3E********************************************************************************%3CBR%20%2F%3ERevision%20History%3A%3CBR%20%2F%3E1.0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Apr-02-2019%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20b21190(Vlna%20Peter)%26nbsp%3B%20Initial%20Version%3CBR%20%2F%3E1.1%26nbsp%3B%26nbsp%3B%20%26nbsp%3BApr-03-2019%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20b21190(Vlna%20Peter)%26nbsp%3B%20Added%20SWT%20reset%20reaction%3CBR%20%2F%3E*******************************************************************************%2F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThis%20example%20demonstrated%20the%20reset%20trigger%20on%20first%20SWT_2%20timeout.%3C%2FP%3E%3CP%3EFollowing%20screens%20shows%20the%20reset%20source%20after%20code%20execution%20in%20standalone%20mode%20and%20debugger%20connection%20afterwards%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%20style%3D%22width%3A%20969px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67365iAB0D5B47AA85B319%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_1.png%22%20alt%3D%22pastedImage_1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%20style%3D%22width%3A%20719px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67546i9FDB7D494DA98F79%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_2.png%22%20alt%3D%22pastedImage_2.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1129195%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%20MPC57xx%20%2B%20S32R274RRUEVB%3CBR%20%2F%3E*%20Maskset%3A%26nbsp%3B%201N58R%3CBR%20%2F%3E*%20Target%20%3A%26nbsp%3B%20internal_FLASH%3CBR%20%2F%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20240%20MHz%20PLL%20with%2040%20MHz%20crystal%20reference%20for%20z7%20and%20120MHz%20for%20z4%3CBR%20%2F%3E********************************************************************************%3CBR%20%2F%3ERevision%20History%3A%3CBR%20%2F%3E1.0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Apr-02-2019%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20b21190(Vlna%20Peter)%26nbsp%3B%20Initial%20Version%3CBR%20%2F%3E1.1%26nbsp%3B%26nbsp%3B%20%26nbsp%3BApr-03-2019%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20b21190(Vlna%20Peter)%26nbsp%3B%20Added%20SWT%20reset%20reaction%3CBR%20%2F%3E*******************************************************************************%2F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThis%20example%20demonstrated%20the%20reset%20trigger%20on%20first%20SWT_2%20timeout.%3C%2FP%3E%3CP%3EFollowing%20screens%20shows%20the%20reset%20source%20after%20code%20execution%20in%20standalone%20mode%20and%20debugger%20connection%20afterwards%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fskins%2Fimages%2FCD8FDF836FCE0DCD759843D0E68C0057%2Fresponsive_peak%2Fimages%2Fimage_not_found.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fskins%2Fimages%2FCD8FDF836FCE0DCD759843D0E68C0057%2Fresponsive_peak%2Fimages%2Fimage_not_found.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1129201%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20S32R274%20SWT_2%20reset%20trigger%20GHS716%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1129201%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESorry%2C%20I've%20solved%20the%20problem.%20I%20had%20commented%26nbsp%3BFCCU_clear_faults().%20Now%20work.%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1129200%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20S32R274%20SWT_2%20reset%20trigger%20GHS716%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1129200%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3ESince%20you%20did%20not%20share%20much%20about%20your%20test%20setup%2C%20I%20guess%20it%20can%20be%20debugger%20whose%20preventing%20the%20code%20run%20or%20simply%20disable%20SWT%20as%20most%20debuggers%20do%20automatically.%3C%2FP%3E%3CP%3Eregards%2C%3C%2FP%3E%3CP%3EPeter%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1129199%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20S32R274%20SWT_2%20reset%20trigger%20GHS716%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1129199%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EHi%20%3CA%20class%3D%22jx-jive-macro-user%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fpeople%2Fpetervlna%22%20target%3D%22_blank%22%3Epetervlna%3C%2FA%3E%20%2C%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EIf%20timeout%20expires%20the%20SWT%20causes%20a%20reset%2C%20after%20this%20reset%20next%20timeout%20the%20SWT%20no%20longer%20reset.%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EI%20try%20the%20interrupt%20mode%20and%20the%20IR%20is%20correctly%20triggered%20in%20both%20cases%20but%20no%20reset%20after%20first%20reset.%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EWhat%20could%20be%20the%20problem%3F%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EWhat%20can%20I%20check%3F%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EThank%20in%20advance.%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3ESalvatore.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1129198%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20S32R274%20SWT_2%20reset%20trigger%20GHS716%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1129198%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EHi%20Peter%2C%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EIf%20timeout%20expires%20the%20SWT%20causes%20a%20reset%2C%20after%20this%20reset%20next%20timeout%20the%20SWT%20no%20longer%20reset.%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EI%20try%20the%20interrupt%20mode%20and%20the%20IR%20is%20correctly%20triggered%20in%20both%20cases%20but%20no%20reset%20after%20first%20reset.%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EWhat%20could%20be%20the%20problem%3F%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EWhat%20can%20I%20check%3F%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EThank%20in%20advance.%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3ESalvatore.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1129197%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20S32R274%20SWT_2%20reset%20trigger%20GHS716%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1129197%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EHmm%2C%20and%20do%20you%20performing%20FCCU%20configuration%20in%20FCCU%20CONFIG%20mode%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eregards%2C%3C%2FP%3E%3CP%3EPeter%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1129196%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20S32R274%20SWT_2%20reset%20trigger%20GHS716%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1129196%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Peter%2C%3C%2FP%3E%3CP%3EI%20am%20working%20on%20S32R274%20and%20I%20need%20help%20for%20SWT_2.%3C%2FP%3E%3CP%3EI%20need%20your%20help%20regarding%20above%20code%20%3A%3C%2FP%3E%3CP%3EI%20am%20not%20able%20to%20see%20the%26nbsp%3BNCFS_CFG0%20is%20getting%20updated%20with%20my%20value%26nbsp%3B%3CSPAN%20style%3D%22background-color%3A%20transparent%3B%20color%3A%20%233d3d3d%3B%20font-family%3A%20Helvetica%20Neue%2CHelvetica%2CArial%2CLucida%20Grande%2Csans-serif%3B%20font-size%3A%2015px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20bold%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20word-wrap%3A%20break-word%3B%20padding%3A%200px%3B%20margin%3A%200px%3B%22%3E%3CSTRONG%3E0x40000000%3C%2FSTRONG%3E%3C%2FSPAN%3E%20.%3C%2FP%3E%3CP%3E%3CSTRONG%3EFCCU.NCFS_CFG%5B0%5D.R%20%3D%200x40000000%3C%2FSTRONG%3E%3B.%3C%2FP%3E%3CP%3Eand%20I%20can%20see%20that%2C%20NCF_S0%26nbsp%3B%20is%20showing%20value%20%3CSTRONG%3E0x00070000.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EBelow%20are%20the%20screen%20shot%20during%20debug%20%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22SWT_2.PNG%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22SWT_2.PNG%22%20style%3D%22width%3A%20719px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F81953iD9725878CA765BD3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22SWT_2.PNG%22%20alt%3D%22SWT_2.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CIMG%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CP%3E%3C%2FP%3E%3CP%3ECould%20please%20help%20me%2C.%20why%20this%20value%26nbsp%3B%3CSTRONG%3ENCF_S0%20%3D%3C%2FSTRONG%3E%20%3CSPAN%20style%3D%22text-align%3A%20left%3B%20color%3A%20%233d3d3d%3B%20text-transform%3A%20none%3B%20text-indent%3A%200px%3B%20letter-spacing%3A%20normal%3B%20font-family%3A%20Helvetica%20Neue%2CHelvetica%2CArial%2CLucida%20Grande%2Csans-serif%3B%20font-size%3A%2015px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20text-decoration%3A%20none%3B%20word-spacing%3A%200px%3B%20display%3A%20inline%20!important%3B%20white-space%3A%20normal%3B%20word-wrap%3A%20break-word%3B%20orphans%3A%202%3B%20float%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20background-color%3A%20transparent%3B%22%3E%3CSTRONG%3E0x00070000%3C%2FSTRONG%3E%2C%20as%20I%20have%20just%20configure%20%3CSTRONG%3ESWT_2%3C%2FSTRONG%3E%20only.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22text-align%3A%20left%3B%20color%3A%20%233d3d3d%3B%20text-transform%3A%20none%3B%20text-indent%3A%200px%3B%20letter-spacing%3A%20normal%3B%20font-family%3A%20Helvetica%20Neue%2CHelvetica%2CArial%2CLucida%20Grande%2Csans-serif%3B%20font-size%3A%2015px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20text-decoration%3A%20none%3B%20word-spacing%3A%200px%3B%20display%3A%20inline%20!important%3B%20white-space%3A%20normal%3B%20word-wrap%3A%20break-word%3B%20orphans%3A%202%3B%20float%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20background-color%3A%20transparent%3B%22%3Eand%20why%20I%20am%20not%20able%20to%20see%20the%20my%20written%20value%20in%26nbsp%3B%3CSPAN%20style%3D%22-webkit-text-stroke-width%3A%200px%3B%20word-wrap%3A%20break-word%3B%20color%3A%20%233d3d3d%3B%20white-space%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20text-decoration%3A%20none%3B%20display%3A%20inline%20!important%3B%20font-size%3A%2015px%3B%20font-style%3A%20normal%3B%20float%3A%20none%3B%20background-color%3A%20transparent%3B%20text-transform%3A%20none%3B%20word-spacing%3A%200px%3B%20font-variant%3A%20normal%3B%20text-indent%3A%200px%3B%20font-family%3A%20Helvetica%20Neue%2CHelvetica%2CArial%2CLucida%20Grande%2Csans-serif%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%22%3E%3CSTRONG%3ENCFS_CFG0.%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22-webkit-text-stroke-width%3A%200px%3B%20word-wrap%3A%20break-word%3B%20color%3A%20%233d3d3d%3B%20white-space%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20text-decoration%3A%20none%3B%20display%3A%20inline%20!important%3B%20font-size%3A%2015px%3B%20font-style%3A%20normal%3B%20float%3A%20none%3B%20background-color%3A%20transparent%3B%20text-transform%3A%20none%3B%20word-spacing%3A%200px%3B%20font-variant%3A%20normal%3B%20text-indent%3A%200px%3B%20font-family%3A%20Helvetica%20Neue%2CHelvetica%2CArial%2CLucida%20Grande%2Csans-serif%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%22%3E%3CSTRONG%3EThanks%20!%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E
No ratings
Version history
Last update:
‎04-10-2019 03:02 AM
Updated by: