Skip to main content
Vagni
Associate III
August 25, 2026
Question

STM32C0 Application Crash after STM32CubeMX and STM32C0 Firmware Package Upgrade

  • August 25, 2026
  • 2 replies
  • 55 views

I have my application running properly on my custom board based on STM32C091RCT6 MCU. I developed my application with STM32CubeMX v6.18.0 and STM32C0 Firmware Package v1.4.0 and I use X-CUBE-FREERTOS.1.6.0 (FreeRTOS 11.2.0 and CMSIS-RTOS 2.1.3).

Now I need to modify my IOC project. STM32CubeMX notified me for upgrade to the new release 6.18.1 and STM32C0 Firmware Package v1.4.1. So I install the updates and then I let STM32CubeMX migrate my IOC project. I generate the new upgraded application project and build without any errors.

But my application crashes when it starts to run. With the debugger I see an unexpected interrupt is generated as osKernelInitialize() is called; my application falls into Default_Handler().

Is X-CUBE-FREERTOS.1.6.0 maybe not compatible with STM32C0 Firmware Package v1.4.1?

With the upgrade only some of the files in my “Drivers” folder were changed as well as my IOC and .cproject files.

2 replies

ST Technical Moderator
August 26, 2026

Hello ​@Vagni 

Could you please provide your IOC in order to investigate the issue?

BR, Souhaib

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Vagni
VagniAuthor
Associate III
August 26, 2026

Hello ​@Souhaib MAZHOUD 

Attached you can find my both IOCs, the old one generated with STM32CubeMX v6.18.0 and the new one with  STM32CubeMX v6.18.1.

Thanks