Skip to content

Commit 2e26f4c

Browse files
committed
docs: update BBC micro:bit flash instructions
Signed-off-by: deadprogram <ron@hybridgroup.com>
1 parent ca51250 commit 2e26f4c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,18 @@ For example, this command can be used to compile and flash an Adafruit Circuit P
210210

211211
### BBC micro:bit
212212

213-
The [BBC micro:bit](https://microbit.org/) uses an nRF51 chip with a CMSIS-DAP interface. This means you must first flash the SoftDevice firmware by copying the .hex file to the device, for example (on Linux):
213+
The [BBC micro:bit](https://microbit.org/) uses an nRF51 chip with a CMSIS-DAP interface.
214214

215+
You will need to install OpenOCD (http://openocd.org/) to flash the board.
216+
217+
First, flash the SoftDevice firmware by copying the .hex file to the device. For example (on Linux):
218+
219+
cd bluetooth
215220
cp ./s110_nrf51_8.0.0/s110_nrf51_8.0.0_softdevice.hex /media/yourusername/MICROBIT/
216221

217-
Once you have copied the SoftDevice firmware to the BBC micro:bit, you can flash your TinyGo program. To do this we must use the CMSIS-DAP interface instead of the default mass-storage interface, by using the `-programmer=cmsis-dap` flag:
222+
Once you have copied the SoftDevice firmware to the BBC micro:bit, you can then flash your TinyGo program:
218223

219-
tinygo flash -target=microbit-s110v8 -programmer=cmsis-dap ./examples/heartrate
224+
tinygo flash -target=microbit-s110v8 ./examples/heartrate
220225

221226
### Supported Chips
222227

0 commit comments

Comments
 (0)