florisla / stm32loader

Flash firmware to STM32 microcontrollers using Python.
GNU General Public License v3.0
109 stars 53 forks source link

Infer `--family` from the device ID #68

Closed florisla closed 8 months ago

florisla commented 1 year ago

From #67, stm32loader can not display flash size and UID because --family is not supplied.

This is backwards because the Chip ID already identifies as an STM32H7.

$ stm32loader -p COM7 -e -w -v ../../controller/platformio/.pio/build/my_env/firmware.bin
Bootloader version: 0x31
Chip id: 0x450 (STM32H76xxx/77xxx)
Supply -f [family] to see flash size and device UID, e.g: -f F1
florisla commented 8 months ago

This is implemented in the device-table branch, which will become main soon.