Skip to main content
robotron2
Visitor II
Mar 2, 2023 10:59 AM UTC
Question

Do I need to compile different binaries for two MCUs in the same family that only differ in flash size?

I have an STM32F427VGT6 and a STM32F427VIT6 which only differ in Flash size. I have firmware that works fine on the variant with smaller flash size. Do I need to recompile it for the larger variant or will I be able to flash it as is?

I am asking because we're trying to evaluate the larger version as a drop in replacement in case sourcing is more difficult.

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
Mar 2, 2023 11:24 AM UTC

In this particular case, no - these two chips are identical except the usable FLASH size.

In different families, it may happen that models with the same "number" but different FLASH size have also other, subtle but sometimes important, differences.

JW

Tesla DeLorean
Guru
Mar 2, 2023 1:34 PM UTC

Generally no, you should make a determination based on the ​CHIP ID / DIE / MASKSET

​

It is also possible to code so that functionality is adaptive. When I was doing a lot of F4 work there were different parts that ran at different frequencies and had different memory, especially RAMs. The start up code would identify parts, run at maximal speed, and pool dynamic memory based on the part the binary was running on.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..