你好
我们面临以下问题,程序未从 Flash 中执行,在链接器脚本中更改什么以解决此问题
arm-none-eabi-gcc -nostdlib -Xlinker -Map="LPC5516_Project.map" -Xlinker --gc-sec
tions -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 部分“.bss”不适合区域“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:区域“SRAM”溢出 8536 字节
内存区域已用大小区域大小百分比已用
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:错误:ld 返回 1 退出状态
make[1]: *** [makefile:59: LPC5516_Project.axf] 错误 1
make: *** [makefile:50: all] 错误 2
“make -r -j4 all”以退出代码 2 终止。构建可能不完整。
0