sram block not sufficient for mcal_bss segment issue

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

sram block not sufficient for mcal_bss segment issue

842 Views
bbaskii
Contributor II

Hi NXP Team,

For my project i am using S32K342 with EBTresos for configuration and Autosar OS. I am facing sram memory block doesn't fit mcal_bss segment issue as below.

 

Linking main.elf
[elxr] (error #310) section .mcal_bss (0x204082e0-0x20408837) doesn't fit in memory block int_sram (0x20400000-0x204087ff)
make: *** [makefile:266: main.elf] Error 1

 

I have already extended the sram region from default 28KB to 34KB after checking the datasheet. If i extend another 1KB which is to 35KB i got Software breakpoint issue at IntCtrl_Ip.c line number 189

DevAssert(S32_SCB->VTOR >= (uint32)__INT_SRAM_START);

Can i place the entire sram section in DTCM which is part of SRAM and the allocated memory size also bigger (128KB). 

I have attached my project memory segment screenshot and the default memory segment screenshot from RTD SPI_example. Please help me to fix the issue.

 

Tags (1)
0 Kudos
Reply
1 Reply

785 Views
nxf78987
NXP Employee
NXP Employee

Hi @bbaskii,

Could you send me your the linker_flash_s32k342.ld and linker_ram_s32k342.ld files?

Best regards,

Dan

0 Kudos
Reply