I am using a Teensy 4.0 in combat robotics. In the past, our Bot would get thrown against the ceiling and then smash into the floor, and that force was enough to cause the rubber "programming mode" button to depress due to its own inertia...
I really struggled to find and get addr2line to work. Here is how I did that.
In the IDE set File/Preferences compile and upload tick boxes
Add an example line of code to your sketch from...
@cdalio: referring to the button on the T4 as a "BOOT" button is incorrect. The button on a Teensy is a "PROGRAM" button, & is used to initiate reprogramming of the T4. The only hardware action that will cause an initial boot on the Teensy is...