does The SRAM being Set to 0 if MCU get FUNC_ RST bit Setting in MC_ME register

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

does The SRAM being Set to 0 if MCU get FUNC_ RST bit Setting in MC_ME register

Jump to solution
250 Views
yinqiu
Contributor III

hello:

I want to take use of a share(no clear )RAM,because I want to jump into bootload if application gets the uds 10 02,so ASW should put reflash flag in a noclear ram which can keep the reflash flag after reset(is the type of reset make any different performance of sram?). but when I try to call "MCU_PerformReset",and watch the value of ram which I set NOCLEAR or NOLOAD in the ld file,but I find the value is set to zero before the boot excute the function "init_data_bss" which in the "startup.c". I can not set brekpoint in the .S file, so I can ont sure the behaviour in the .S file .

 

0 Kudos
Reply
1 Solution
200 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @yinqiu,

The SRAM content is preserved across functional reset.

danielmartynek_0-1722934059413.png

The SRAM is initialized in startup_cm7.s up to __INT_SRAM_END, which is by default set to ORIGIN(ram_rsvd2), so you need to adjust that.

After any reset, when the debugger is disconnected, we can trap the execution is a loop like this.

danielmartynek_1-1722934313801.png

 

Regards,

Daniel

View solution in original post

0 Kudos
Reply
2 Replies
201 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @yinqiu,

The SRAM content is preserved across functional reset.

danielmartynek_0-1722934059413.png

The SRAM is initialized in startup_cm7.s up to __INT_SRAM_END, which is by default set to ORIGIN(ram_rsvd2), so you need to adjust that.

After any reset, when the debugger is disconnected, we can trap the execution is a loop like this.

danielmartynek_1-1722934313801.png

 

Regards,

Daniel

0 Kudos
Reply
222 Views
yinqiu
Contributor III

I got the response form FAE and he told me that I should take use of the memory defined as "ram_rsvd2" and move the origin address of ram_rsvd2 forward. he means the value of ram_rsvd2 won't be cleared by MCU .

0 Kudos
Reply