Skip to main content
debugging
Lead
November 14, 2024
Question

STCubeIDE 1.16.1 __ALIGN syntax error and underlines

  • November 14, 2024
  • 2 replies
  • 1212 views

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

 

 

2 replies

Ghofrane GSOURI
Technical Moderator
November 14, 2024

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
debugging
debuggingAuthor
Lead
November 15, 2024

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

Ghofrane GSOURI
Technical Moderator
November 15, 2024

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
debugging
debuggingAuthor
Lead
November 29, 2024

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?