Question
Using same binary on STM32F407 and STM32F405
Posted on October 14, 2016 at 15:17
I'm building a bootloader and it shall run on a 100pin STM32F407 and a 64pin STM32F405. From reading the reference manual they seem very similar (except for some peripherals). My dev-environment does include an assembler initial start-file (xxxx.S).
Is it possible due to their similarities to use the same binary on those two? If so, can the program still distinguish on what HW it is running (without external help of strapping pins)? I did read about the ''unique device ID'' register. So far I can't find any indication that there is a part of that ID that suggests a certain device. Since it says: ''unique for any device and in any context.'' (page 1702, RM0090). #stm32f405-stm32f407-bootloader