S32K322 memory overflow

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

S32K322 memory overflow

828 Views
user01
Contributor I

Hello:

I have encountered some issues while using the S32K322 chip recently. The specific problems are as follows:

(Development Platform: S32DS. 3.6.2      Chip model: S32K322)

The program reported an error during compilation:

user01_0-1754883795552.png

So I modified the size of int_stram_c0 in Project_Settings ->Linker_Files ->linker_flash_c0us32k322.ld
Before modification:

user01_2-1754884169969.png


After modification:

user01_3-1754884334248.png

After recompiling, there are no errors reported:

user01_4-1754884396085.pnguser01_5-1754884410688.png

But when I was debugging, the program got stuck in SRAM_LOOP in Project_Settings ->Startup_Cde ->startup_cm7. s:
SRAM_LOOP:
strd r0, r1, [r2], #8
cmp r2, r3
blt SRAM_LOOP
SRAM_LOOP_END:

 

This problem has been bothering me for a long time, but I have not been able to solve it. Now I need your help to provide an effective solution. Thank you very much!

 

Tags (2)
0 Kudos
Reply
1 Reply

804 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @user01,

Can you open the core register view and check the values in R2 and R3.

ldr r2, =__INT_SRAM_START (int_sram_c0)
ldr r3, =__INT_SRAM_END (ram_end_c0)

R2 is the start address of the SRAM region.

The loop is incrementing R2 by 8 bytes each iteration until R2 is equal to R3.

 

Thank you,

BR, Daniel

0 Kudos
Reply