From cc35ed77822525ee1caafafbb13151b9165c761e Mon Sep 17 00:00:00 2001 From: geeksville Date: Fri, 10 Jul 2020 12:12:03 -0700 Subject: [PATCH] update build instructions for RAK815 --- docs/software/nrf52-TODO.md | 10 +++++----- platformio.ini | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/software/nrf52-TODO.md b/docs/software/nrf52-TODO.md index 6ce2e14d..424b3c42 100644 --- a/docs/software/nrf52-TODO.md +++ b/docs/software/nrf52-TODO.md @@ -1,13 +1,13 @@ # NRF52 TODO - ## RAK815 -### Bootloader -Installing the adafruit bootloader is optional - I think the stock bootloader will work okay for most. +### Bootloader + +Install our (temporarily hacked up) adafruit bootloader ``` -kevinh@kevin-server:~/development/meshtastic/Adafruit_nRF52_Bootloader$ make BOARD=rak815 flash +kevinh@kevin-server:~/development/meshtastic/Adafruit_nRF52_Bootloader$ make BOARD=rak815 sd flash LD rak815_bootloader-0.3.2-111-g9478eb7-dirty.out text data bss dec hex filename 20888 1124 15006 37018 909a _build/build-rak815/rak815_bootloader-0.3.2-111-g9478eb7-dirty.out @@ -45,7 +45,7 @@ nrf52840 256KB RAM, 1MB flash Manual hacks needed to build (for now): -kevinh@kevin-server:~/.platformio/packages/framework-arduinoadafruitnrf52/variants$ ln -s ~/development/meshtastic/meshtastic-esp32/variants/* . +kevinh@kevin-server:~/.platformio/packages/framework-arduinoadafruitnrf52/variants\$ ln -s ~/development/meshtastic/meshtastic-esp32/variants/\* . ## Initial work items diff --git a/platformio.ini b/platformio.ini index 36b5971f..5cef2822 100644 --- a/platformio.ini +++ b/platformio.ini @@ -186,8 +186,8 @@ board = adafruit_feather_nrf52832 [env:rak815] extends = nrf52_base board = rak815 -; hack to force TINYUSB to be disabled - something is wrong in the adafruilt dependencies -; build_flags = ${nrf52_base.build_flags}-UUSE_TINYUSB +debug_tool = jlink +upload_protocol = jlink # For experimenting with RAM sizes # board_build.ldscript = linker/nrf52840_s140_sim832.ld