Example S32K118-SRAM-keep_data_over_SW_reset v0_1 S32DS.ARM.2.2

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

Example S32K118-SRAM-keep_data_over_SW_reset v0_1 S32DS.ARM.2.2

Example S32K118-SRAM-keep_data_over_SW_reset v0_1 S32DS.ARM.2.2

********************************************************************************
* Detailed Description:
* The purpose of this example is show how to keep data in SRAM memory over SW
* reset. SW reset is triggered by pressing the SW3 button on the S32K118EVB.
* Reset is delayed for 514 LPO cycles. In the RCM interrupt, SRAMU_RETEN is
* cleared allowing to retain SRAM data during the reset. After SW reset,
* SRAMU_RETEN is set to allow accesses to SRAM.
* File startup_S32K116.S in modified to skip ECC RAM initialization for SW reset
* source. To check whether stored data stayed unmodified in the SRAM, specified
* address is read and the LED lights up.
* ------------------------------------------------------------------------------
* Test HW: S32K118EVB-Q064
* MCU: S32K118 LAMLH 0N97V QTZE1802B
* Fsys: fsys = 48MHz
* Debugger: Lauterbach Trace32
* Target: Debug
* Terminal: 19200-8-no parity-1 stop bit-no flow control
* EVB connection: default
********************************************************************************
Revision History:
Ver Date Author Description of Changes
0.0 May-17-2023 David Tosenovjan Initial version
*******************************************************************************/
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1652080%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20S32K118-SRAM-keep_data_over_SW_reset%20v0_1%20S32DS.ARM.2.2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1652080%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CPRE%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20The%20purpose%20of%20this%20example%20is%20show%20how%20to%20keep%20data%20in%20SRAM%20memory%20over%20SW%3CBR%20%2F%3E*%20reset.%20SW%20reset%20is%20triggered%20by%20pressing%20the%20SW3%20button%20on%20the%20S32K118EVB.%3CBR%20%2F%3E*%20Reset%20is%20delayed%20for%20514%20LPO%20cycles.%20In%20the%20RCM%20interrupt%2C%20SRAMU_RETEN%20is%3CBR%20%2F%3E*%20cleared%20allowing%20to%20retain%20SRAM%20data%20during%20the%20reset.%20After%20SW%20reset%2C%3CBR%20%2F%3E*%20SRAMU_RETEN%20is%20set%20to%20allow%20accesses%20to%20SRAM.%3CBR%20%2F%3E*%20File%20startup_S32K116.S%20in%20modified%20to%20skip%20ECC%20RAM%20initialization%20for%20SW%20reset%3CBR%20%2F%3E*%20source.%20To%20check%20whether%20stored%20data%20stayed%20unmodified%20in%20the%20SRAM%2C%20specified%3CBR%20%2F%3E*%20address%20is%20read%20and%20the%20LED%20lights%20up.%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%20%20%20%20%20%20%20%20S32K118EVB-Q064%3CBR%20%2F%3E*%20MCU%3A%20%20%20%20%20%20%20%20%20%20%20%20S32K118%20LAMLH%200N97V%20QTZE1802B%3CBR%20%2F%3E*%20Fsys%3A%20%20%20%20%20%20%20%20%20%20%20fsys%20%3D%2048MHz%3CBR%20%2F%3E*%20Debugger%3A%20%20%20%20%20%20%20Lauterbach%20Trace32%3CBR%20%2F%3E*%20Target%3A%20%20%20%20%20%20%20%20%20Debug%3CBR%20%2F%3E*%20Terminal%3A%20%20%20%20%20%20%2019200-8-no%20parity-1%20stop%20bit-no%20flow%20control%3CBR%20%2F%3E*%20EVB%20connection%3A%20default%3CBR%20%2F%3E********************************************************************************%3CBR%20%2F%3ERevision%20History%3A%3CBR%20%2F%3EVer%20Date%20%20%20%20%20%20%20%20Author%20%20%20%20%20%20%20%20%20%20%20Description%20of%20Changes%3CBR%20%2F%3E0.0%20May-17-2023%20David%20Tosenovjan%20Initial%20version%3CBR%20%2F%3E*******************************************************************************%2F%3C%2FPRE%3E%0A%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎05-17-2023 05:51 AM
Updated by: