ElTangas / jtag2updi

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

Add support for more jtagmkii baud rates #57

Closed MCUdude closed 2 years ago

MCUdude commented 2 years ago

Sorry for the typo in PR #55. Can't believe this slipped though...

ElTangas commented 2 years ago

No problem. I was sloppy reviewing.

ElTangas commented 2 years ago

All right, have you compiled and tested some of the new speeds?

MCUdude commented 2 years ago

Only 230400 baud, because MacOS doesn't support arbitrary baud rates and baud rates higher than 230400.

See https://github.com/avrdudes/avrdude/issues/771

ElTangas commented 2 years ago

Ok, I think it suffices that one of the speeds works, just to make sure there is no misalignment in the data structures.

edit: anyway, that's the main reason why it's better to support more speeds, I didn't new about that limitation of MacOS, but some serial/USB adapters do have some quirks and prefer certain speeds.