Unify RAK repeater storage firmware and bootloader handoff
This commit is contained in:
1 parent
7a8bddda53
commit
fca10471c3
27 files changed
+723
-29
No files matched your search
@@ -124,6 +124,31 @@ build_src_filter = ${rak3401.build_src_filter}
|
||||
+<helpers/ui/SSD1306Display.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
|
||||
; One full-sensor repeater image for internal flash or the separate-CS W25Q16.
|
||||
; RAK15001 cannot be selected: it shares the RAK13302 radio chip-select.
|
||||
[env:RAK_3401_repeater_unified_lora_ota]
|
||||
extends = rak3401
|
||||
extra_scripts = ${nrf52_lora_ota.extra_scripts}
|
||||
post:variants/rak3401/fix_bsec_lib.py
|
||||
build_flags =
|
||||
${rak3401.build_flags}
|
||||
${nrf52_wisblock_auto_ota.build_flags}
|
||||
-D OTA_QSPI_RAK3401_RADIO_BUS_HANDOFF=1
|
||||
-D DISPLAY_CLASS=SSD1306Display
|
||||
-D ADVERT_NAME='"RAK3401 1W Repeater"'
|
||||
-D ADVERT_LAT=0.0
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D ENABLE_OTA=1
|
||||
-D OTA_FOLDER_SERIAL
|
||||
-D OTA_TARGET_NAME_TABLE=0
|
||||
-D OTA_FETCH_PIPELINE=4
|
||||
build_src_filter = ${rak3401.build_src_filter}
|
||||
+<helpers/ota/*.cpp>
|
||||
+<helpers/ui/SSD1306Display.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
|
||||
[env:RAK_3401_room_server]
|
||||
extends = rak3401
|
||||
build_flags =
|
||||
|
||||
@@ -56,8 +56,13 @@ void initVariant()
|
||||
// Keep the separately selected W25Q16 deselected before the RAK13302 starts
|
||||
// using their shared SCK/MOSI/MISO nets. A physical pull-up is still
|
||||
// required so CS# remains defined during reset and core-module swaps.
|
||||
#if defined(OTA_RAK_AUTO_STORE)
|
||||
pinMode(31, OUTPUT);
|
||||
digitalWrite(31, HIGH);
|
||||
#else
|
||||
pinMode(OTA_QSPI_CS_ARDUINO_PIN, OUTPUT);
|
||||
digitalWrite(OTA_QSPI_CS_ARDUINO_PIN, HIGH);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Keep the RAK13302 FEM disabled until board startup has completed its
|
||||
|
||||
@@ -121,6 +121,34 @@ build_src_filter = ${rak4631.build_src_filter}
|
||||
+<helpers/ui/SSD1306Display.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
|
||||
; One full-sensor repeater image for internal flash, W25Q16, or RAK15001 C.
|
||||
; The matching OTAFIX bootloader for the installed hardware is still required.
|
||||
[env:RAK_4631_repeater_unified_lora_ota]
|
||||
extends = rak4631
|
||||
build_flags =
|
||||
${rak4631.build_flags}
|
||||
${nrf52_wisblock_auto_ota.build_flags}
|
||||
-D DISPLAY_CLASS=SSD1306Display
|
||||
-D ADVERT_NAME='"RAK4631 Repeater"'
|
||||
-D ADVERT_LAT=0.0
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL2_RX
|
||||
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL2_TX
|
||||
-D WITH_RS232_BRIDGE_ALT=Serial1
|
||||
-D WITH_RS232_BRIDGE_ALT_UART=1
|
||||
-D WITH_RS232_BRIDGE_ALT_RX=PIN_SERIAL1_RX
|
||||
-D WITH_RS232_BRIDGE_ALT_TX=PIN_SERIAL1_TX
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
-D WITH_RS232_BRIDGE_GPS_CONFLICT_UART=1
|
||||
build_src_filter = ${rak4631.build_src_filter}
|
||||
+<helpers/ui/SSD1306Display.cpp>
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
|
||||
; Lean OTA target for space-constrained RAK4631 repeaters. This removes optional external
|
||||
; environmental sensor packages while retaining the common INA I2C voltage/current monitors and
|
||||
; RAK12500/RAK12501 GPS support. The legacy no_external_sensors target name remains stable for OTA
|
||||
|
||||
@@ -46,7 +46,14 @@ void initVariant()
|
||||
pinMode(PIN_LED2, OUTPUT);
|
||||
ledOff(PIN_LED2);;
|
||||
|
||||
#if defined(OTA_QSPI_STORE) && defined(OTA_QSPI_CS_ARDUINO_PIN)
|
||||
#if defined(OTA_RAK_AUTO_STORE)
|
||||
// Both candidates share SCK/MOSI/MISO. Hold both chip selects high until
|
||||
// the exact JEDEC probe chooses one; W25Q16 also needs its reset pull-up.
|
||||
pinMode(26, OUTPUT);
|
||||
digitalWrite(26, HIGH);
|
||||
pinMode(31, OUTPUT);
|
||||
digitalWrite(31, HIGH);
|
||||
#elif defined(OTA_QSPI_STORE) && defined(OTA_QSPI_CS_ARDUINO_PIN)
|
||||
// Deselect a wired OTA NOR before any other device can toggle shared
|
||||
// WisBlock SPI nets. The W25Q16 installation also needs a physical CS#
|
||||
// pull-up so the signal is defined while the MCU is in reset.
|
||||
|
||||
Reference in new issue
Block a user