cancel
Showing results for 
Search instead for 
Did you mean: 

STCubeIDE 1.16.1 __ALIGN syntax error and underlines

debugging
Lead

Since today CubeIDE 1.16.1 suddenly reports syntax errors for lines such as:

__ALIGN_BEGIN uint8_t USBD_Desc[USB_DESC_SIZ] __ALIGN_END =

{ ...

The code compiles fine. but all the lines following are underlined. Removing __ALIGN_END removes all those underlines but the line itself is still marked as a syntax error.  I can't recall having change the code., this just appeared today. Ubuntu 24.10. Years ago someone posed something similar https://devzone.nordicsemi.com/f/nordic-q-a/30023/how-to-get-rid-of-__align-4-syntax-error-in-eclipse

 

 

4 REPLIES 4
Ghofrane GSOURI
ST Employee

Hello @debugging 

The STM32CubeIDE is not  officially supported on  Ubuntu 24.10

Here is the list of OS supported (in RN):
Supported operating systems and architectures
• Windows® 10 and 11, 64 bits (x64)
• Linux®: Ubuntu® LTS 20.04 and LTS 22.04, and Fedora® 36
• macOS® 12 (Monterey), macOS® 13 (Ventura)

THX

Ghofrane

CubeIDE was already on 24.10 before this started to occur. Is there anything wrong with that syntax ? It seems it wasn't before.

Hello @debugging 

 STM32CubeIDE is not officially supported on Ubuntu 24.10, which may lead to unexpected behavior, including incorrect syntax error reporting for valid code.

The IDE may not function correctly due to dependencies or compatibility issues inherent to the OS version

Recommendation:

Use a Virtual Machine: If downgrading is not feasible, you could run an officially supported version of Ubuntu in a virtual machine (VM) and install STM32CubeIDE there.

THX

Ghofrane

debugging
Lead

Ok then. If  the syntax and correct and the IDE flags this as a problem, could STMICRO please consider to mark this as an issue to fix for CubeIDE once you start evaluating this for 24.04?