cancel
Showing results for 
Search instead for 
Did you mean: 

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

DaweiYang
Associate

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.
1 REPLY 1
DaweiYang
Associate

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