It's difficult to say without seeing the code.
When you post it do it between code tags using the </> button, it preserves indenting etc helping to read and understand the code.
Supposedly there are some nightly arduino IDE builds with a "copy output" button in the serial monitor as a workaround for their broken behaviour. I haven't tested them (because I still think the Serial Monitor is pretty rubbish; why isn't it a...
When you post code can you do it between code tags using the </> button.
It preserves formatting and makes the code much more readable. I have included your code below..
I think you will agree there is a world of difference between the two.
By...
You could try cleaning out your temp folder.
I periodically have to do this.
I use the following batch file which I place on my desktop, then I can just click it.
I put the pause at the end so that I have the opportunity to examine what was...
Show your code, so that we can see what is happening. Use the </> button to post your code, this maintains formatting which will make your code easier to read and understand.
Can you post your code so we can see what is happening.
When you do post the code, use the </> button on the left. Doing it that way preserves indenting etc.
You say the Teensy functions just fine but then you say that it will not turn on or be detected by the computer until I short the USB connector ground to the USB power.
Those would seem to me to be two contradictory statements.
Can you reset it...
The fuse is a self resetting thermal fuse. Given that there was a spark you may have taken out the fuse and/or other devices.
You should not need to connect either side of the fuse to cause the board to turn on.
I suggest you connect the T4.1...
SD.h IS included in the SD Library, at least in TD 1.60b5.
Are you ALL sure that you are NOT mixing up releases ( 1.59/1.60b5 ) of the SD and SdFat drivers with different releases of Teensyduino?
I don't know whether there is a conflict but...
If you are using Teensyduino 1.59, I suggest you use the SdFat (and SD) library from that release. Certain files are different in SdFat and SD (from 1.60b5 release).
NOT without 1 change, see my post #12, now incorporated into Teensyduino.
NOTE:
Although the files shipped with Teensyduino incorporate the required change, it is not incorporated into the file in...
Note that the version included with Teensyduino has an altered hal.c which allows it to compile and work with T4.x. The version on Duff's Github page DOES NOT incorporate this modification.
See my post #12.
Ok, I understand you not wanting to add additional hardware, but if you have 3 spare pins you could wire each CAN Rx pin to another i/p pin and try using that (those) for wakeup purposes. Using the individual pins would tell you which CAN channel...
When you post code can you do it between CODE tags using the </> button. This maintains formatting and makes you code more readable and easier to understand. Here below is you code between code tags. Bye the way IT DOES NOT COMPILE.
#include...
When posting CODE to the forum can you post it between CODE tags using the </> button. This preserves the code layout and makes it much easier for someone to examine and understand your code, and therefore much more able to help you.
Just a suggestion. Can you wire OR your CAN Rx lines (using diodes to isolate each other) and connect the resultant wire to a vacant pin. Then use that pin to wakeup from sleep. As I said above it will take the T4.x over 5 ms to wake up so it's...
I do now recall that there was a problem with T4.x. See the comment and solution here.
I think this is now included in Teensyduino, but it is worth a check just in case it has slipped through.
It is some time since I did any work with the Snooze library. I do recall that the Teensy 4.x hibernate return from sleep results in a Teensy reboot.
Teensy 4.x deepsleep, however, operates as expected.
I ran some tests to determine wakeup times...
Actually we were playing with these ch32 riscv chips and I had the talkie library running on it. Didn't come across this though when I was playing with it. Have to look more
From a quick cursory look the problem seems to be with static elapsedMillis lastRunTime = 0;. Each time you enter the function it is set to zero which will cause you to exit the fn in the next line of code.
To overcome the problem put the...
Might be old world but I use "and" and "or". I do use ! instead of "not", but ! does not confuse me, or lead to easy errors which are damnably difficult to find.
As per the post above, that was fixing the SDRAM to not fail on reads when running at 221mhz
So the problem i had was a bunch of extra pins not accessible through the standard digital write, as they where not defined. Also trying to map...
You could try using a Teensy 3.2 instead. It's 5V tolerant. Although these are not normally current product, Paul has a limited number of newly manufactured 3.2s for sale at the moment. Be quick they won't stay available for long!