From 09855b76ef06e751805a83064aeb6b72af89286e Mon Sep 17 00:00:00 2001 From: geeksville Date: Wed, 17 Jun 2020 15:45:49 -0700 Subject: [PATCH] TODO updates --- docs/software/TODO.md | 20 ++++++++------------ docs/software/esp32-arduino-build-notes.md | 16 ++++++++++++++++ docs/software/ramusage-nrf52.txt | 2 ++ 3 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 docs/software/esp32-arduino-build-notes.md diff --git a/docs/software/TODO.md b/docs/software/TODO.md index a47d73e64..0b52c70bb 100644 --- a/docs/software/TODO.md +++ b/docs/software/TODO.md @@ -1,22 +1,18 @@ -# High priority +# Geeksville's current work queue -- nrf52 free memory https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide/hathach-memory-map +You probably don't care about this section - skip to the next one. + +- fix hasGPS bug +- make new android release +- check in our modified arduino binaries +- post bug on esp32-arduino - encryption review findings writeup - NRF52 BLE -- cubecell - DSR - turn on modem-sleep mode - https://github.com/espressif/arduino-esp32/issues/1142#issuecomment-512428852 -``` - last EDF release in arduino is: https://github.com/espressif/arduino-esp32/commit/1977370e6fc069e93ffd8818798fbfda27ae7d99 - IDF release/v3.3 46b12a560 - IDF release/v3.3 367c3c09c - https://docs.espressif.com/projects/esp-idf/en/release-v3.3/get-started/linux-setup.html - kevinh@kevin-server:~/development/meshtastic/esp32-arduino-lib-builder\$ python /home/kevinh/development/meshtastic/esp32-arduino-lib-builder/esp-idf/components/esptool*py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dout --flash_freq 40m --flash_size detect 0x1000 /home/kevinh/development/meshtastic/esp32-arduino-lib-builder/build/bootloader/bootloader.bin - cp -a out/tools/sdk/* components/arduino/tools/sdk - cp -ar components/arduino/ ~/.platformio/packages/framework-arduinoespressif32@src-fba9d33740f719f712e9f8b07da6ea13/ -``` + # Medium priority diff --git a/docs/software/esp32-arduino-build-notes.md b/docs/software/esp32-arduino-build-notes.md new file mode 100644 index 000000000..45fb7a54f --- /dev/null +++ b/docs/software/esp32-arduino-build-notes.md @@ -0,0 +1,16 @@ +# esp32-arduino build instructions + +We build our own custom version of esp32-arduino, in order to get some fixes we've made but haven't yet been merged in master. + +These are a set of currently unformatted notes on how to build and install them. Most developers should not care about this, because +you'll automatically get our fixed libraries. + +``` + last EDF release in arduino is: https://github.com/espressif/arduino-esp32/commit/1977370e6fc069e93ffd8818798fbfda27ae7d99 + IDF release/v3.3 46b12a560 + IDF release/v3.3 367c3c09c + https://docs.espressif.com/projects/esp-idf/en/release-v3.3/get-started/linux-setup.html + kevinh@kevin-server:~/development/meshtastic/esp32-arduino-lib-builder\$ python /home/kevinh/development/meshtastic/esp32-arduino-lib-builder/esp-idf/components/esptool*py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dout --flash_freq 40m --flash_size detect 0x1000 /home/kevinh/development/meshtastic/esp32-arduino-lib-builder/build/bootloader/bootloader.bin + cp -a out/tools/sdk/* components/arduino/tools/sdk + cp -ar components/arduino/ ~/.platformio/packages/framework-arduinoespressif32@src-fba9d33740f719f712e9f8b07da6ea13/ +``` diff --git a/docs/software/ramusage-nrf52.txt b/docs/software/ramusage-nrf52.txt index 9969806e4..380b1bbbb 100644 --- a/docs/software/ramusage-nrf52.txt +++ b/docs/software/ramusage-nrf52.txt @@ -18,6 +18,8 @@ b) shrink packet pool size because none of that storage will be used for ToPhone c) don't allocate any storage in RAM for the tophone messages we save inside device state, instead just use nanopb callbacks to save/load those d) a smarter MeshPacket in memory representation would save about 7KB of RAM. call pb_release before freeing each freshly malloced MeshPacket +- nrf52 free memory https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide/hathach-memory-map + 2000790c 00003558 B devicestate // 16KB 2000b53c 00001000 b _cache_buffer // 4KB flash filesystem support 20003b1c 000006b0 B console