Skip to content

Commit 8bf5a6d

Browse files
committed
Merge branch 'master' of github.com:AGlass0fMilk/mbed-mcuboot-demo
2 parents bbdd97e + cdc303a commit 8bf5a6d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# mbed-mcuboot-demo
2+
Demo of mcuboot with Mbed
3+
4+
Initialize the mcuboot submodule:
5+
`git submodule init && git submodule update`
6+
7+
Pull the most recent mcuboot mbed port:
8+
`cd mcuboot && git checkout mbed-port && git pull`
9+
10+
Build the mbed program:
11+
```
12+
mbed target NRF52840_DK
13+
mbed toolchain GCC_ARM
14+
mbed compile
15+
```
16+
17+
Flash bootloader application to the NRF52840_DK.
18+
19+
Then flash the included `signed-usb.hex` to the NRF52840_DK.
20+
21+
This enables drag-and-drop programming of the target over USB MSD.
22+
23+
Plug the NRF52840_DK's target USB connector into your laptop. It should show up as a 2MB flash drive.
24+
25+
Copy the `signed.bin` binary over to the flash drive. You can watch serial output for progress of flashing.
26+
27+
After a while the target should disconnect and start flashing itself... the on-board LED3 should start to blink when done.

0 commit comments

Comments
 (0)