Skip to main content
Kolja Waschk
Associate III
August 11, 2026
Question

Cube FW line endings finally changed to just LF but without warning?

  • August 11, 2026
  • 5 replies
  • 45 views

Hi

Looking at recent STM32Cube FW for H7 (1.13 after 1.11) or G0 (1.6.3 after 1.6.2), I found that line endings in the archives downloaded by CubeMX (e.g. stm32cube_fw_g0_v163.zip) in several files have been changed from CR/LF to LF.

In principle, I welcome this change, but as it makes large parts of code appear “different” to existing code base (unless one already cared about correct handling and conversion in the past), shouldn’t there be some warning during code generation when overwriting large amounts of files that still have CR/LF?! Did I miss some announcement?

Kolja

5 replies

Ghofrane GSOURI
ST Technical Moderator
August 11, 2026

Hello ​@Kolja Waschk 

I am currently investigating this behavior. I will get back to you ASAP.

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.
Kolja Waschk
Associate III
August 11, 2026

For reference, what I did (in linux bash shell) 

$ unzip /opt/st/STM32Cube/Repository/stm32cube_fw_g0_v162.zip -d 162

$ unzip /opt/st/STM32Cube/Repository/stm32cube_fw_g0_v163.zip -d 163

$ file 162/STM32Cube_FW_G0_V1.6.0/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c

162/STM32Cube_FW_G0_V1.6.0/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c: C source, ASCII text, with CRLF line terminators

$ file 163/STM32Cube_FW_G0_V1.6.0/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c

163/STM32Cube_FW_G0_V1.6.0/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c: C source, ASCII text

 

By the way, in both archives the top level directory is named “STM32Cube_FW_G0_V1.6.0” albeit the file name says 1.6.2 or 1.6.3, not 1.6.0.
Kolja

Ghofrane GSOURI
ST Technical Moderator
August 11, 2026

Hello ​@Kolja Waschk 

I have escalated your question to the appropriate team under internal ticket ID #0065024  

I will keep you posted with updates.

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.
Pavel A.
August 11, 2026

> By the way, in both archives the top level directory is named “STM32Cube_FW_G0_V1.6.0” albeit the file name says 1.6.2 or 1.6.3, not 1.6.0.

This behavior is not new. The actual version of the cube package is in the package.xml file in the root dir.

 

 

Kolja Waschk
Associate III
August 11, 2026

To clarify: It is STM32CubeMX that downloads and uses these archives, not me. I just looked into them to find the root cause for CR/LF changing to LF in my projects after regenerating with CubeMX.