Hi,
I have a problem where a Teensy 3.6 occasionally jumps into bootloader mode while running code. I'm using one to control a onewhee-like balancing scooter, which is good motivation for me to love the issue. After it happens, the Teensy stops running the code and shows up as (Bootloader) in the port list.
The Teensy is located pretty close to a BLDC motor controller, so my first thought was interference doing something to the program pin, but this happens even with the motor controller off. Before running into the problem, I already had glued the actual program button to prevent it from doing anything if shaked, and this happens also while just sitting there on the desk. According to the schematic, the Teensy 3.6 does not have pullups or capacitors for the program and reset pins, would adding these be a reasonable solution or just an attempt at masking the problem?
The Teensy is powered off a 5V source from the motor controller capable of 1.5 A, and has a 600uF electrolytic capacitor and a few ceramic ones across that right next to it. The 5V source does not brown out atleast according to logs from the motor controller. As this is a very transient issue, I don't yet have much data about it. Reading the reset status registers in my code isn't too useful, as after a power toggle to get it out of bootloader mode, it'll show that and not whatever happened before.
I'm not doing anything with the USB except some Serial prints on startup. Any ideas what could cause it to jump to the bootloader?
I have a problem where a Teensy 3.6 occasionally jumps into bootloader mode while running code. I'm using one to control a onewhee-like balancing scooter, which is good motivation for me to love the issue. After it happens, the Teensy stops running the code and shows up as (Bootloader) in the port list.
The Teensy is located pretty close to a BLDC motor controller, so my first thought was interference doing something to the program pin, but this happens even with the motor controller off. Before running into the problem, I already had glued the actual program button to prevent it from doing anything if shaked, and this happens also while just sitting there on the desk. According to the schematic, the Teensy 3.6 does not have pullups or capacitors for the program and reset pins, would adding these be a reasonable solution or just an attempt at masking the problem?
The Teensy is powered off a 5V source from the motor controller capable of 1.5 A, and has a 600uF electrolytic capacitor and a few ceramic ones across that right next to it. The 5V source does not brown out atleast according to logs from the motor controller. As this is a very transient issue, I don't yet have much data about it. Reading the reset status registers in my code isn't too useful, as after a power toggle to get it out of bootloader mode, it'll show that and not whatever happened before.
I'm not doing anything with the USB except some Serial prints on startup. Any ideas what could cause it to jump to the bootloader?