I'm not classy enough for haiku's
There was a board called Teensy
Programming it was very easy
When bugs raised their head
Lack of debug left you dead
Adding JTAG the cause you could see.
One thing to watch out for if you want the clock correct to the second, depending on the GPS used the time you get on startup may be correct or it may be wrong by up to 18 seconds. Most common from my experience is 2 seconds off. At some point in...
Your button debounce is not ideal, nothing that involves a delay in the main loop is ideal, but and you are looking to log things at 1 Hz so even 250ms of delay isn't going to cause any big issues.
The main issue I can see is if someone holds the...
I realized that. I don't think that is a good idea.
Blindly erasing and overwriting parts of the flash that may contain data is not a good idea in a generic library. If you were writing code for your own use then that approach is fine. But in a...
What if the user was using some other part of the flash as a filesystem or some other use?
I have one use case where the teensy has 3 different programs in flash, each sitting at a different start address in flash. A basic bootstrap/bootloader...
There is a known issue with FlasherX and using the EEPROM library. Even if the current code doesn't use it if it's been used on that unit in the past it could cause issues.
FlasherX starts near the end of the flash and works backwards from there...
One note that probably isn't applicable for most teensy applications, the expected life of the part is significantly lower at 600MHz.
It's only a couple of years of run time at full speed in a warm environment.
If you want something that will...
Would a MMH() (Make Management Happy) function work instead? This is far simpler to implement. In the even of an error it stops all activity other than blinking the LEDs in a pattern that implies things are busy and working.
One potential thing to look out for:
GPS doesn't use UTC time, it uses GPS time. These are currently 18 seconds different, that may change in the future if they decide to add/remove a leap second to keep UTC in line with the earths rotation.
The...
I think this is on a lot of peoples wish lists. Debugging using printf and IO pin toggling is fine for smaller projects but once you hit a certain level of complexity you need real debug access. With a part as powerful as the teensy that lack of...