AnsweredAssumed Answered

Help interpreting MCUXpresso error message when accessing ext. lib

Question asked by Ed McMurray on Sep 18, 2018
Latest reply on Sep 20, 2018 by Ed McMurray



I had a question regarding how to interpret an error message I received when building SDK project in MCUXpresso IDE, which accesses a linked lib.  The SDK was created for use on the i.MXRT1050 EVK.  The lib was built under linux using gnu toolchain for ARM Cortex M7 bare metal.  I have added the lib and path in IDE.


Initially I verified that I could build a simple hello world program, without any lib access.  I then added some calls into the libvpx and got the following error message.  Any help interpreting the message is appreciated.






Finished building: ../board/clock_config.c
Finished building: ../board/board.c
Finished building: ../board/pin_mux.c
Finished building: ../CMSIS/system_MIMXRT1052.c

Building target: MIMXRT1052xxxxB_Project.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\SHARED_PROJECTS\Defibtech\Defibtech_trainer\workspace\LIBvpx" -Xlinker -Map="" -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker --sort-section=alignment -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -T MIMXRT1052xxxxB_Project_Debug.ld -o "MIMXRT1052xxxxB_Project.axf"  ./xip/evkbimxrt1050_flexspi_nor_config.o ./xip/evkbimxrt1050_sdram_ini_dcd.o ./xip/fsl_flexspi_nor_boot.o  ./utilities/fsl_debug_console.o ./utilities/fsl_io.o ./utilities/fsl_log.o ./utilities/fsl_str.o  ./startup/startup_mimxrt1052.o  ./source/VPX_APP/ivfdec.o ./source/VPX_APP/tools_common.o ./source/VPX_APP/video_reader.o  ./source/MIMXRT1052xxxxB_Project.o ./source/semihost_hardfault.o  ./drivers/fsl_clock.o ./drivers/fsl_common.o ./drivers/fsl_gpio.o ./drivers/fsl_lpuart.o  ./board/board.o ./board/clock_config.o ./board/peripherals.o ./board/pin_mux.o  ./CMSIS/system_MIMXRT1052.o   -lvpx
C:\SHARED_PROJECTS\Defibtech\Defibtech_trainer\workspace\LIBvpx\libvpx.a: error adding symbols: File format not recognized
collect2.exe: error: ld returned 1 exit status
make: *** [MIMXRT1052xxxxB_Project.axf] Error 1



some additional info:

i.MX RT1052 

SDK for MIMXRT1052

MCUXpresso IDE v10.2.0

Windows 7 professional (MCUXpresso environment)

Linux Ubuntu (lib build environment)