potatotron
Well-known member
I've got a Teensy 3.0 project that will require periodic fields firmware upgrades, by extremely nontechnical users.
The simplest method I've thought of so far is saving the new code's .hex file to SD cards, and adding a SD card reader + secondary MCU (an ATTiny?) to the Teensy circuit. The 2nd CPU would read the file off the card and program it into the main MK20's flash via the EZ Port SPI interface.
As far as I can tell, most of the EZ Port pins overlap the JTAG pins so I'd have to make a custom board using a PJRC Mini54 (for initial programming and debugging etc.) and a blank MK20:
EZ Port Clock - pin 22 / PTA0 - JTAG clock - Mini P0.5 & P0.6
EZ Port Data In - pin 23 / PTA1 - JTAG Data In - Mini P0.0
EZ Port Data Out - pin 24 / PTA2 - JTAG Data Out - Mini P0.1
EZ Port CS - pin 26 / PTA4 - Teensy port D33
Reset - pin 34
Do I need to do anything else for EZ Port programming, or will there be any conflicts using the pins for both EZ Port & JTAG (not at the same time), or can anyone think of an easier way to do this?
Thanks in advance for any help.
The simplest method I've thought of so far is saving the new code's .hex file to SD cards, and adding a SD card reader + secondary MCU (an ATTiny?) to the Teensy circuit. The 2nd CPU would read the file off the card and program it into the main MK20's flash via the EZ Port SPI interface.
As far as I can tell, most of the EZ Port pins overlap the JTAG pins so I'd have to make a custom board using a PJRC Mini54 (for initial programming and debugging etc.) and a blank MK20:
EZ Port Clock - pin 22 / PTA0 - JTAG clock - Mini P0.5 & P0.6
EZ Port Data In - pin 23 / PTA1 - JTAG Data In - Mini P0.0
EZ Port Data Out - pin 24 / PTA2 - JTAG Data Out - Mini P0.1
EZ Port CS - pin 26 / PTA4 - Teensy port D33
Reset - pin 34
Do I need to do anything else for EZ Port programming, or will there be any conflicts using the pins for both EZ Port & JTAG (not at the same time), or can anyone think of an easier way to do this?
Thanks in advance for any help.