make -r -j4 all
Building file: ../source/lwip_ping_bm.c
Building file: ../lwip/port/enet_ethernetif_qos.c
Building file: ../lwip/port/enet_ethernetif.c
Invoking: MCU C Compiler
Invoking: MCU C Compiler
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=gnu99 -D__REDLIB__ -DCPU_MIMXRT1176DVMAA -DCPU_MIMXRT1176DVMAA_cm7 -DSDK_DEBUGCONSOLE=1 -DXIP_EXTERNAL_FLASH=1 -DXIP_BOOT_HEADER_ENABLE=1 -DPRINTF_ADVANCED_ENABLE=1 -DSERIAL_PORT_TYPE_UART=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\mdio" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\phy" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\contrib\apps\ping" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\port" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src\include" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\drivers" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\utilities" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\device" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\CMSIS" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\uart" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\serial_manager" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\lists" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\xip" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\board" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\template" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\source" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\mdio" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\phy" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\contrib\apps\ping" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\port" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src\include" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\drivers" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\utilities" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\device" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\CMSIS" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\uart" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\serial_manager" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\lists" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\xip" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\board" -O0 -fno-common -g3 -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../source/"= -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"source/lwip_ping_bm.d" -MT"source/lwip_ping_bm.o" -MT"source/lwip_ping_bm.d" -o "source/lwip_ping_bm.o" "../source/lwip_ping_bm.c"
arm-none-eabi-gcc -std=gnu99 -D__REDLIB__ -DCPU_MIMXRT1176DVMAA -DCPU_MIMXRT1176DVMAA_cm7 -DSDK_DEBUGCONSOLE=1 -DXIP_EXTERNAL_FLASH=1 -DXIP_BOOT_HEADER_ENABLE=1 -DPRINTF_ADVANCED_ENABLE=1 -DSERIAL_PORT_TYPE_UART=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\mdio" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\phy" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\contrib\apps\ping" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\port" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src\include" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\drivers" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\utilities" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\device" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\CMSIS" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\uart" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\serial_manager" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\lists" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\xip" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\board" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\template" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\source" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\mdio" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\phy" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\contrib\apps\ping" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\port" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src\include" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\drivers" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\utilities" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\device" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\CMSIS" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\uart" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\serial_manager" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\lists" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\xip" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\board" -O0 -fno-common -g3 -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../lwip/port/"= -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"lwip/port/enet_ethernetif_qos.d" -MT"lwip/port/enet_ethernetif_qos.o" -MT"lwip/port/enet_ethernetif_qos.d" -o "lwip/port/enet_ethernetif_qos.o" "../lwip/port/enet_ethernetif_qos.c"
arm-none-eabi-gcc -std=gnu99 -D__REDLIB__ -DCPU_MIMXRT1176DVMAA -DCPU_MIMXRT1176DVMAA_cm7 -DSDK_DEBUGCONSOLE=1 -DXIP_EXTERNAL_FLASH=1 -DXIP_BOOT_HEADER_ENABLE=1 -DPRINTF_ADVANCED_ENABLE=1 -DSERIAL_PORT_TYPE_UART=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\mdio" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\phy" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\contrib\apps\ping" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\port" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src\include" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\drivers" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\utilities" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\device" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\CMSIS" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\uart" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\serial_manager" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\lists" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\xip" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\board" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\template" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\source" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\mdio" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\phy" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\contrib\apps\ping" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\port" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\lwip\src\include" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\drivers" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\utilities" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\device" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\CMSIS" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\uart" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\serial_manager" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\component\lists" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\xip" -I"E:\rt1170\modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7\board" -O0 -fno-common -g3 -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../lwip/port/"= -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"lwip/port/enet_ethernetif.d" -MT"lwip/port/enet_ethernetif.o" -MT"lwip/port/enet_ethernetif.d" -o "lwip/port/enet_ethernetif.o" "../lwip/port/enet_ethernetif.c"
Finished building: ../source/lwip_ping_bm.c
Finished building: ../lwip/port/enet_ethernetif_qos.c
Finished building: ../lwip/port/enet_ethernetif.c
Building target: modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -Xlinker -Map="modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker --sort-section=alignment -Xlinker --cref -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -T "modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7_Debug.ld" -o "modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7.axf" ./xip/evkmimxrt1170_flexspi_nor_config.o ./xip/fsl_flexspi_nor_boot.o ./utilities/fsl_assert.o ./utilities/fsl_debug_console.o ./utilities/fsl_str.o ./startup/startup_mimxrt1176_cm7.o ./source/lwip_ping_bm.o ./source/semihost_hardfault.o ./phy/phy_ksz8851/sam0_ksz8851snl.o ./phy/phy_ksz8851/sam0_spi_ksz8851snl.o ./phy/fsl_phyrtl8211f.o ./mdio/fsl_enet_qos_mdio.o ./lwip/src/netif/ppp/auth.o ./lwip/src/netif/ppp/ccp.o ./lwip/src/netif/ppp/chap-md5.o ./lwip/src/netif/ppp/chap-new.o ./lwip/src/netif/ppp/chap_ms.o ./lwip/src/netif/ppp/demand.o ./lwip/src/netif/ppp/eap.o ./lwip/src/netif/ppp/eui64.o ./lwip/src/netif/ppp/fsm.o ./lwip/src/netif/ppp/ipcp.o ./lwip/src/netif/ppp/ipv6cp.o ./lwip/src/netif/ppp/lcp.o ./lwip/src/netif/ppp/lwip_ecp.o ./lwip/src/netif/ppp/magic.o ./lwip/src/netif/ppp/mppe.o ./lwip/src/netif/ppp/multilink.o ./lwip/src/netif/ppp/ppp.o ./lwip/src/netif/ppp/pppapi.o ./lwip/src/netif/ppp/pppcrypt.o ./lwip/src/netif/ppp/pppoe.o ./lwip/src/netif/ppp/pppol2tp.o ./lwip/src/netif/ppp/pppos.o ./lwip/src/netif/ppp/upap.o ./lwip/src/netif/ppp/utils.o ./lwip/src/netif/ppp/vj.o ./lwip/src/netif/bridgeif.o ./lwip/src/netif/bridgeif_fdb.o ./lwip/src/netif/ethernet.o ./lwip/src/netif/lowpan6.o ./lwip/src/netif/lowpan6_ble.o ./lwip/src/netif/lowpan6_common.o ./lwip/src/netif/slipif.o ./lwip/src/netif/zepif.o ./lwip/src/core/ipv6/dhcp6.o ./lwip/src/core/ipv6/ethip6.o ./lwip/src/core/ipv6/icmp6.o ./lwip/src/core/ipv6/inet6.o ./lwip/src/core/ipv6/ip6.o ./lwip/src/core/ipv6/ip6_addr.o ./lwip/src/core/ipv6/ip6_frag.o ./lwip/src/core/ipv6/mld6.o ./lwip/src/core/ipv6/nd6.o ./lwip/src/core/ipv4/acd.o ./lwip/src/core/ipv4/autoip.o ./lwip/src/core/ipv4/dhcp.o ./lwip/src/core/ipv4/etharp.o ./lwip/src/core/ipv4/icmp.o ./lwip/src/core/ipv4/igmp.o ./lwip/src/core/ipv4/ip4.o ./lwip/src/core/ipv4/ip4_addr.o ./lwip/src/core/ipv4/ip4_frag.o ./lwip/src/core/altcp.o ./lwip/src/core/altcp_alloc.o ./lwip/src/core/altcp_tcp.o ./lwip/src/core/def.o ./lwip/src/core/dns.o ./lwip/src/core/inet_chksum.o ./lwip/src/core/init.o ./lwip/src/core/ip.o ./lwip/src/core/mem.o ./lwip/src/core/memp.o ./lwip/src/core/netif.o ./lwip/src/core/pbuf.o ./lwip/src/core/raw.o ./lwip/src/core/stats.o ./lwip/src/core/sys.o ./lwip/src/core/tcp.o ./lwip/src/core/tcp_in.o ./lwip/src/core/tcp_out.o ./lwip/src/core/timeouts.o ./lwip/src/core/udp.o ./lwip/src/api/api_lib.o ./lwip/src/api/api_msg.o ./lwip/src/api/err.o ./lwip/src/api/if_api.o ./lwip/src/api/netbuf.o ./lwip/src/api/netdb.o ./lwip/src/api/netifapi.o ./lwip/src/api/sockets.o ./lwip/src/api/tcpip.o ./lwip/port/enet_ethernetif.o ./lwip/port/enet_ethernetif_qos.o ./lwip/port/sys_arch.o ./lwip/contrib/apps/ping/ping.o ./drivers/fsl_anatop_ai.o ./drivers/fsl_cache.o ./drivers/fsl_clock.o ./drivers/fsl_common.o ./drivers/fsl_dcdc.o ./drivers/fsl_enet_qos.o ./drivers/fsl_gpio.o ./drivers/fsl_lpspi.o ./drivers/fsl_lpuart.o ./drivers/fsl_pmu.o ./device/system_MIMXRT1176_cm7.o ./component/uart/fsl_adapter_lpuart.o ./component/serial_manager/fsl_component_serial_manager.o ./component/serial_manager/fsl_component_serial_port_uart.o ./component/lists/fsl_component_generic_list.o ./board/board.o ./board/clock_config.o ./board/dcd.o ./board/peripherals.o ./board/pin_mux.o
e:/lc_ic/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: e:/lc_ic/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/lib/thumb/v7e-m+dp/hard\libcr_nohost_nf.a(_cr__main.o): in function `__main':
_cr__main.c:(.text.__main+0xa): undefined reference to `main'
Memory region Used Size Region Size %age Used
BOARD_FLASH: 18648 B 16 MB 0.11%
SRAM_DTC_cm7: 8512 B 256 KB 3.25%
SRAM_ITC_cm7: 0 GB 256 KB 0.00%
SRAM_OC1: 0 GB 512 KB 0.00%
SRAM_OC2: 0 GB 256 KB 0.00%
NCACHE_REGION: 0 GB 256 KB 0.00%
SRAM_OC_ECC1: 0 GB 64 KB 0.00%
SRAM_OC_ECC2: 0 GB 64 KB 0.00%
BOARD_SDRAM: 0 GB 64 MB 0.00%
collect2.exe: error: ld returned 1 exit status
make[1]: *** [makefile:66: modify_sam0_ksz8851_lwip_ping_enet_qos_bm_cm7.axf] Error 1
make: *** [makefile:57: all] Error 2
"make -r -j4 all" terminated with exit code 2. Build might be incomplete.
17:37:33 Build Failed. 4 errors, 0 warnings. (took 3s.384ms)
Solved! Go to Solution.
Can you tell us which sample code are you using and if you are using the evaluation board?
Can you tell us which sample code are you using and if you are using the evaluation board?