https://github.com/matthewelse/microbit-bootloader
Work on the Nordic bootloader for the micro:bit
https://github.com/matthewelse/microbit-bootloader
bootloader microbit
Last synced: 7 months ago
JSON representation
Work on the Nordic bootloader for the micro:bit
- Host: GitHub
- URL: https://github.com/matthewelse/microbit-bootloader
- Owner: matthewelse
- Created: 2017-01-03T18:01:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-14T10:06:53.000Z (over 8 years ago)
- Last Synced: 2025-03-22T12:27:17.551Z (11 months ago)
- Topics: bootloader, microbit
- Language: C
- Size: 18.1 MB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# micro:bit bootloader
The current primary aim is to get a fully-functional build of the bootloader using GCC, that can be used as a drop in replacement for the existing bootloader.
However, this needs to use a single bank of flash, as well as not requiring an init packet.
The current state of the project can be built by:
```bash
cd examples/dfu/bootloader/pca10028/single_bank_ble_s110/armgcc
make
```
This will then produce a hex file in `armgcc/_build`, which you can then run through `srec_cat` to produce a drop in replacement for the binary from before.
The `srec_cat` command is only necessary if you're producing a combined binary containing an application, since it sets the bootloader settings to indicate that an application is present.
```bash
srec_cat _build/nrf51422_xxac.hex -intel \
-exclude 0x3FC00 0x3FC20 \
-generate 0x3FC00 0x3FC04 -constant-l-e 0x01 4 \
-generate 0x3FC04 0x3FC08 -constant-l-e 0x00 4 \
-generate 0x3FC08 0x3FC0C -constant-l-e 0xFE 4 \
-generate 0x3FC0C 0x3FC20 -constant 0x00 \
-o _build/nrf51422_xxac.hex -intel
```