ElTangas / jtag2updi

UPDI programmer software for Arduino (targets Tiny AVR-0/1/2, Mega AVR-0 and AVR-DA/DB MCUs)
MIT License
337 stars 90 forks source link

Does the TEMP register stuff actually save us anything? #30

Closed SpenceKonde closed 4 years ago

SpenceKonde commented 4 years ago

It seems hard to believe that this could make that much of a difference...

I didn't see a performance difference using it, thought it made a small difference in the sketch size. Wondering if it's worth even the mess of looking at, since I'm pretty sure the bottle neck isn't shuffling the data to and from the software serial port (and probably actually dealing with said software)

SpenceKonde commented 4 years ago

But all the XAVR parts have a full complement of 4 registers (plus, we now need to handle 24-bit addresses)....

ElTangas commented 4 years ago

It was an experiment I did because I didn't like the code avr-gcc was generating. Yes, it's only meant to reduce code size, not relevant for performance.

In fact not much on the UPDI side is relevant for performance provided it can handle the UPDI settings that I use; the current main limitation is that the jtagice mkII protocol only supports a maximum of 115200 baud.