init_data_bss variables show cannot access memory @ address

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

init_data_bss variables show cannot access memory @ address

1,626 Views
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 Kudos
Reply
3 Replies

1,608 Views
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 Kudos
Reply

1,583 Views
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 Kudos
Reply

1,568 Views
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 Kudos
Reply