From 116fe6d109b828800199f3cc452c05ddc16bc384 Mon Sep 17 00:00:00 2001 From: geeksville Date: Mon, 28 Sep 2020 15:18:32 -0700 Subject: [PATCH] eink bootloader finished --- bin/install-bootloader.sh | 4 +++- variants/eink/variant.h | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/install-bootloader.sh b/bin/install-bootloader.sh index 3c7db5739..4d99af45b 100755 --- a/bin/install-bootloader.sh +++ b/bin/install-bootloader.sh @@ -1,5 +1,7 @@ # You probably don't want to use this script, it programs a custom bootloader build onto a nrf52 board +set -e + BOOTDIR=/home/kevinh/development/meshtastic/Adafruit_nRF52_Bootloader nrfjprog --eraseall -f nrf52 @@ -9,7 +11,7 @@ nrfjprog --eraseall -f nrf52 echo Programming bootloader and soft device # the following ling incorrectly enables reset pin, because the running code rewrites it -nrfjprog --program $BOOTDIR/_build/build-ttgo_eink/ttgo_eink_bootloader-0.3.2-122-gf6bfaac-dirty_s140_6.1.1.hex -f nrf52 +nrfjprog --program $BOOTDIR/_build/build-ttgo_eink/ttgo_eink_bootloader-0.3.2-123-g4f9022d-dirty_s140_6.1.1.hex -f nrf52 # this generates an intel hex file that can be programmed into a NRF52 to tell the adafruit bootloader that the current app image is valid # Bootloader settings are at BOOTLOADER_SETTINGS (rw) : ORIGIN = 0xFF000, LENGTH = 0x1000 diff --git a/variants/eink/variant.h b/variants/eink/variant.h index c1781c84e..c4e1a7795 100644 --- a/variants/eink/variant.h +++ b/variants/eink/variant.h @@ -51,11 +51,14 @@ feedback to give: * remove ipx connector for nfc, instead use two caps and loop traces on the back of the board as an antenna? +* the i2c RTC seems to talk fine on the i2c bus + * I've made the serial flash chip work, but if you do a new spin of the board I recommend: connect pin 3 and pin 7 of U4 to spare GPIOs on the processor (instead of their current connections), -This would allow using 4 bit wide interface mode to the serial flash. -doubling the transfer speed! see example here: +This would allow using 4 bit wide interface mode to the serial flash - doubling the transfer speed! see example here: https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/nrf52840_DK/hw_external_memory.html?cp=4_0_4_7_4 +Once again - I'm glad you added that external flash chip. + */ /*----------------------------------------------------------------------------