Skip to main content
Associate
May 19, 2024
Question

Using cmake to build inline assembly code got an error: no such instruction: `isb 0xF'

  • May 19, 2024
  • 1 reply
  • 1737 views

Hello all,

I am trying to compile STM32G4xx_HAL_Driver using gcc toolchain in Alpine. I am using the cmakelist template from cmake community, below is the link:

CMakeLists.txt file for STM32 project setup compilation using VS code - Code - CMake Discourse

The compiling failed at: libraries/CMSIS/Include/cmsis_gcc.h:935: Error: no such instruction: `isb 0xF'.

The code is inline assambly: 

__STATIC_FORCEINLINE void __ISB(void)
{
  __ASM volatile ("isb 0xF":::"memory");
}
I can't find any good answers from Internet, so post a help message here.
 
Can anyone help me out of this issue?
 
Thanks.
This topic has been closed for replies.

1 reply

DaweiYangAuthor
Associate
May 23, 2024

After I installed newlib in Alpine docker, the problem has gone.