atanisoft / ESP32CommandStation

An ESP32 based DCC Command Station with integrated OpenLCB (LCC) --- NOTE: this project is not under active development.
https://atanisoft.github.io/ESP32CommandStation/
GNU General Public License v3.0
90 stars 34 forks source link

CAN: Uploading firmware to another LCC node crashes/reboots ESP32CS #62

Closed TrainzLuvr closed 4 years ago

TrainzLuvr commented 4 years ago

I am not sure why this happens, nor how should I debug it, because last time I tried debugging, it fried my ESP32.

atanisoft commented 4 years ago

Usually this falls into one of two categories: 1) LwIP crashing due to Load prohibited error relating to a semaphore (as seen in https://github.com/atanisoft/ESP32CommandStation/issues/25#issue-507396333 or https://github.com/atanisoft/ESP32CommandStation/issues/57#issuecomment-694866342) 2) heap allocation failure, again in LwIP and only if under high load.

This needs more investigation for sure. If you can capture the crash dump on the console it may help narrow the cause, unfortunately it may not occur everytime.