Update Teensy 4.1 firmware from microsd

jimmie

Well-known member
I have a Teensy 4.1 at a remote site. I wish to update its firmware but due to its location, it is not practical to update its firmware using a PC.

Is there a way to upload an updated HEX file to that Teensy either by connecting it to another Teensy or from a microSD card inserted in the target T4.1?

I did read the following threads but they do not offer a clear solution or a complete sketch:

http://forum.pjrc.com/threads/69926-T4-1-flashing-another-T4-1

http://forum.pjrc.com/threads/48430-Program-Teensy-from-another-Teensy


Thanks in advance for the community's help.
 
A few have people have done what you want via "FlasherX" discussed in the thread below.

https://forum.pjrc.com/threads/4316...dates-changes-for-flashing-Teensy-3-5-amp-3-6

The latest release of FlasherX here https://github.com/joepasquariello/FlasherX/releases/tag/v2.1

The FlasherX test app receives the hex file via USB or UART serial, but if you read the forum thread, you'll see that one or two have modified the code to read from SD instead of serial. If you look at the code, you'll see that there is a function that reads hex lines from serial input, and you should be able to modify that to read lines from a file on SD. I don't think anyone has posted code to a working project that reads from SD. I will put that on my to-do list, but it could be a while.
 
Thank you very much for helping and for your time in creating this utility.

I am lost though as to how it can be used. Here is what I have:

1) A Teensy 4.1 (T1) running some old firmware which I wish to upgrade.

2) The new firmware as a .HEX file on the computer or on a SD.

3) A second Teensy 4.1 (T2) running Flasher X (with changing this statement to #define RAM_BUFFER_SIZE (256 * 1024) )

-----------------------------------------------

How does one proceed from here? How are T2 and T1 connected and where does the hex file with the new firmware reside?

Thanks in advance.
 
I recommend installing direct from SD rather than via a second T4.1. You need to take what you need from FlasherX and integrate it into your own application. It’s or a plug and play solution.
 
Thank you for your prompt answer but the problem is that I already have a few units in the field. If I have to upgrade their firmware to include the Flasher code, I might as well use a PC ...

This is why I was thinking of using an additional Teensy ....
 
Back
Top