Wt32-eth01 with RFM69

Hi,

I am trying to install OMG on wt32-eth01 with RFM69. I can successfully install OMG without RFM69 support, but as soon as I add RFM69 gateway, boards boots and then immediately crashes. If I remove ‘-DZgatewayRFM69=“RFM69”’ from the ini file, OMG installs and works without any issues. The same behaviour occurs no matter if I connect the radio or not.

This is my _env.ini file:

[env:wt32-eth01]
platform = ${com.esp32_platform}
board = wt32-eth01
board_build.mcu = esp32
board_build.f_cpu = 240000000L
framework = arduino
monitor_speed = 115200
upload_protocol = esptool
board_build.partitions = min_spiffs.csv
lib_deps =
${com-esp.lib_deps}
${libraries.rfm69}
${libraries.rfm69spi}
${libraries.wifimanager32}
${libraries.Ethernet}
${libraries.pubsubclient}
${libraries.arduinojson}
${libraries.arduinolog}
build_flags =
${com-esp.build_flags}
‘-DLOG_LEVEL=LOG_LEVEL_TRACE’
‘-DOMG_VERSION=“v1.7.0”’
‘-DGateway_Name=“rfm69gw1”’
‘-DBase_Topic=“rfm69gw1/”’
‘-DZmqttDiscovery=“HADiscovery”’
‘-DESP32_ETHERNET=true’
‘-DETH_PHY_TYPE=ETH_PHY_LAN8720’
‘-DETH_PHY_ADDR=1’
‘-DETH_PHY_POWER=16’
‘-DETH_CLK_MODE=ETH_CLOCK_GPIO0_IN’
‘-DZgatewayRFM69=“RFM69”’
‘-DNETWORKID=101’
‘-DNODEID=1’
‘-DFREQUENCY=“RF69_868MHZ”’
‘-DIS_RFM69HCW=true’
‘-DRFM69_CS=5’
‘-DRFM69_IRQ=2’
‘-DRFM69_RST=4’

This is serial output when the board boots and crashes:

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13924
ho 0 tail 12 room 4
load:0x40080400,len:3600
entry 0x400805f0
N:
************* WELCOME TO OpenMQTTGateway **************
[ 130][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND
N: SYS config not found
N: OpenMQTTGateway Version: v1.7.0
T: mounting FS…
T: mounted file system
T: reading config file
T: opened config file
{
“mqtt_server”: “192.168.100.100”,
“mqtt_port”: “1883”,
“mqtt_user”: “user”,
“mqtt_pass”: “*",
“mqtt_topic”: “rfm69gw1/”,
“gateway_name”: “rfm69gw1”,
“mqtt_broker_secure”: false,
“mqtt_broker_cert”: “”,
“mqtt_ss_index”: 0,
“ota_server_cert”: “”,
“ota_pass”: "

}
T: parsed json, size: 388
N: Config loaded from flash
T: Spl eth cfg
T: Ethernet Started
N: Ethernet Connected
T: Connecting to Ethernet
T: .
T: OpenMQTTGateway MAC: A0:A3:B3:21:AC:47
T: OpenMQTTGateway IP: 192.168.100.110
T: OpenMQTTGateway link speed: 100 Mbps
T: .
T: OpenMQTTGateway mac: A0:A3:B3:21:AC:44
T: OpenMQTTGateway ip: 0.0.0.0
T: Port: 1883
T: Mqtt server: 192.168.100.100
��W�U�WU�WU�W�UW�UWUW�U�W�U�WUW�U�W�U�WUUWU�WUWUWUWU�U�WUWU�WUWU�WU��m

When the board boots, I can ping it for one or two times and then it crashes. After it crashes I can’t even ping the board. If I disable RFM69, board works without any issues and I can ping it constantly. Also, when it boots without RFM69 it connects to MQTT and sends MQTT messages without any issues.

And ideas on how can I make this work?

Thanks

Anyone has any idea how to troubleshoot this? To make sure my board and connections are good, I tried to upload the pre-made image (OpenMQTTGateway v1.7.0) and it works without any issues.

I also tried to install the gateway code from this repo: GitHub - strange-v/RadioSensors: A solar-powered node that stores energy in a supercapacitor, wakes-up regularly, measures different parameters and sends them to a gateway. since it uses similar setup and it also works, including the radio (at least radio init outputs OK message, haven’t tried with another radio node).

If anyone has any idea for troubleshooting, happy to try and make this work. I assume other people would find WT32-ETH01 with RFM69 a useful setup.

Thanks