diff --git a/docs/software/nrf52-TODO.md b/docs/software/nrf52-TODO.md index 515378d9d..02367d612 100644 --- a/docs/software/nrf52-TODO.md +++ b/docs/software/nrf52-TODO.md @@ -7,7 +7,7 @@ Minimum items needed to make sure hardware is good. - write UC1701 wrapper -- DONE install a hardfault handler for null ptrs (if one isn't already installed) +- Test hardfault handler for null ptrs (if one isn't already installed) - test my hackedup bootloader on the real hardware - Use the PMU driver on real hardware - Use new radio driver on real hardware @@ -42,7 +42,6 @@ Needed to be fully functional at least at the same level of the ESP32 boards. At - check datasheet about sx1262 temperature compensation - enable brownout detection and watchdog - stop polling for GPS characters, instead stay blocked on read in a thread -- turn back on in-radio destaddr checking for RF95 - figure out what the correct current limit should be for the sx1262, currently we just use the default 100 - put sx1262 in sleepmode when processor gets shutdown (or rebooted), ideally even for critical faults (to keep power draw low). repurpose deepsleep state for this. - good power management tips: https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs @@ -83,6 +82,7 @@ Nice ideas worth considering someday... 'fromradio'. This would allow removing the 'fromnum' mailbox/notify scheme of the current approach and decrease the number of packet handoffs when a packet is received. - Using the preceeding, make a generalized 'nrf52/esp32 ble to internet' bridge service. To let nrf52 apps do MQTT/UDP/HTTP POST/HTTP GET operations to web services. - lower advertise interval to save power, lower ble transmit power to save power +- the SX126x class does SPI transfers on a byte by byte basis, which is very ineffecient. Much better to do block writes/reads. ## Old unorganized notes diff --git a/platformio.ini b/platformio.ini index cff9006df..042d4ed2e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -9,7 +9,7 @@ ; https://docs.platformio.org/page/projectconf.html [platformio] -default_envs = nrf52dk ; Note: the github actions CI test build can't yet build NRF52 targets +default_envs = tbeam ; Note: the github actions CI test build can't yet build NRF52 targets [common] ; common is not currently used @@ -151,6 +151,8 @@ debug_init_break = [env:nrf52dk] extends = nrf52_base board = nrf52840_dk_modified +lib_deps = + UC1701 ; for temp testing ; The PPR board [env:ppr] diff --git a/src/UC1701Adapter.cpp b/src/UC1701Adapter.cpp new file mode 100644 index 000000000..72d4992a7 --- /dev/null +++ b/src/UC1701Adapter.cpp @@ -0,0 +1,2 @@ +#include +