AnsweredAssumed Answered

JN-SW-4141 do not support function "sprintf"

Question asked by liushuai liu on Oct 30, 2018
Latest reply on Nov 5, 2018 by Mario Ignacio Castaneda Lopez

Linking AN1184_ZBP_Coordinator_JN5168.elf ...
/c/NXP/bstudio_nxp/sdk/Tools/ba-elf-ba2-r36379/bin/ba-elf-gcc -march=ba2 -mcpu=jn51xx -mredzone-size=4 -mbranch-cost=3 -fomit-frame-pointer -Os -fshort-enums -flto -nostartfiles -L/c/NXP/bstudio_nxp/sdk/JN-SW-4168/Chip/JN5168/Build -L/c/NXP/bstudio_nxp/sdk/JN-SW-4168/Chip/JN5168/Library -L/c/NXP/bstudio_nxp/sdk/JN-SW-4168/Platform/DK4/Library -L/c/NXP/bstudio_nxp/sdk/JN-SW-4168/Components/Library -Wl,--gc-sections -Wl,--defsym=__stack_size=5000 -Wl,--defsym,__minimum_heap_size=2000 -TAppBuildZBPro.ld -o AN1184_ZBP_Coordinator_JN5168.elf -Wl,--start-group os_gen.o os_irq.o os_irq_alignment.o os_irq_buserror.o os_irq_illegalinstruction.o os_irq_stackoverflowexception.o os_irq_unimplementedmodule.o pdum_gen.o pdum_apdu.o zps_gen.o app_timer_driver.o app_start.o app_coordinator.o app_endpoint.o appZdpExtraction.o appZpsBeaconHandler.o app_exceptions.o app_pdm.o app_sendmsg.o app_uart1.o -lZPSMAC_Mini_JN516x -lOS_JN516x -lPWRM_JN516x -lZPSTSV_JN516x -lAES_SW_JN516x -lPDUM_JN516x -lZPSAPL_JN516x -lRandom_JN516x -lPDM_EEPROM_JN516x -lDBG_JN516x -lZPSNWK_JN516x -lMiniMac_JN516x -lMiniMacShim_JN516x -lMMAC_JN516x -lAes_JN516x -lHardwareApi_JN516x -lMicroSpecific_JN516x -lBoot_JN516x -lBoardLib_JN516x -Wl,--end-group -Wl,-Map,AN1184_ZBP_Coordinator_JN5168.map
c:/nxp/bstudio_nxp/sdk/tools/ba-elf-ba2-r36379/bin/../lib/gcc/ba-elf/4.7.4/../../../../ba-elf/lib/mcpu_jn51xx_sizeopt\libc.a(lib_a-glue.o): In function `_sbrk':
/ba_toolchain/r36379/source/gcc-4.7.4-ba-r36379-build/ba-elf/mcpu_jn51xx_sizeopt/newlib/libc/sys/basim/../../../../../../../gcc-4.7.4-ba-r36379/newlib/libc/sys/basim/glue.c:75: undefined reference to `end'
/ba_toolchain/r36379/source/gcc-4.7.4-ba-r36379-build/ba-elf/mcpu_jn51xx_sizeopt/newlib/libc/sys/basim/../../../../../../../gcc-4.7.4-ba-r36379/newlib/libc/sys/basim/glue.c:75: undefined reference to `_stack'
/ba_toolchain/r36379/source/gcc-4.7.4-ba-r36379-build/ba-elf/mcpu_jn51xx_sizeopt/newlib/libc/sys/basim/../../../../../../../gcc-4.7.4-ba-r36379/newlib/libc/sys/basim/glue.c:75: undefined reference to `_stack'
/ba_toolchain/r36379/source/gcc-4.7.4-ba-r36379-build/ba-elf/mcpu_jn51xx_sizeopt/newlib/libc/sys/basim/../../../../../../../gcc-4.7.4-ba-r36379/newlib/libc/sys/basim/glue.c:75:(.text+0x197): relocation truncated to fit: R_BA_8 against undefined symbol `_stack'
collect2.exe: error: ld returned 1 exit status
make: *** [AN1184_ZBP_Coordinator_JN5168.elf] Error 1

Outcomes