AnsweredAssumed Answered

IAR issue when compiling MCUXpresso SDK example

Question asked by wang liu on May 16, 2019
Latest reply on May 16, 2019 by igorpadykov

Hi,

I am using IAR tools to compile MCUXpresso SDK example.

The sdk version is SDK_2.5.0_EVK-MIMX8MM, the board is imx8mm evk, the IAR version is IAR Embedded Workbench for ARM version 8.30.2, the yocto version is 2.5 (Sumo).

After I import hello_world demo example to my IAR project, I click the button make to compile.

But there are some compilation error as follows:

 

Building configuration: hello_world - debug
Updating build tree...
startup_MIMX8MM6_cm4.s
Error[438]: This instruction is not available in the selected cpu/core C:\nxp\devices\MIMX8MM6\iar\startup_MIMX8MM6_cm4.s 212
Error[446]: The selected cpu/core does not support this status register C:\nxp\devices\MIMX8MM6\iar\startup_MIMX8MM6_cm4.s 217
Error[438]: This instruction is not available in the selected cpu/core C:\nxp\devices\MIMX8MM6\iar\startup_MIMX8MM6_cm4.s 219
Error[438]: This instruction is not available in the selected cpu/core C:\nxp\devices\MIMX8MM6\iar\startup_MIMX8MM6_cm4.s 220
Error while running Assembler
clock_config.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
board.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
fsl_assert.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
fsl_clock.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
fsl_debug_console.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
fsl_common.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
fsl_str.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
fsl_rdc.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
generic_list.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
fsl_uart.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
hello_world.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
iuart_adapter.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
pin_mux.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
serial_manager.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
serial_port_uart.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler
system_MIMX8MM6_cm4.c
Fatal Error[Pe035]: #error directive: "Unknown target." C:\nxp\CMSIS\Include\cmsis_iccarm.h 94
Error while running C/C++ Compiler

Total number of errors: 20
Total number of warnings: 0

 

Could you help me to fix these compilation issues?

Outcomes