Is it possible that you change „asm“ to „__asm“ in generated code?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-04-01 1:58 AM
That way it would compile with compiler setting -std=c99.
Currently when I generate Code for STM32L451 with MX in STM32CubeIDE 1.6.0, syscalls.c contains
register char * stack_ptr asm("sp");
This does not work with c99. Changing it to
register char * stack_ptr __asm("sp");
works.
Since I don’t want to change generated code, my current workaround is to define asm as __asm as a symbol in the project properties.
Labels:
- Labels:
-
STM32L4 series
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
