init_data_bss variables show cannot access memory @ address

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

init_data_bss variables show cannot access memory @ address

3,056 次查看
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,038 次查看
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,013 次查看
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 项奖励
回复

2,995 次查看
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 项奖励
回复