LPC5516 SRAM running out

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

LPC5516 SRAM running out

2,185 Views
chandra_MVE
Contributor I

Hi 

We are facing below issue with program not being excecuted from Flash, What to change in linker script to resoved this issue

 

arm-none-eabi-gcc -nostdlib -Xlinker -Map="LPC5516_Project.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker --sort-section=alignment -Xlinker --cref -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -T LPC5516_Project_Debug.ld -o "LPC5516_Project.axf" ./utilities/fsl_assert.o ./utilities/fsl_debug_console.o ./utilities/fsl_str.o ./usb/device/source/lpcip3511/usb_device_lpcip3511.o ./usb/device/source/usb_device_ch9.o ./usb/device/source/usb_device_dci.o ./usb/device/class/cdc/usb_device_cdc_acm.o ./usb/device/class/usb_device_class.o ./startup/startup_lpc5516.o ./source/LPC5516_Project.o ./source/semihost_hardfault.o ./drivers/fsl_clock.o ./drivers/fsl_common.o ./drivers/fsl_common_arm.o ./drivers/fsl_flexcomm.o ./drivers/fsl_gpio.o ./drivers/fsl_i2c.o ./drivers/fsl_mcan.o ./drivers/fsl_power.o ./drivers/fsl_reset.o ./drivers/fsl_spi.o ./drivers/fsl_usart.o ./device/system_LPC5516.o ./component/uart/fsl_adapter_usart.o ./component/serial_manager/fsl_component_serial_manager.o ./component/serial_manager/fsl_component_serial_port_uart.o ./component/osa/fsl_os_abstraction_bm.o ./component/lists/fsl_component_generic_list.o ./board/board.o ./board/clock_config.o ./board/peripherals.o ./board/pin_mux.o
c:/nxp/mcuxpressoide_11.6.0_8187/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.6.0.202112161359/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: LPC5516_Project.axf section `.bss' will not fit in region `SRAM'
c:/nxp/mcuxpressoide_11.6.0_8187/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.6.0.202112161359/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: region `SRAM' overflowed by 8536 bytes
Memory region Used Size Region Size %age Used
PROGRAM_FLASH: 0 GB 244 KB 0.00%
SRAM: 74072 B 64 KB 113.02%
USB_RAM: 0 GB 16 KB 0.00%
SRAMX: 0 GB 16 KB 0.00%
collect2.exe: error: ld returned 1 exit status
make[1]: *** [makefile:59: LPC5516_Project.axf] Error 1
make: *** [makefile:50: all] Error 2
"make -r -j4 all" terminated with exit code 2. Build might be incomplete.

 

chandra_MVE_0-1664090958375.png

 

 

Rgds

Chandra

Labels (1)
0 Kudos
Reply
6 Replies

2,136 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Chandra,

 

Please show your project.

 

BR

Alice

0 Kudos
Reply

2,154 Views
frank_m
Senior Contributor III

> We are facing below issue with program not being excecuted from Flash, What to change in linker script to resoved this issue

Posting your linker script would surely be helpful.

0 Kudos
Reply

2,164 Views
chandra_MVE
Contributor I

Any update on this issue, we are running out of time. 

 

Rgds

Chandra

0 Kudos
Reply

2,157 Views
frank_m
Senior Contributor III

You cannot rely on a public forum with volunteering fellow engineers to solve your problems.

0 Kudos
Reply

2,150 Views
chandra_MVE
Contributor I

Sorry, But do we have solution to this?

 

Rgds

Chandra

0 Kudos
Reply

1,758 Views
dberez
Contributor I

We had the same issue and I was able to get around it by commenting out one line in the function BOARD_BootClockRUN() located in board/clock_config.c as shown below.  I do not know why this solved the issue.

//SystemCoreClock = BOARD_BOOTCLOCKRUN_CORE_CLOCK;

 

0 Kudos
Reply