Using cmake to build inline assembly code got an error: no such instruction: `isb 0xF'
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-05-19 4:38 PM
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.
Labels:
- Labels:
-
STM32CubeIDE
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-05-22 11:02 PM
After I installed newlib in Alpine docker, the problem has gone.
