Skip to content

ENABLE_LOGGING OPT_ENABLED #21

@pangliang071

Description

@pangliang071

ENABLE_LOGGING OPT_ENABLED

使能之后,代码编译不通过,是什么原因呢?
arm-none-eabi-gcc -nostdlib -Xlinker -Map="firmware.map" -Xlinker --gc-sections -mcpu=cortex-m4 -mthumb -T "firmware_Debug.ld" -o "firmware.axf" ./program/source/calibrate.o ./program/source/capture.o ./program/source/capture_sgpio.o ./program/source/capture_vadc.o ./program/source/circbuff.o ./program/source/cr_startup_lpc43xx.o ./program/source/crp.o ./program/source/experiments.o ./program/source/generator.o ./program/source/generator_dac.o ./program/source/generator_sgpio.o ./program/source/log.o ./program/source/main.o ./program/source/monitor_i2c.o ./program/source/sgpio_cfg.o ./program/source/statemachine.o ./program/source/usb_descriptors.o ./program/source/usb_handler.o ./program/sct/sct_fsm.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/LPC/HAL/LPC18XX/HAL_LPC18xx.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/LPC/DCD/LPC18XX/Endpoint_LPC18xx.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/LPC/Device_LPC.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/LPC/EndpointStream_LPC.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/LPC/Endpoint_LPC.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/LPC/PipeStream_LPC.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/LPC/Pipe_LPC.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/LPC/USBController_LPC.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/DeviceStandardReq.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/Events.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/USBMemory.o ./Lib_USB/LPCUSBLib/Drivers/USB/Core/USBTask.o ./Lib_USB/LPCUSBLib/Drivers/USB/Class/Common/HIDParser.o ./Lib_USB/bsp.o ./Lib_MCU/source/debug_frmwrk.o ./Lib_MCU/source/lpc43xx_adc.o ./Lib_MCU/source/lpc43xx_atimer.o ./Lib_MCU/source/lpc43xx_cgu.o ./Lib_MCU/source/lpc43xx_dac.o ./Lib_MCU/source/lpc43xx_gpdma.o ./Lib_MCU/source/lpc43xx_gpio.o ./Lib_MCU/source/lpc43xx_i2c.o ./Lib_MCU/source/lpc43xx_nvic.o ./Lib_MCU/source/lpc43xx_rgu.o ./Lib_MCU/source/lpc43xx_sct.o ./Lib_MCU/source/lpc43xx_scu.o ./Lib_MCU/source/lpc43xx_ssp.o ./Lib_MCU/source/lpc43xx_timer.o ./Lib_MCU/source/lpc43xx_uart.o ./Lib_MCU/source/lpc43xx_wwdt.o ./Lib_MCU/source/system_LPC43xx.o ./Lib_Drivers/source/lpc43xx_cgu_improved.o ./Lib_Drivers/source/spi_control.o ./Lib_Drivers/source/spi_dac.o ./Lib_Drivers/source/spi_eeprom.o c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp\libcr_c.a(_deferredlazyseek.o): in function __flsbuf':
_deferredlazyseek.c:(.text.__flsbuf+0x8c): undefined reference to __sys_istty' c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp\libcr_c.a(_writebuf.o): in function _Cwritebuf':
_writebuf.c:(.text._Cwritebuf+0x14): undefined reference to __sys_flen' c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: _writebuf.c:(.text._Cwritebuf+0x28): undefined reference to __sys_seek'
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: _writebuf.c:(.text._Cwritebuf+0x4e): undefined reference to __sys_write' c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp\libcr_c.a(alloc.o): in function _Csys_alloc':
alloc.c:(.text._Csys_alloc+0xe): undefined reference to __sys_write' c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: alloc.c:(.text._Csys_alloc+0x12): undefined reference to __sys_appexit'
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp\libcr_c.a(fseek.o): in function fseek': fseek.c:(.text.fseek+0x20): undefined reference to __sys_istty'
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: fseek.c:(.text.fseek+0x96): undefined reference to __sys_flen' collect2.exe: error: ld returned 1 exit status make[1]: *** [makefile:56: firmware.axf] Error 1 make: *** [makefile:47: all] Error 2 "make -r -j20 all" terminated with exit code 2. Build might be incomplete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions