While there are multiple posts with the (panic, hard_fault) error, none of them relates to the issue I am having.
I am running the same program on mulitple Xenons. Each Xenon is connected to a laser sensor. Some sensors are i2c and others are UART.
In the case of i2c sensors, program runs without problems.
But in the case of UART sensors, I am getting “panic, hard_fault” on average once an hour! The program keeps reading distances from the sensor then suddenly reboots.
I have (over more than a year now!) been trying different firmwares and different baud rates but the problem persists. I am running OS firmware 1.5.1 (but same problem happened with 1.5.0). I have reduced the baud rate to 57,600 (from 115200) but this did not help.
Is there anyway I can find out what causes this error?
Thanks in advance for the community’s help.