Example S32K312 SWT DS3.5 RTD300

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

Example S32K312 SWT DS3.5 RTD300

Example S32K312 SWT DS3.5 RTD300

*******************************************************************************

 The purpose of this demo application is to present a usage of the
 SWT IP Driver for the S32K3xx MCU.

 ------------------------------------------------------------------------------
* Test HW: S32K3X2EVB-Q172
* MCU: S32K312
* Compiler: S32DS3.5
* SDK release: RTD 3.0.0
* Debugger: PE micro
* Target: internal_FLASH
********************************************************************************

With S32K312 device take care, HSE clock AIPS_SLOW_CLOCK ratio,  kept 1:2 :--

Dinesh_Guleria_0-1706855323004.png

 


The example we use to trigger the SWT once & go to while(1) loop.
This will trigger the watchdog RESET.

Dinesh_Guleria_1-1706855535347.png



Then After RESET from SWT we will check at starting of main function, if RESET reason is SWT, then glow LED and wait in while(1) loop  :--

Dinesh_Guleria_2-1706855589096.png

 



Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1800559%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20S32K312%20SWT%20DS3.5%20RTD300%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1800559%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CP%3E%3CSPAN%3E*******************************************************************************%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3BThe%20purpose%20of%20this%20demo%20application%20is%20to%20present%20a%20usage%20of%20the%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3BSWT%20IP%20Driver%20for%20the%20S32K3xx%20MCU.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B------------------------------------------------------------------------------%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20Test%20HW%3A%20S32K3X2EVB-Q172%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20MCU%3A%20S32K312%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20Compiler%3A%20S32DS3.5%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20SDK%20release%3A%20RTD%203.0.0%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20Debugger%3A%20PE%20micro%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20Target%3A%20internal_FLASH%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E********************************************************************************%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWith%20S32K312%20device%20take%20care%2C%26nbsp%3B%3CSPAN%20class%3D%22ui-provider%20ed%20aze%20azf%20azg%20azh%20azi%20azj%20azk%20azl%20azm%20azn%20azo%20azp%20azq%20azr%20azs%20azt%20azu%20azv%20azw%20azx%20azy%20azz%20baa%20bab%20bac%20bae%20baf%20bag%20bah%20bai%20baj%20bak%20bal%20bam%22%3EHSE%20clock%20AIPS_SLOW_CLOCK%20ratio%2C%20%26nbsp%3Bkept%201%3A2%3C%2FSPAN%3E%20%3A--%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dinesh_Guleria_0-1706855323004.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Dinesh_Guleria_0-1706855323004.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F261545i6E1384A1A6BF4F46%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Dinesh_Guleria_0-1706855323004.png%22%20alt%3D%22Dinesh_Guleria_0-1706855323004.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3E%3CBR%20%2F%3EThe%20example%20we%20use%20to%20trigger%20the%20SWT%20once%20%26amp%3B%20go%20to%20while(1)%20loop.%3CBR%20%2F%3EThis%20will%20trigger%20the%20watchdog%20RESET.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dinesh_Guleria_1-1706855535347.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Dinesh_Guleria_1-1706855535347.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F261546i43470BFFE2B9F394%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Dinesh_Guleria_1-1706855535347.png%22%20alt%3D%22Dinesh_Guleria_1-1706855535347.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20After%20RESET%20from%20SWT%20we%20will%20check%20at%20starting%20of%20main%20function%2C%20if%20RESET%20reason%20is%20SWT%2C%20then%20glow%20LED%20and%20wait%20in%20while(1)%20loop%26nbsp%3B%20%3A--%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dinesh_Guleria_2-1706855589096.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Dinesh_Guleria_2-1706855589096.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F261548i1B7D29BD3B19A774%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Dinesh_Guleria_2-1706855589096.png%22%20alt%3D%22Dinesh_Guleria_2-1706855589096.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎02-01-2024 11:35 PM
Updated by: