Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Bornhack Badge 2018 #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
YOTTA=yt

all: ble400 microbit
all: ble400 bornhack2018 microbit

ble400: dist .yotta.json
$(YOTTA) build --config config/ble400.json
cp build/bbc-microbit-classic-gcc/source/ubit-ble-sniffer-combined.hex dist/btlejack-firmware-ble400.hex
$(YOTTA) clean

bornhack2018: dist .yotta.json
$(YOTTA) build --config config/bornhack2018.json
cp build/bbc-microbit-classic-gcc/source/ubit-ble-sniffer-combined.hex dist/btlejack-firmware-bornhack2018.hex
$(YOTTA) clean

microbit: dist .yotta.json
$(YOTTA) build
cp build/bbc-microbit-classic-gcc/source/ubit-ble-sniffer-combined.hex dist/btlejack-firmware-microbit.hex
Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

This repository contains the firmware source code used by Btlejack to communicate and attack BLE connections with Micro:Bit devices.

Two versions of this firmware can be compiled:
Three versions of this firmware can be compiled:

* a version for the BBC Micro:Bit
* a version for BLE400 and Adafruit's Bluefruit LE boards
* a version for the nRF51822 chip on the [Bornhack Badge 2018](https://github.com/bornhack/badge2018)

To compile these two versions:
To compile these versions:

```
$ make all
```

Firmware hex files are then available in the `dist` directory (not versioned).
Firmware hex files are then available in the `dist` directory (not versioned).


## Links
Expand All @@ -30,3 +31,13 @@ Firmware hex files are then available in the `dist` directory (not versioned).
## BBC Community Guidelines

[BBC Community Guidelines](https://www.microbit.co.uk/help#sect_cg)

## Using the Bornhack Badge

The Bornhack Badge 2018 has two microcontroller, the main Happy Gecko and an auxiliary nRF51822.
To program the nRF51822, one has to flash the [nrf51prog](https://github.com/bornhack/badge2018/tree/nrf51prog) to the main microcontroller.
Afterwards, an USB mass storage is emulated, where the Btlejack firmware can be copied to.

To connect the nRF51822 microcontroller to a computer, some headers needs to be soldered to the board.
The pins needs to be added to the twelve holes in the lower right, as shown in the [schematic](https://github.com/bornhack/badge2018/raw/hardware/schematic.pdf).
Finally, the ports 10/P0.09 and 12/P0.11 are TX and RX.
12 changes: 12 additions & 0 deletions config/bornhack2018.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"txpin": "P0_9",
"rxpin": "P0_11",

"nrf51822": {
"ram_size": "16K"
},

"image": {
"fota": true
}
}
Loading