Arm Mbed OS support forum

Mbed Studio padding J-Link serial number with leading zeros, breaks pyocd

Hi,

Mbed studio appears to be padding the Serial number of J-Link’s when attempting to run pyocd.

For example:

Mbed studio is calling:

pyocd flash --uid 000123145678 --target k64f --erase=chip

For a j-link with a SN of 12345678. pyocd will wait for that j-link to connect for ever, where as

pyocd flash --uid 123145678 --target k64f --erase=chip

Will work properly.

Is there a way to work around this?

Hi Kyle,

Thanks for the feedback, this is unexpected behaviour. Would you mind sharing your log file using the feedback link in mbed studio so we can investigate?

Kind regards,

Rob

Sent