* fix(stm32/russell): define ENABLE_HWSERIAL2 and Serial2 pins The Russell board variant was missed during Initial serialModule cleanup (PR #9465), which began requiring Serial2 to be explicitly defined via ENABLE_HWSERIAL2 and PIN_SERIAL2_TX/RX rather than relying on implicit defaults, causing a build error. Signed-off-by: Andrew Yong <me@ndoo.sg> * feat(stm32/russell): add BME680 support, exclude modules to fit flash The BME680 is hardware footprint compatible with the BME280 already present on the Russell board, so add it as an additional lib dep to enable environment sensing (temperature, humidity, pressure, gas resistance). The STM32 target has very limited flash. Even traceroute alone causes overflow, so the following modules are excluded to stay within budget: - RANGETEST - DETECTIONSENSOR - EXTERNALNOTIFICATION - POWERSTRESS - NEIGHBORINFO - TRACEROUTE - WAYPOINT AIR_QUALITY_SENSOR is also excluded as it requires the BSEC2 library for real IAQ output, which alone overflows flash by ~44KB on this target. The Adafruit BME680 library is used instead for raw sensor readings. Signed-off-by: Andrew Yong <me@ndoo.sg> --------- Signed-off-by: Andrew Yong <me@ndoo.sg> Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz> Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
32 lines
1.2 KiB
INI
32 lines
1.2 KiB
INI
; Russell is a board designed to mount on an ER34615/IFR32700 cell and go Up! on a balloon
|
|
; Hardware repository: https://github.com/Meshtastic-Malaysia/russell
|
|
; - RAK3172 STM32WLE5CCU6 MCU + integrated SX1262 LoRa
|
|
; - CDtop CD-PA1010D GPS
|
|
; - Bosch Sensortec BME280 sensor
|
|
; - Consonance CN3158 LiFePO4 solar charger
|
|
[env:russell]
|
|
extends = stm32_base
|
|
board = wiscore_rak3172
|
|
board_level = extra
|
|
board_upload.maximum_size = 233472 ; reserve the last 28KB for filesystem
|
|
build_flags =
|
|
${stm32_base.build_flags}
|
|
-Ivariants/stm32/russell
|
|
-DPRIVATE_HW
|
|
-DMESHTASTIC_EXCLUDE_AIR_QUALITY_SENSOR=1
|
|
-DMESHTASTIC_EXCLUDE_RANGETEST=1
|
|
-DMESHTASTIC_EXCLUDE_DETECTIONSENSOR=1
|
|
-DMESHTASTIC_EXCLUDE_EXTERNALNOTIFICATION=1
|
|
-DMESHTASTIC_EXCLUDE_POWERSTRESS=1
|
|
-DMESHTASTIC_EXCLUDE_NEIGHBORINFO=1
|
|
-DMESHTASTIC_EXCLUDE_TRACEROUTE=1
|
|
-DMESHTASTIC_EXCLUDE_WAYPOINT=1
|
|
lib_deps =
|
|
${stm32_base.lib_deps}
|
|
# renovate: datasource=custom.pio depName=Adafruit BME280 packageName=adafruit/library/Adafruit BME280 Library
|
|
adafruit/Adafruit BME280 Library@2.3.0
|
|
# renovate: datasource=custom.pio depName=Adafruit_BME680 packageName=adafruit/library/Adafruit BME680 Library
|
|
adafruit/Adafruit BME680 Library@2.0.6
|
|
|
|
upload_port = stlink
|