README: update flashing over BT details

This commit is contained in:
King Kévin 2020-05-31 23:53:38 +02:00
parent eff94f9841
commit 367ff5d8b5
1 changed files with 4 additions and 4 deletions

View File

@ -198,15 +198,15 @@ sudo systemctl restart bluetooth
# pair device (you need the PIN)
bluetoothctl
power on
pair 98:D3:33:80:86:BA
pair 20:15:02:02:16:28
quit
# connect to device
sudo rfcomm bind rfcomm0 98:D3:33:80:86:BA
sudo rfcomm bind rfcomm0 20:15:02:02:16:28
# switch to bootloader
echo "system" > /dev/rfcomm0
echo "embedded" > /dev/rfcomm0
# flash firmware (it always fails the first time)
stm32flash /dev/rfcomm0
stm32flash /dev/rfcomm0 -S 0x08002000 -w application.bin -R
stm32flash /dev/rfcomm0 -b 115200 -S 0x08002000 -w application.bin -R
# disconnect from device
sudo rfcomm release rfcomm0
~~~