Hi All,
I am building a project around a Teensy LC. It reads lots of analog inputs (pots) then outputs a PPM stream. I am using VS Code with PlatformIO plugin, running under Linux Mint 19.3.
In my testing I have put lots of Serial.print statements in the code to see what the analog values being read are and what's being generated in the output stream, which are in the infinite loop part of the program. However I have found that quite often, but not all the time, the program will start when I load it, and then output 5 to 10 lines of output, sometimes more, sometimes less, and then just stop. I have tried hitting the reset button on the Teensy (which closes the monitor screen) which restarts the Teensy but it usually does the same thing. Sometimes it runs as expected, and continuously outputs to the monitor (so I can move the pots and see the numbers changing), sometimes it does it several times in a row, sometimes it just works without having to hit the reset button, but sometimes it just flatly refuses to display more than a few lines of output no matter how many times I reset it. So I go and have a cup of tea and come back and try again, and sometimes it works.
Sometimes, after I've hit reset several times (and restarted the monitor), I see a message asking me to enter the device address, as if /dev/ttyACM0 can't be found. If I check with "ls /dev/ttyACM*" sure enough it's not there. I have to physically unplug the Teensy and plug it in again, and it magically reappears.
It does exactly the same thing with the Arduino IDE too, although it seems to be a bit less cantankerous. I usually only have to reset it once to get it going.
Have I just got a dud Teensy, with some weird intermittent fault? Is there anything else I can try to get it to work properly?
All advice gratefully received.
:-\
I am building a project around a Teensy LC. It reads lots of analog inputs (pots) then outputs a PPM stream. I am using VS Code with PlatformIO plugin, running under Linux Mint 19.3.
In my testing I have put lots of Serial.print statements in the code to see what the analog values being read are and what's being generated in the output stream, which are in the infinite loop part of the program. However I have found that quite often, but not all the time, the program will start when I load it, and then output 5 to 10 lines of output, sometimes more, sometimes less, and then just stop. I have tried hitting the reset button on the Teensy (which closes the monitor screen) which restarts the Teensy but it usually does the same thing. Sometimes it runs as expected, and continuously outputs to the monitor (so I can move the pots and see the numbers changing), sometimes it does it several times in a row, sometimes it just works without having to hit the reset button, but sometimes it just flatly refuses to display more than a few lines of output no matter how many times I reset it. So I go and have a cup of tea and come back and try again, and sometimes it works.
Sometimes, after I've hit reset several times (and restarted the monitor), I see a message asking me to enter the device address, as if /dev/ttyACM0 can't be found. If I check with "ls /dev/ttyACM*" sure enough it's not there. I have to physically unplug the Teensy and plug it in again, and it magically reappears.
It does exactly the same thing with the Arduino IDE too, although it seems to be a bit less cantankerous. I usually only have to reset it once to get it going.
Have I just got a dud Teensy, with some weird intermittent fault? Is there anything else I can try to get it to work properly?
All advice gratefully received.
:-\