Hi guy's.
I am planning to try to reprogram my teensy through an IR port. My real goal is to program quickly over 500 teensy with only one IR source that will "broadcast" the .hex file instead of having to plug each of them individually to upload my code each time i found a new bug in the system..
To do so, i was planning to write my own software bootloader that could be right on my main teensy sketch.
So: in my main teensy sketch i will write a code that receive the .hex file through a serial port or an IR lib or any where else, and write this program in the user-writable zone of the flash, compute and check the a CRC, and after that jump to that code.
Normally this should work, but i dont know enough the teensy (i am quite new using the Teensy and there is some things with that "hardware bootloader" that i am unsure about) and i would like to have your advise on this. Are the linker files available to put a function on a precise address in the flash to hardcode the jump? Do my concept can work? what about the "double declaration" of all the "teensy" header when i am loading the bootloader and after jumping to the new "code" and there the serial.begin() is called again?
Thank you
I am planning to try to reprogram my teensy through an IR port. My real goal is to program quickly over 500 teensy with only one IR source that will "broadcast" the .hex file instead of having to plug each of them individually to upload my code each time i found a new bug in the system..
To do so, i was planning to write my own software bootloader that could be right on my main teensy sketch.
So: in my main teensy sketch i will write a code that receive the .hex file through a serial port or an IR lib or any where else, and write this program in the user-writable zone of the flash, compute and check the a CRC, and after that jump to that code.
Normally this should work, but i dont know enough the teensy (i am quite new using the Teensy and there is some things with that "hardware bootloader" that i am unsure about) and i would like to have your advise on this. Are the linker files available to put a function on a precise address in the flash to hardcode the jump? Do my concept can work? what about the "double declaration" of all the "teensy" header when i am loading the bootloader and after jumping to the new "code" and there the serial.begin() is called again?
Thank you