From 3f8dc96ad3ac5bacf71c40589d8742da0900c341 Mon Sep 17 00:00:00 2001 From: linagee Date: Mon, 18 Sep 2023 20:37:41 -0600 Subject: [PATCH 1/2] Add USB DFU to RAK4631 Bootloader update --- .../nrf52/convert-rak4631r.mdx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/getting-started/flashing-firmware/nrf52/convert-rak4631r.mdx b/docs/getting-started/flashing-firmware/nrf52/convert-rak4631r.mdx index 6c9a56e3..90d814b5 100644 --- a/docs/getting-started/flashing-firmware/nrf52/convert-rak4631r.mdx +++ b/docs/getting-started/flashing-firmware/nrf52/convert-rak4631r.mdx @@ -9,6 +9,25 @@ The only difference between the _RAK4631-R_ (RUI3) and the _RAK4631_ (Arduino) i Meshtastic requires the Arduino bootloader on RAK WisBlock nRF52-based boards. The process of converting the bootloader only needs to be performed once. +Here are two ways to flash the bootloader: + +## USB Device Firmware Upgrade (DFU) + +1. Install [Python](https://www.python.org/downloads/) +2. Install [adafruit-nrfutil](https://github.com/adafruit/Adafruit_nRF52_nrfutil) + ```shell + pip3 install adafruit-nrfutil + ``` +3. Download the required bootloader: [WisCore_RAK4631_Board_Bootloader.zip](https://github.com/RAKWireless/WisBlock/releases/download/0.4.2/WisCore_RAK4631_Board_Bootloader.zip) +4. Connect your RAK device by USB. +5. Flash the bootloader + ```shell + adafruit-nrfutil --verbose dfu serial --package ./WisCore_RAK4631_Board_Bootloader.zip -p /dev/ttyACM0 -b 115200 --singlebank --touch 1200 + ``` +6. Continue with the normal [flashing instructions](/docs/getting-started/flashing-firmware/nrf52/drag-n-drop) + +## Debugger + This conversion requires the use of either a [DAPLink](https://daplink.io/) or [J-Link](https://www.segger.com/products/debug-probes/j-link/). The most reasonably priced and available is the [RAKDAP1](https://store.rakwireless.com/products/daplink-tool). 1. Install [Python](https://www.python.org/downloads/) From 157505ddc5da0429a185f04c14f45ac072e59f70 Mon Sep 17 00:00:00 2001 From: linagee Date: Thu, 28 Sep 2023 03:29:37 -0600 Subject: [PATCH 2/2] Clarify serial port name may be different --- .../getting-started/flashing-firmware/nrf52/convert-rak4631r.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/getting-started/flashing-firmware/nrf52/convert-rak4631r.mdx b/docs/getting-started/flashing-firmware/nrf52/convert-rak4631r.mdx index 90d814b5..d91560c8 100644 --- a/docs/getting-started/flashing-firmware/nrf52/convert-rak4631r.mdx +++ b/docs/getting-started/flashing-firmware/nrf52/convert-rak4631r.mdx @@ -24,6 +24,7 @@ Here are two ways to flash the bootloader: ```shell adafruit-nrfutil --verbose dfu serial --package ./WisCore_RAK4631_Board_Bootloader.zip -p /dev/ttyACM0 -b 115200 --singlebank --touch 1200 ``` + Note: The serial port name (`/dev/ttyACM0`) may differ depending on your operating system. Make sure to identify the correct port name for your setup. 6. Continue with the normal [flashing instructions](/docs/getting-started/flashing-firmware/nrf52/drag-n-drop) ## Debugger