Struggling with a transient issue. My app simply scans for BLE devices then sends various related data to an MQTT server over TCP. I’m Sending ~150 bytes per transaction and 5 transactions per second so a total of ~750B/s so not a lot of data.
At random times the loop() will just stop and requires a reset to regain function. Other callbacks operate normally while the loop() is non-functional.
~45 seconds after the loop() stops the board will reset by itself. I suspect there is a watchdog getting triggered somewhere because it’s consistent. The reset reason is “PANIC” and just before reset I get a hard fault SOS.
My theory is this is related to power. With my scope on the 3.3v pin the failure of the loop() always coincides with a dip in power. Dips of the magnitude shown in the attached do happen at other times without this result, however the stopping of the loop() always coincides with the power dip.
Another reason I believe this could be power related is that across 20 Duo boards some exhibit the issue frequently while others very rarely.
Does the above jive with any known issues in the community?