s32k312 init sram ecc from jlink?

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

s32k312 init sram ecc from jlink?

552 Views
victory
Contributor IV

Hi Nxp,

    i'm working on a ramcode application using jlink. currently i found a problem on in virgin chip. after jlink connect to chip,  sram in some area is '----' unaccessible,  it probably a ecc sram not initialized,  and i cant write ramcode to sram.

   so my question is how to init these sram on jlink at begining, is there a mininum reference code, or which code is MUST do in startup_cm7.s before lable "RamInit" , thanks.

0 Kudos
Reply
3 Replies

512 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I am not familiar with Jlink, but seems that user can execute debugger scripts.

https://wiki.segger.com/J-Link_script_files

petervlna_1-1731401543430.png

 

I know that Lauterbach offers possibilities to fully control RAM init in statup scripts.

This is rather question for Segger then NXP.

Best regards,

Peter

 

0 Kudos
Reply

508 Views
victory
Contributor IV

i found s32ds have a jlinkscript to use eDMA to init ecc ram, copy it and works.

0 Kudos
Reply

525 Views
victory
Contributor IV

append:

i've found segger wiki https://wiki.segger.com/NXP_S32K3xx#ECC_RAM,  is it possible for me to use jlink initial the reset region of sram, currently i just use jlink write memory api(32bit /64bit)  will fail to write.

victory_0-1731388042535.png

 

0 Kudos
Reply