Teensy 4.1 Stops when I reboot my Raspberry PI

Mike0675

Member
Hi, my Teensy 4.1 is connected to my Raspberry PI4 via USB. When I reboot the Raspberry I have to reboot the Teensy also, becouse it does nothing more then.

What can I do?
 
Don't reboot your Raspberry PI ;)

Sorry, could not resist :D

But, it is very hard to give any suggestions, without more information.

Like what is the Teensy running? How interactions does it have with stuff running on the RPI?

What I don't remember is, if when you reboot the Teensy, if it completely powers off the USB ports and back on or not. Or if it depends on if USB2 port versus USB3 port.
That is, does the Teensy reset as well?

If so, then maybe timing issue, that is maybe the teensy is expecting data earlier than the RPI can give it or likewise the Teensy is sending it before the RPI can receive it.

When I was running a Teensy off of an RPI, I had the startup code on the Teensy wait for some form of signal from the host, and then acknowledge it somehow.

Could be waiting for USB Serial data to be sent. Could be I connected one or more IO pins between the two. Where the RPI would signal me on one pin, and I could answer, either
on same pin or different pin.

or ???

But without additional information hard to give any specific suggestions.
 
Hi, Im just use the RASPI to programm the Teensy with teensy_loader_cli.

Programming is done on my Windows10-PC.

I dont send Data from or to the RASPI/TEENSY.

I dont know what LINUX send to TEENSY when starting. Maybe this is problematic.
 
Sometimes things like this turn out to be there is debug code in the sketch like:
Code:
while(!Serial) ;

Which is waiting for a debug terminal to be setup, and sleeps forever...

Often times in programs that are acting strange at startup, I will add in something like a couple of blinks of the LED (pin 13) so I can see if I got there...
 
Back
Top