square / pylink

Python Library for device debugging/programming via J-Link
https://pylink.readthedocs.io/en/latest/
Other
344 stars 127 forks source link

SWD/JTAG speed #22

Open mikolajrode opened 6 years ago

mikolajrode commented 6 years ago
hkpeprah commented 6 years ago

Is the ask here to only check the speed against MIN/MAX when the interface is JTAG?

mikolajrode commented 6 years ago

I'd refactor MAX_JTAG_SPEED into MAX_INTERFACE_SPEED (as it actually refers to SWD or JTAG) and push it to 50000 (50 MHz). Second option, making less sense is to define separately MAX_JTAG_SPEED and MAX_SWD_SPEED and check them according to selected TIF (interface). However those max speeds would still be equal to 50 MHz.