2018-12-20 06:13 PM
I use Iar Embedded Workbench 8.32.2.194323.
I created the project file with Cubemx 5.0 using STM32L496ZGTxP.(Nucleo-L496ZG-P).
I didn't nothing in the cubemx 5.0.
It works well in STM32L496ZGTx. (Nucleo-L496ZG).
When I compiled In the IAR workbench, Iar workbench shows these error messages.
=============================
Building configuration: STM32L496ZGTxP2 - STM32L496ZGTxP2
Updating build tree...
startup_stm32l496xx.s
Error[438]: This instruction is not available in the selected cpu/core F:\Work\STM32L496ZGTxP2\EWARM\startup_stm32l496xx.s 189
Error while running Assembler
stm32l4xx_hal_dma.c
Error[Ta148]: Intrinsic function "__nounwind __iar_builtin_DSB" is not available in this architecture F:\Work\STM32L496ZGTxP2\Drivers\CMSIS\Include\core_cm4.h 1792
Error[Ta148]: Intrinsic function "__nounwind __iar_builtin_DSB" is not available in this architecture F:\Work\STM32L496ZGTxP2\Drivers\CMSIS\Include\core_cm4.h 1797
Error while running C/C++ Compiler
stm32l4xx_hal.c
Error[Ta148]: Intrinsic function "__nounwind __iar_builtin_DSB" is not available in this architecture F:\Work\STM32L496ZGTxP2\Drivers\CMSIS\Include\core_cm4.h 1792
Error[Ta148]: Intrinsic function "__nounwind __iar_builtin_DSB" is not available in this architecture F:\Work\STM32L496ZGTxP2\Drivers\CMSIS\Include\core_cm4.h 1797
Error while running C/C++ Compiler
main.c
Error[Ta148]: Intrinsic function "__nounwind __iar_builtin_DSB" is not available in this architecture F:\Work\STM32L496ZGTxP2\Drivers\CMSIS\Include\core_cm4.h 1792
Error[Ta148]: Intrinsic function "__nounwind __iar_builtin_DSB" is not available in this architecture F:\Work\STM32L496ZGTxP2\Drivers\CMSIS\Include\core_cm4.h 1797
Error while running C/C++ Compiler
stm32l4xx_hal_cortex.c
Error[Ta148]: Intrinsic function "__nounwind __iar_builtin_DSB" is not available in this architecture F:\Work\STM32L496ZGTxP2\Drivers\CMSIS\Include\core_cm4.h 1792
Error[Ta148]: Intrinsic function "__nounwind __iar_builtin_DSB" is not available in this architecture F:\Work\STM32L496ZGTxP2\Drivers\CMSIS\Include\core_cm4.h 1797
Error[Ta148]: Intrinsic function "__nounwind __iar_builtin_DMB" is not available in this architecture F:\Work\STM32L496ZGTxP2\Drivers\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cortex.c 443
Error[Ta148]: Intrinsic function "__nounwind __iar_builtin_DSB" is not available in this architecture F:\Work\STM32L496ZGTxP2\Drivers\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cortex.c 472
Error[Ta148]: Intrinsic function "__nounwind __iar_builtin_ISB" is not available in this architecture F:\Work\STM32L496ZGTxP2\Drivers\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cortex.c 473
2018-12-26 05:28 AM
Hello @Edward Jang ,
I think the "Use CMSIS" option is not checked. Thus the CMSIS intrinsic are not found.
You can set the CMSIS-DSP library option in the Project > Options, then General Options>Library Configuration page.
If your issue is not resolved, could you please share the ioc file to check that may be an issue related to CubeMX project generation.
Kind Regards,
Imen
2020-01-07 01:10 AM
Hi @Edward Jang ,
I also faced similar problem but for another controller.
The problem was with wrong setting of core. It worked after selecting proper controller.
This you can find under Project ->Options->General Options->Target
You can check what core(in your case it will be Cortex-M4 core) or device selected(STM32L496ZG).