s32K144 SRAM_U problem

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

s32K144 SRAM_U problem

1,466 Views
leonchan
Contributor I

Using the s32K144 chip, during debugging, there is a problem that the ram exceeds 32K and the compilation fails,

leonchan_0-1613726674618.png

According to the specification, the ram of S32K144 is composed of SRAM_L(32K)+SRAM_U(28K)+4K, can I only use SRAM_L when developing?

leonchan_1-1613726721377.png

 


How can I use the SRAM_U (28K) area. Are there any relevant examples? Thank you!

0 Kudos
Reply
3 Replies

1,439 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, It should be a problem but it is needed to check address ranges as sketched below as SRAM_L extends downwards, SRAM_U extends upwards:

davidtosenovjan_0-1613822429411.png

Another point is that address ranges must be defined separately in the linker command file as misaligned access it not allowed on the  0x2000_0000 boundary. Check your linker command file.

0 Kudos
Reply

1,405 Views
leonchan
Contributor I

Hi:

 This is  linkfile,IAR Workbench,SDK3.00

0 Kudos
Reply

1,387 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Although I don't see basically anything wrong, I would rather refer to IAR support as I don't have any experience with that compiler.

0 Kudos
Reply