Core 1 Panic .. Board keeps resetting

resolved

#21

It should be gpio13 indeed


#22

Ok… so anytime I have RF enabled I get the panics. I have the module that was working fine on an ESP8266 wired with 3.3V, GND and GPIO13. The chip panics with the module connect or not connected. I’ve set it up for just BT and it is working without issue.


#23

Could you try with other pins, change them into config_rf.h


#24

Yes. Would it be possible for you to disconnect your module and see if it causes your chip to panic? Thanks for the help


#25

I’ve tried a few different pins and nothing changes… Always panics.


#26

Did you tried another board ?


#27

It’s the only esp32 I have. I tried a couple of other example sketches for the esp32 and they run without problem. In fact, OMG works perfectly fine when using BT only.


#28

I tried with an ESP32 alone, with ZgatewayBT and ZgatewayRF uncommented and it works fine:

1:40:46.752 -> WiFi ok with manual config credentials
21:40:46.752 -> OpenMQTTGateway mac: 
21:40:46.752 -> 30:AE:A4:8B:E7:F8
21:40:46.752 -> OpenMQTTGateway ip: 
21:40:46.752 -> 192.168.1.8
21:40:46.752 -> 1883
21:40:46.752 -> Connecting to MQTT by IP adress
21:40:46.752 -> 192.168.1.17
RF_EMITTER_PIN 
21:40:48.249 -> 12
21:40:48.249 -> RF_RECEIVER_PIN 
21:40:48.249 -> 13
21:40:48.249 -> ZgatewayRF setup done 
21:40:48.249 -> ZgatewayBT multicore ESP32 setup done 
21:40:48.249 -> MQTT_MAX_PACKET_SIZE
21:40:48.249 -> 1024
21:40:48.249 -> BT Task running on core 0
21:40:48.249 -> Setup OpenMQTTGateway end
21:40:48.249 -> MQTT connection...
21:40:48.249 -> Connected to broker
21:40:48.249 -> Subscription OK to the subjects
Get ManufacturerData 
21:41:44.297 -> 
Get RSSI 
21:41:44.364 -> home/OpenMQTTGateway/BTtoMQTT/088BC11AB545 -37
Get ManufacturerData 
21:41:46.404 -> ⸮
21:41:46.404 -> Get RSSI 
21:41:46.404 -> home/OpenMQTTGateway/BTtoMQTT/4C0F2EFEB21B -62
21:41:46.404 -> Get service data 
21:41:46.404 -> service_data
21:41:46.404 -> 0000000000000000000000000000000000000000
21:41:46.404 -> Get service data UUID
21:41:46.404 -> 0000fe9f-0000-1000-8000-00805f9b34fb
Get Name 
21:41:46.806 -> Flower care

The board is an ESP32 DEVKIT


#29

This is the board I bought https://www.amazon.com/gp/product/B0718T232Z?pf_rd_p=c2463b52-1139-4aba-9ac9-26d103f6c586&pf_rd_r=7J2RNMYHBCQ6PK5GEHCP


#30

Could you try with the last version from master, there was some corrections implemented by @animavitis


#31

The new code does allow me to run both BT and RF at the same time without the kernel panics. I had to change RF receive to GPIO22 to get RF to work. It appears to be working fine now. Thanks for the help


#32

Thanks @animavitis for finding the buggy part!