init_data_bss variables show cannot access memory @ address

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

init_data_bss variables show cannot access memory @ address

3,074件の閲覧回数
harish_cont41
Contributor I

Hi Expert,

I am not able to hit the main function after starting my debugging session with S32K144 and Segger J-Link. I have S32DS 2.2 which is what my project requires. While I start the debugging session, I come to init_data_bss function where data_ram when hoved over for the address value shows "Error cannot access memory @ address 0x1feaj(some address)". How to fix this issue? Please help me to fix this issue as soon as you can. BTW, I have checked the linker script and tried everything possible.

 

regards.

Harish.

0 件の賞賛
返信
3 返答(返信)

3,056件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Harish,

Can you set a breakpoint at the init_data_bss() function and step the code?

danielmartynek_0-1619078974519.png

Do you have HardFault handler implemented in the code?

https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447

 

Thanks,

BR, Daniel

0 件の賞賛
返信

3,031件の閲覧回数
harish_cont41
Contributor I

Hi Daniel,

Is it memory issue that we need to handle in linker script which makes the variable pointers like data_ram to show "Error: cannot access memory @ address 0x1ffa0000". Also I cannot see data_ram in .map file.

r we doing any mistake here? We didnt consider flexram section while allocating for sram memory lengths.

We have allocated 64kb for sram without flexram. Please let us know what is the issue.

 

regards.

Harish.

 

0 件の賞賛
返信

3,013件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Harish,

Please find the attached memory map.

As you can see, 0x1ffa0000 is not SRAM.

You need to change the linker file accordingly.

 

Thanks,

BR, Daniel

 

 

 

0 件の賞賛
返信