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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,335件の閲覧回数
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 件の賞賛
返信
1 解決策
1,285件の閲覧回数
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 件の賞賛
返信
2 返答(返信)
1,286件の閲覧回数
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 件の賞賛
返信
1,307件の閲覧回数
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 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-1924328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMCU%20%E3%81%8C%E3%83%AC%E3%82%B8%E3%82%B9%E3%82%BF%E3%81%A7%20RST%20%E3%83%93%E3%83%83%E3%83%88%E8%A8%AD%E5%AE%9A%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%81%9F%E5%A0%B4%E5%90%88FUNC_SRAM%20%E3%81%AF%200%20%E3%81%AB%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%81%8B%20MC_ME%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1924328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%EF%BC%9A%3C%2FP%3E%3CP%3E%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%8Cuds%2010%2002%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%81%9F%E5%A0%B4%E5%90%88%E3%81%AB%E3%83%96%E3%83%BC%E3%83%88%E3%83%AD%E3%83%BC%E3%83%89%E3%81%AB%E3%82%B8%E3%83%A3%E3%83%B3%E3%83%97%E3%81%97%E3%81%9F%E3%81%84%E3%81%AE%E3%81%A7%E3%80%81%E5%85%B1%E6%9C%89(%E3%82%AF%E3%83%AA%E3%82%A2%E3%81%AA%E3%81%97)RAM%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%9F%E3%81%84%E3%81%AE%E3%81%A7%E3%80%81ASW%E3%81%AF%E3%83%AA%E3%82%BB%E3%83%83%E3%83%88%E5%BE%8C%E3%82%82%E3%83%AA%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%83%95%E3%83%A9%E3%82%B0%E3%82%92%E4%BF%9D%E6%8C%81%E3%81%A7%E3%81%8D%E3%82%8BnoclearRAM%E3%81%AB%E5%86%8D%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%83%95%E3%83%A9%E3%82%B0%E3%82%92%E7%BD%AE%E3%81%8F%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%EF%BC%88%E3%83%AA%E3%82%BB%E3%83%83%E3%83%88%E3%81%AE%E3%82%BF%E3%82%A4%E3%83%97%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6sram%E3%81%AE%E3%83%91%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%B3%E3%82%B9%E3%81%AF%E7%95%B0%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%EF%BC%89%E3%80%82%E3%81%97%E3%81%8B%E3%81%97%E3%80%81%20%22MCU_PerformReset%22%E3%82%92%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%9D%E3%81%86%E3%81%A8%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81ld%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%A7NOCLEAR%E3%81%BE%E3%81%9F%E3%81%AFNOLOAD%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%97%E3%81%9FRAM%E3%81%AE%E5%80%A4%E3%82%92%E7%9B%A3%E8%A6%96%E3%81%97%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%E3%83%96%E3%83%BC%E3%83%88%E3%81%8C%20%22startup.c%22%E3%81%AE%E9%96%A2%E6%95%B0%20%22init_data_bss%22%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B%E5%89%8D%E3%81%AB%E5%80%A4%E3%81%8C%E3%82%BC%E3%83%AD%E3%81%AB%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E3%81%ABbrekpoint%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82S%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AA%E3%81%AE%E3%81%A7%E3%80%81.S%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%80%82%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1924814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%3A%20MCU%20%E3%81%8C%E3%83%AC%E3%82%B8%E3%82%B9%E3%82%BF%E3%81%AB%20RST%20%E3%83%93%E3%83%83%E3%83%88%E8%A8%AD%E5%AE%9A%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%81%9F%E5%A0%B4%E5%90%88FUNC_SRAM%20%E3%81%AF%200%20%E3%81%AB%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%81%8B%20MC_ME%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1924814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFAE%E3%81%8B%E3%82%89%E5%9B%9E%E7%AD%94%E3%82%92%E5%8F%97%E3%81%91%E5%8F%96%E3%82%8A%E3%80%81%E5%BD%BC%E3%81%AF%E3%80%8Cram_rsvd2%E3%80%8D%E3%81%A8%E5%AE%9A%E7%BE%A9%E3%81%95%E3%82%8C%E3%81%9F%E3%83%A1%E3%83%A2%E3%83%AA%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%80%81ram_rsvd2%E3%81%AE%E7%99%BA%E4%BF%A1%E5%85%83%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%82%92%E5%89%8D%E9%80%B2%E3%81%95%E3%81%9B%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%A8%E7%A7%81%E3%81%AB%E8%A8%80%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%E5%BD%BC%E3%81%AF%E3%80%81ram_rsvd2%E3%81%AE%E5%80%A4%E3%81%8CMCU%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6%E3%82%AF%E3%83%AA%E3%82%A2%E3%81%95%E3%82%8C%E3%81%AA%E3%81%84%E3%81%93%E3%81%A8%E3%82%92%E6%84%8F%E5%91%B3%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E