-
-
Notifications
You must be signed in to change notification settings - Fork 28
Flash BDsensor(stm32) firmware
Mark edited this page Nov 6, 2024
·
16 revisions
this is for the hardware version >= V1.2
1.Connect the STlinkV2 to BDsensor, that may require you to solder the wires or a burning fixture(1.25MM or 1.27MM spacing,5Pin)
Note
the SDA and CLK on the BDsensor are not for STlink, so don't connect SDA/CLK to the SWDIO/SWCLK on the STlink.
2, Flash the firmware into BDsensor with STM32CubeProgrammer
- Run
STM32CubeProgrammer
- Connect STlink--> Read out Protection-->RDP -->set value(AA)-->Apply-->Full chip erase-->Browse firmware
V1.2stm32_20240211.hex
--> start Programming
Tip
If the STM32CubeProgrammer does not work for you, you can try this STM32 Batch Programer.exe
the firmware V1.2stm32_20240211.hex
is in https://github.com/markniu/Bed_Distance_sensor/tree/new/hex/V1.3_STM32