From 40404fb81dfad3f5c5cf567bb053796a9135165e Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Sun, 22 Dec 2024 21:13:23 +0100 Subject: README.md: add build and flash --- README.md | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 945b725..5cde2c6 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,50 @@ Currently, nothing to see :D Are welcome, just create a PR :) +# How to build + +Download and patch the beken SDK + +```bash +make sdk_install +``` + +Build the BLE example: + +```bash +make +``` + +# Flashing + +I followed the original authors and used the outdated "hid_download_py". + +The version I used is this one: + +https://github.com/OpenBekenIOT/hid_download_py/tree/master + +I sodered the TX and RX testpads and used the already evaluated GND and VCC (3,3) and connected it to a cheap TTL to USB adapter. You don't need to connect RST. It is possible to just disconnect VCC for a short period of time if the flashing tool waits for + +```bash +Getting Bus... +``` + +First of all let's dump the current firmware + +```bash +uartprogram -d /dev/ttyUSB0 -r ./dump-fw.bin +``` + +Afterwards we are able to flash our own firmware with + +```bash +uartprogram -d /dev/ttyUSB0 -w ./build/images/ble_tst/0.0.2/ble_tst_UA_0.0.2.bin +``` + +## TODO: + +Try to use ltchiptool. + # Acknowledging The BLE reverse engineering and the initial stack are taken from this blog post. @@ -32,4 +76,4 @@ The doc/notes.pdf is from the original authors with the following note: Finally, while all the code by the author(s) is licensed under GPLv3, other code used in building the final project may be licensed under different terms and it is the responsibility of the reader to ensure compliance with the terms of each license before proceeding." -``` \ No newline at end of file +``` -- cgit v1.2.3