Example S32K144 RAM selftest simple S32DS 2018.R1

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

Example S32K144 RAM selftest simple S32DS 2018.R1

Example S32K144 RAM selftest simple S32DS 2018.R1

********************************************************************************
* Detailed Description:
* RAM self-test is performed after reset in startup_S32K144.s file.
* The RAM self-test should be executed right after reset, so it does not destroy
* data loaded to RAM by init functions. The code is inserted after
* initialization of core registers. RAM initialization is commented out because
* the same operation is done by the self-test.
* The test flow is:
* 1. Write pattern 0x55AA55AA to first word in RAM
* 2. Read the data back
* 3. Compare the data and increment error counter if not equal
* 4. Write inverse pattern 0xAA55AA55 to first word in RAM
* 5. Read the data back
* 6. Compare the data and increment error counter if not equal
* 7. Clear the first word in RAM to leave whole RAM erased to ‘0’ at the end of test
* This procedure is repeated for whole RAM.
* If the error counter is different from zero at the end, the program stays in
* endless loop until watchdog reset.
*
* ------------------------------------------------------------------------------
* Test HW:         S32K144EVB-Q100
* MCU:             FS32K144UAVLL 0N57U
* Fsys:            Default
* Debugger:        Lauterbach Trace32
* Target:          internal_FLASH
*
********************************************************************************

Attachments
Comments

Dear Lukas, if I want to run this sample in 

"S32 Design Studio for ARM

Version: 2.0
Build id: 170810",

what should I modify to correspond to the environment?

Hi sir,

Is this test contain SRAM-U, SRAM-L and Flex RAM test also?

Please give me the information about this ,

Thankyou

Veeraju V Hallikeri

%3CLINGO-SUB%20id%3D%22lingo-sub-1106118%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20S32K144%20RAM%20selftest%20simple%20S32DS%202018.R1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1106118%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20RAM%20self-test%20is%20performed%20after%20reset%20in%20startup_S32K144.s%20file.%20%3CBR%20%2F%3E*%20The%20RAM%20self-test%20should%20be%20executed%20right%20after%20reset%2C%20so%20it%20does%20not%20destroy%20%3CBR%20%2F%3E*%20data%20loaded%20to%20RAM%20by%20init%20functions.%20The%20code%20is%20inserted%20after%20%3CBR%20%2F%3E*%20initialization%20of%20core%20registers.%20RAM%20initialization%20is%20commented%20out%20because%3CBR%20%2F%3E*%20the%20same%20operation%20is%20done%20by%20the%20self-test.%20%3CBR%20%2F%3E*%20The%20test%20flow%20is%3A%3CBR%20%2F%3E*%201.%20Write%20pattern%200x55AA55AA%20to%20first%20word%20in%20RAM%3CBR%20%2F%3E*%202.%20Read%20the%20data%20back%3CBR%20%2F%3E*%203.%20Compare%20the%20data%20and%20increment%20error%20counter%20if%20not%20equal%3CBR%20%2F%3E*%204.%20Write%20inverse%20pattern%200xAA55AA55%20to%20first%20word%20in%20RAM%3CBR%20%2F%3E*%205.%20Read%20the%20data%20back%3CBR%20%2F%3E*%206.%20Compare%20the%20data%20and%20increment%20error%20counter%20if%20not%20equal%3CBR%20%2F%3E*%207.%20Clear%20the%20first%20word%20in%20RAM%20to%20leave%20whole%20RAM%20erased%20to%20%E2%80%980%E2%80%99%20at%20the%20end%20of%20test%3CBR%20%2F%3E*%20This%20procedure%20is%20repeated%20for%20whole%20RAM.%20%3CBR%20%2F%3E*%20If%20the%20error%20counter%20is%20different%20from%20zero%20at%20the%20end%2C%20the%20program%20stays%20in%20%3CBR%20%2F%3E*%20endless%20loop%20until%20watchdog%20reset.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20S32K144EVB-Q100%3CBR%20%2F%3E*%20MCU%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20FS32K144UAVLL%200N57U%3CBR%20%2F%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Default%3CBR%20%2F%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3CBR%20%2F%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1106118%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20RAM%20self-test%20is%20performed%20after%20reset%20in%20startup_S32K144.s%20file.%20%3CBR%20%2F%3E*%20The%20RAM%20self-test%20should%20be%20executed%20right%20after%20reset%2C%20so%20it%20does%20not%20destroy%20%3CBR%20%2F%3E*%20data%20loaded%20to%20RAM%20by%20init%20functions.%20The%20code%20is%20inserted%20after%20%3CBR%20%2F%3E*%20initialization%20of%20core%20registers.%20RAM%20initialization%20is%20commented%20out%20because%3CBR%20%2F%3E*%20the%20same%20operation%20is%20done%20by%20the%20self-test.%20%3CBR%20%2F%3E*%20The%20test%20flow%20is%3A%3CBR%20%2F%3E*%201.%20Write%20pattern%200x55AA55AA%20to%20first%20word%20in%20RAM%3CBR%20%2F%3E*%202.%20Read%20the%20data%20back%3CBR%20%2F%3E*%203.%20Compare%20the%20data%20and%20increment%20error%20counter%20if%20not%20equal%3CBR%20%2F%3E*%204.%20Write%20inverse%20pattern%200xAA55AA55%20to%20first%20word%20in%20RAM%3CBR%20%2F%3E*%205.%20Read%20the%20data%20back%3CBR%20%2F%3E*%206.%20Compare%20the%20data%20and%20increment%20error%20counter%20if%20not%20equal%3CBR%20%2F%3E*%207.%20Clear%20the%20first%20word%20in%20RAM%20to%20leave%20whole%20RAM%20erased%20to%20%E2%80%980%E2%80%99%20at%20the%20end%20of%20test%3CBR%20%2F%3E*%20This%20procedure%20is%20repeated%20for%20whole%20RAM.%20%3CBR%20%2F%3E*%20If%20the%20error%20counter%20is%20different%20from%20zero%20at%20the%20end%2C%20the%20program%20stays%20in%20%3CBR%20%2F%3E*%20endless%20loop%20until%20watchdog%20reset.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20S32K144EVB-Q100%3CBR%20%2F%3E*%20MCU%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20FS32K144UAVLL%200N57U%3CBR%20%2F%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Default%3CBR%20%2F%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3CBR%20%2F%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1106120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20S32K144%20RAM%20selftest%20simple%20S32DS%202018.R1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1106120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20sir%2C%3C%2FP%3E%3CP%3EIs%20this%20test%20contain%20SRAM-U%2C%20SRAM-L%20and%20Flex%20RAM%20test%20also%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EPlease%20give%20me%20the%20information%20about%20this%20%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThankyou%3C%2FP%3E%3CP%3EVeeraju%20V%20Hallikeri%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1106119%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20S32K144%20RAM%20selftest%20simple%20S32DS%202018.R1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1106119%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20Lukas%2C%20if%20I%20want%20to%20run%20this%20sample%20in%26nbsp%3B%3C%2FP%3E%3CP%3E%22S32%20Design%20Studio%20for%20ARM%3C%2FP%3E%3CP%3EVersion%3A%202.0%20%3CBR%20%2F%3EBuild%20id%3A%20170810%22%2C%3C%2FP%3E%3CP%3Ewhat%20should%20I%20modify%20to%20correspond%20to%20the%20environment%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎06-06-2019 02:28 AM
Updated by: