I have a short T3.5 OTA demo program (TeensyFlashDemoV2.ino) that uses FlashTxx.cpp/h and a TeraTerm macro to automate firmware updates over an HC-05 Bluetooth link. This program works great, and the T3.5 reboot is consistent and fast (within 1-2 seconds after hex file upload completion).
I have another T3.5 program for my robot that uses the same strategy, but the OTA firmware update doesn't behave the same. Instead of the reboot occurring 1-2 seconds after the hex file upload, it takes 5-6 seconds, and sometimes (maybe 1 in 3 or 1 in 5) doesn't reboot at all. I know the firmware update succeeded because if I cycle power to the Teensy, it comes back up running the new firmware.
Both programs use identical FlashTxx.cpp/h code, and exactly the same TeraTerm macro. The demo program hex file is 139Kb and the robot program hex file is 217Kb. I anticipate the robot program growing considerably as I add capability - probably twice the current size.
Any idea what is going on here? Is there some sensitivity to hex file size?
I have attached two ZIPped folders - one for TeensyFlashDemoV2 and one for T35_WallE3_V3 (my robot program). Both projects use VS2019 with the Visual Micro extension.
Any thoughts?
TIA,
Frank
I have another T3.5 program for my robot that uses the same strategy, but the OTA firmware update doesn't behave the same. Instead of the reboot occurring 1-2 seconds after the hex file upload, it takes 5-6 seconds, and sometimes (maybe 1 in 3 or 1 in 5) doesn't reboot at all. I know the firmware update succeeded because if I cycle power to the Teensy, it comes back up running the new firmware.
Both programs use identical FlashTxx.cpp/h code, and exactly the same TeraTerm macro. The demo program hex file is 139Kb and the robot program hex file is 217Kb. I anticipate the robot program growing considerably as I add capability - probably twice the current size.
Any idea what is going on here? Is there some sensitivity to hex file size?
I have attached two ZIPped folders - one for TeensyFlashDemoV2 and one for T35_WallE3_V3 (my robot program). Both projects use VS2019 with the Visual Micro extension.
Any thoughts?
TIA,
Frank