Skip to main content
Hamid.Wasti
Associate III
Question

To be (STM32L476) or not to be (upgrade to a newer processor), that is the question!

Hello All, especially the ST staff..

After nearly a decade in production,, one of my designs is slated to undergo a major redesign to add capabilities. There will be meaningful hardware changes as well as a lot of software changes.

The easiest thing to do is to stay with STM32L476. It is more than adequate to run the new code and adding to existing code is a lot easier than porting to a new processor, especially one that does not add any few features that can be used. At the hardware level, sticking with STM32L476 is easier than changing, especially since I have unused peripherals and IO pins available for the new capabilities.

At manufacturing level, they do not care about either of those and are focused on moving away from an 11 year old processor and porting to something new.

What is the realistic future for the STM32L476? Is there a reason to design it out when the opportunity presents itself?

I know the official position is that it is recommended for new designs and there is a rolling 10 year commitment. But what is the scuttlebutt? What do the tea leaves say?  And what is realistic?

Regards,

Hamid

7 replies

Pavel A.

> undergo a major redesign to add capabilities

Which capabilities? Purely software or not?

 

Hamid.Wasti
Associate III

More capabilities as in talking to more sensors/devices/”things” and doing more computation to achieve that. The total processor usage will increase from “very little” to “little,” Flash usage will still remain tiny, RAM will still be under 50% utilized and the processor’s power consumption will still be too small to think about compared to the whole device’s power consumption.

Bottom line: The L476 is still quite capable of doing the job and an “upgrade” is not needed for performance reasons, only procurement/availibility ones.

gbm
Super User

The newer MCUs are usually cheaper than the older series and will survive longer. Depending on particular requirements, L4 may be substituted with C5 (very low cost but no battery-powered RTC), H5 (low cost, higher performance than L4) or U5 (low power, higher performance, the closest to the original L4 application niche).

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
Hamid.Wasti
Associate III

Thank you for the overview of the newer devices.

In this particular case, none of the usual selling points are important or even relevant: Capabilities, performance, power, or chip cost. The only metric is long term availability. Even there, it is a given that a newer processor will be available for longer.

The bottom-line question is whether we can get away with sticking with the L4 (existing code base, lower development cost, less development/schedule risk), or is discontinuation or deemphasizing a risk. Maybe a formal support ticket is the correct next step.

Associate II

Hi Hamid,

Since you are already doing a major hardware and firmware redesign, migrating to the STM32U575 (e.g., STM32U575RGT6 for LQFP64) is a practical, low-overhead upgrade:

  • Near 1:1 Pin Compatibility (AN5372): The U5 series matches the L476 pinout across standard LQFP packages. For example, on LQFP64, the only hardware change required is replacing pin 30 (PB11) with a VCAP decoupling capacitor.
  • Comparable Analog & Peripherals: Unlike stripped-down lines, the U575 retains the L476 analog set (including 2x OpAmps and 2x Comparators) along with expanded communication interfaces for your new sensors.
  • Hardware & Supply Longevity: Moving from a 2015 90nm MCU to a 40nm Cortex-M33 provides double the frequency (160 MHz), 6x more SRAM (786 KB), TrustZone security, and long-term supply stability at a comparable cost.

Using this redesign window to port via STM32CubeMX/HAL addresses your manufacturing team's longevity requirements now with minimal PCB and code rework.

gregstm
Senior II

The following is just my opinion tainted by bitter experience -

Beware the update/upgrade - whether hardware or software - especially when the present processor is doing a good job. Why change more than you need to, especially when you say - "... easiest thing to do is to stay with STM32L476 ...", "... adding to existing code is a lot easier than porting to a new processor ...", "... At the hardware level, sticking with STM32L476 is easier than changing ...”

You say - “… hardware changes as well as a lot of software changes. ...” - why add another variable to the work by changing the micro? 

You say it is the “manufacturing level” that are “focused on moving away from a 11 year old processor” - focussed is apt, they don’t see the big picture.

But I know very little about your application eg. what package you are using, is it FPU intensive,  is your product a medical device, is safety critical, … 

In general, I think all software and hardware engineers should read the IEEE report of the Therac 25 accidents - that too was an upgrage of the hardware and software - it certainly changed how I thought about software+hardware (and upgrades).

Rodo
Senior

Do you build the product in factory now? If not, have u talked to the CM (Contract Manufacturer) that is building the product to check that they have little or no stock of STM32L476 left if you decide to change the MCU? They may no be very happy or worst bill your company for the unused STM32L476 and that number could be low ...or who knows how high.

I think the excitment of a new MCU sometimes clouds the judgement of us engineers. Nothing in embedded system design is easy. It may look fun for us engineers but at the end of the day companies have to pay for our time. Using a newer MCU is going to take longer than the current one. Is management happy with that?

Good luck.