Adds repeater, room_server, companion_radio_usb and kiss_modem environments for the NUCLEO-WL55JC1 (STM32WL55JC, integrated SubGHz radio). Notes on the board setup: - Uses the upstream nucleo_wl55jc board. PlatformIO's boards_remap maps it to the core's NUCLEO_WL55JC1 variant, so the LEDs, user buttons and the LPUART1 -> ST-LINK VCP serial mapping all come from the core rather than being redefined here. - The RF switch table is built from the core's LORAWAN_RFSWITCH_* macros (SP3T front end on PC3/PC4/PC5) so it tracks upstream if those are ever revised. Both RFO_LP and RFO_HP are registered, so RadioLib selects HP above 14 dBm and LP below it. - board_build.extra_flags pins the device to STM32WL55xx. The stock board manifest declares product_line STM32WL55xx but extra_flags -DSTM32WLE5xx; that only works because every #elif chain happens to test WL55xx first. - The Nucleo's LD1..LD3 are driven active HIGH, so the TX LED hooks are inverted relative to STM32Board's active-LOW default. - 32 KB reserved at the top of flash for LittleFS, as on the other STM32WL variants. Verified on hardware: all four environments build; repeater and room_server flash and run over ST-LINK; identity and prefs persist across reboot and across a firmware swap; and GPIOC reads back the documented RX levels at idle, confirming the front-end switch is driven correctly. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
58 lines
1.9 KiB
INI
58 lines
1.9 KiB
INI
[nucleo_wl55jc]
|
|
extends = stm32_base
|
|
board = nucleo_wl55jc
|
|
; The upstream board manifest tags the part as STM32WLE5xx even though its
|
|
; product_line is STM32WL55xx. Pin both to WL55 so a single device header and
|
|
; startup file (startup_stm32wl55xx_cm4.s) are in play.
|
|
board_build.extra_flags = -DSTM32WL -DSTM32WLxx -DSTM32WL55xx
|
|
board_upload.maximum_size = 229376 ; 32kb at the top of flash reserved for LittleFS
|
|
build_flags = ${stm32_base.build_flags}
|
|
-D RADIO_CLASS=CustomSTM32WLx
|
|
-D WRAPPER_CLASS=CustomSTM32WLxWrapper
|
|
-D LORA_TX_POWER=22
|
|
-D SPI_INTERFACES_COUNT=0
|
|
-D RX_BOOSTED_GAIN=true
|
|
-D STM32WL_TCXO_VOLTAGE=1.7
|
|
-D P_LORA_TX_LED=LED_BLUE
|
|
-D PIN_USER_BTN=USER_BTN
|
|
-D USER_BTN_PRESSED=LOW
|
|
-I variants/nucleo_wl55jc
|
|
build_src_filter = ${stm32_base.build_src_filter}
|
|
+<../variants/nucleo_wl55jc>
|
|
|
|
[env:nucleo_wl55jc_repeater]
|
|
extends = nucleo_wl55jc
|
|
build_flags = ${nucleo_wl55jc.build_flags}
|
|
-D ADVERT_NAME='"Nucleo WL55JC Repeater"'
|
|
-D ADMIN_PASSWORD='"password"'
|
|
-D MAX_NEIGHBOURS=50
|
|
build_src_filter = ${nucleo_wl55jc.build_src_filter}
|
|
+<../examples/simple_repeater/*.cpp>
|
|
|
|
[env:nucleo_wl55jc_companion_radio_usb]
|
|
extends = nucleo_wl55jc
|
|
build_flags = ${nucleo_wl55jc.build_flags}
|
|
-D MAX_CONTACTS=100
|
|
-D MAX_GROUP_CHANNELS=8
|
|
-D ENABLE_USB_INTERFACE ; binds to Serial, i.e. the ST-LINK virtual COM port
|
|
build_src_filter = ${nucleo_wl55jc.build_src_filter}
|
|
+<../examples/companion_radio/*.cpp>
|
|
lib_deps = ${nucleo_wl55jc.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:nucleo_wl55jc_kiss_modem]
|
|
extends = nucleo_wl55jc
|
|
build_src_filter = ${nucleo_wl55jc.build_src_filter}
|
|
+<../examples/kiss_modem/>
|
|
|
|
[env:nucleo_wl55jc_room_server]
|
|
extends = nucleo_wl55jc
|
|
build_flags = ${nucleo_wl55jc.build_flags}
|
|
-D ADVERT_NAME='"Nucleo WL55JC Room"'
|
|
-D ADVERT_LAT=0.0
|
|
-D ADVERT_LON=0.0
|
|
-D ADMIN_PASSWORD='"password"'
|
|
-D ROOM_PASSWORD='"hello"'
|
|
build_src_filter = ${nucleo_wl55jc.build_src_filter}
|
|
+<../examples/simple_room_server>
|