2023-09-12 02:16 PM
The STM32 compiler toolchain supplied with CubeIDE 1.13.1 recognizes the _Static_assert statement, but the IDE itself does not (it marks it as a syntax error). Can this be fixed? Is there a setting I can change in the IDE to stop flagging _Static_assert as a syntax error without turning off all syntax checking?
Image showing IDE highlighting _Static_assert statement as a syntax error:
Image showing correct compiler treatment of _Static_assert:
To be clear, this is not a show-stopping problem; it's just an annoyance factor.
2024-02-01 12:58 PM
That worked for me. Thanks!
2024-02-02 08:27 AM - edited 2024-02-02 08:28 AM
Very helpful. I had to switch the CDT provider from global to project-specific in order to get it to allow me to add an entry ("Add..." is grayed out if "Use global provider shared between projects" is checked on the Providers tab).
How would I add this to the global provider? This isn't the only project where I might use _Static_assert, so it would be convenient to put it in this global place.
2024-02-03 12:33 PM
think it's impossible. I'm usually pass this tips in ReadMe , ;)