I have a Waveshare SX1262 XXXM LoRaWAN/GNSS HAT installed on a Raspberry Pi 4 and fresh install of Raspberry Pi OS Lite (Debian Bookworm). The LoRa hat is stacked on a Waveshare PoE Hat (C). I have meshtasticd_2.3.8.d490a33_arm64.deb installed, but I can’t set the region code to US without the process immediately crashing and I’m unsure how to check for a GPIO conflict or troubleshoot further.
Relevant sections of configs / logs:
meshtasticd logs
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Client is setting the config
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Setting config: LoRa
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Wanted region 1, using US
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Saving changes to disk
May 08 07:34:04 rpi-mesh meshtasticd[769]: DEBUG | 11:34:03 194 [Router] Expanding short PSK #1
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Wanted region 1, using US
May 08 07:34:04 rpi-mesh meshtasticd[769]: DEBUG | 11:34:03 194 [Router] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=0, time 231 ms
May 08 07:34:04 rpi-mesh meshtasticd[769]: DEBUG | 11:34:03 194 [Router] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=253, time 2115 ms
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Radio freq=906.875, config.lora.frequency_offset=0.000
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Set radio: region=US, name=LongFast, config=0, ch=19, power=30
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Radio myRegion->freqStart → myRegion->freqEnd: 902.000000 → 928.000000 (26.000000 mhz)
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Radio myRegion->numChannels: 104 x 250.000kHz
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Radio channel_num: 20
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Radio frequency: 906.875000
May 08 07:34:04 rpi-mesh meshtasticd[769]: INFO | 11:34:03 194 [Router] Slot time: 42 msec
May 08 07:34:04 rpi-mesh meshtasticd[769]: ERROR | 11:34:03 194 [Router] NOTE! Recording critical error 7 at src/mesh/SX126xInterface.cpp:200
May 08 07:34:04 rpi-mesh meshtasticd[769]: ERROR | 11:34:03 194 [Router] A critical failure occurred, portduino is exiting…
May 08 07:34:04 rpi-mesh systemd[1]: meshtasticd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 08 07:34:04 rpi-mesh systemd[1]: meshtasticd.service: Failed with result ‘exit-code’.
/boot/firmware/config.txt
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
dtoverlay=spi0-0cs
enable_uart=1
/etc/meshtasticd/config.yaml
Lora:
Module: sx1262 # Waveshare SX126X XXXM
DIO2_AS_RF_SWITCH: true
CS: 21
IRQ: 16
Busy: 20
Reset: 18
gpiochip: 0
spidev: spidev0.0
Logging:
LogLevel: debug # debug, info, warn, error
Webserver:
Port: 443 # Port for Webserver & Webservices
RootPath: /usr/share/doc/meshtasticd/web # Root Dir of WebServer
General:
MaxNodes: 200