Skip to main content
Associate
June 30, 2026
Question

How do I switch microcontroller in STM32CubeMX2

  • June 30, 2026
  • 1 reply
  • 63 views

I’ve started from the LWIP TCP echo server with FreeRTOS example from ST and have made a *.ioc2 file to support that example. The issue is that I’m starting from the NUCLEO-C5A3ZG (which I’ve configured the *.ioc2 project), but intend to use a STM32C593 in my final product. My understanding was that STM32CubeMX would allow switching microcontrollers, but keeping the similar configuration settings (e.g. LWIP, FreeRTOS, etc.). I’d like to have the project required configuration settings managed in a tool like CubeMX2, but this will not be possible/feasible if I can’t make changes without having to start completely from scratch every time we make a change. Is there a setting somewhere that I’ve missed to allow switching processors? Is this a planned feature that may not yet be released? Thanks in advance.

1 reply

ST Employee
July 7, 2026

Hello ​@laldrich , and thanks for raising this. What you’re trying to do is a valid workflow, and today CubeMX2 does not yet provide a released, seamless “switch MCU and keep as much configuration as possible” flow for that use case.

This is a planned direction, because we know keeping middleware and project configuration when moving between close devices is important in real projects, but we do not have a committed release date to share yet.

So if you’re looking for a setting you may have missed: no, there isn’t a hidden option today that fully enables that workflow in CubeMX2.

Please keep the feedback coming, because examples like moving from a NUCLEO-C5A3ZG-based setup toward a final STM32C593 product are exactly the kind of migration scenario we need to support better.

 

Best regards,

Mads

Andrew Neil
Super User
July 7, 2026

What you’re trying to do is a valid workflow, and today CubeMX2 does not yet provide a released, seamless “switch MCU and keep as much configuration as possible” flow

Does “original” CubeMX even provide that ?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
laldrichAuthor
Associate
July 7, 2026

Yes, there was a write-up from an ST employee about it (link below). The safe guards regarding device configuration that exist in STM32CubeMX(2) provide a pass/fail indication before board bring up.