I'm pretty sure it is failing on a call into the MPU6050 library but I'm not sure I want to try and track it down any further, especially, since my robot code works fine with 1.57 (and apparently 1.58 as well).
Moreover, it appears to me...
I was able to narrow down the point at which Teensyduino causes my OTA-enabled robot program to hang up. For each of the Teensyduino versions listed below, I did a complete uninstall/reinstall of Arduino 1.8.19, followed by a fresh install of...
Sorry - thought I had the access set to 'Anyone with a link can view' Here's the link again if it works - https://drive.google.com/file/d/1OnY2JCoE24Yc9X6j_mx2fFXpeSzqF8yk/view?usp=sharing
And here's just the .INO file
A new install of Arduino 1.8.19 and a new install of Teensyduino 1.58b4 hangs after an OTA transfer to 'Teensy_Hang_Demo.ino'
So the problematic change occurred somewhere between 1.58b1 (works) and 1.58b4 (hangs).
Frank
VS2022/VM has a 'build clean' function. I generally have warnings enabled, and almost never leave any warnings open. There is an exception to that in that Joe's OTA code produces some warnings that I am unable/unwilling to address.
"creating a small and simple version of your application which reproduce the problem"
Try this one - I was able to get it down to about 1/2 the size of the original. The 'hang' condition is still the same, but the 'run' condition is a simple...
The source code and all the libraries on both PC's is identical, as I copied it all from my older PC to my newer one.
I believe the 'bad' (OTA) code hangs in the same place after a power cycle.
Early on in this thread I posted hex files from...
Hey guys, as I noted in the reply above, I only see this problem when the firmware is uploaded to my robot via OTA - Everything works fine when I upload/run using a physical USB connection.
The only difference between the two methods is that...
As I mentioned in my original post on this subject, uploads via USB are fine:
"However, I have found that when I do an OTA update from my new PC to my Teensy 3.5, the program hangs on a call to the MPU6050 6DOF IMH library code. If I do an OTA...
Arduino 1.8.19 with Teensyduino 1.57 - works OK
Arduino 1.8.19 with Teensyduino 1.59 - Hangs
Arduino 1.8.19 with Teensyduino 1.60b1 - Hangs.
Arduino 1.8.19 after reverting back to Teensyduino 1.57 - works OK
On newer PC with Arduino 2.3.2 and Teensyduino 0.60.1, upload completes OK, but program hangs as before. Reverted back to 1.57 and confirmed proper operation. So, whatever is wrong with 1.59 is also wrong with 0.60.1 :(
OK, I'll do that on my newer PC (using 2.3.2). And I have your link for Teensyduino 1.60b1 for my older PC. Waiting on thoughts for reversion to 1.57 on my older PC before changing anything.
So I have Arduino 1.8.19/Teensyduino 1.57 on my older PC, and it works fine with OTA - so that combination is covered. How do I go about replacing Teensyduino 1.57 with 1.59 on that PC? I did a search for 'Teensyduino' on that PC and found only...
Thanks for doing all that work Paul - I have definitely benefitted over the last several years, as I have used T3.2's and T3.5's in many of my projects. In particular, my current 4WD robot uses two T3.5's and a T3.2; one of the T3.5's is the...
OK, in Arduino 2.3.2 'Boards Manager, changing from 1.59.0 to 1.57.3 did the trick. I was able to successfully upload my program to Teensy 3.5 via Joe's wonderful OTA code, and it no longer hangs up.
The downgrade process in Boards Manager was...
Joe,
It's 'Teensy (for Arduino 2.0.4 or later), version 1.59.0. The downgrade options are 1.58.2, 1.57.3, 1.56.2. Is it the '1.57.3' that I want?
TIA,
Frank
PS: Love your OTA code - been using it successfully for almost three years now!
For the last three years I have been using joe pasquariello's code successfully for over-the-air firmware updated to my Teensy 3.5-based robot project (see this post and this post for details). The host PC (a Dell XPS15-7590 laptop running...