PaulStoffregen / teensy_loader_cli

Command line Teensy Loader
http://www.pjrc.com/teensy/loader_cli.html
331 stars 152 forks source link

T4 #48

Closed KurtE closed 4 years ago

KurtE commented 4 years ago

Paul - You might want to take a look and see if this all makes sense.

First I added the T40 definitions as board types.

Ran into issues that the T40 has an extended address range that is bigger than max size that this program was configured to handle.

@Jonathan changed the code to not use the extended address to index into the array, but add it on at the end when you are programming, which appeared to work.

But I was concerned that there could be multiple extended address records, in which case they would collide and be wrong. This code remembers the smallest one defined and everything is based off the smallest address. If a larger offset was used first, it moves the data down by the offset of the difference between the earlier lowest address and the new address.

Tested simple blink program on T4 (two short blinks then longer delay) and it appears to work. Also tested I could still update a T3.6.

Defragster commented 4 years ago

Other item noted but I didn't add an issue assuming it was on Paul's list - add the PC Upload TIME tranfer code for T4 using this CMD line code.

lovettchris commented 4 years ago

Looks like this version still cannot handle the .hex header:

:0200000460009A
PaulStoffregen commented 4 years ago

I committed support for Teensy 4.0, with a simpler approach. https://github.com/PaulStoffregen/teensy_loader_cli/commit/900a2bf56ed8f0627127dadfde8742e9810eff63