Skip to content

Convert an USB serial number into a OpenOCD comatible format

License

Notifications You must be signed in to change notification settings

redheads/openocdser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

OPENOCDSER

This little program converts a serial number of a USB device to a string that can be passed to OpenOCD via the command line.

Building

make openocdser should do the job on most systems. Otherwise compile it with your favorite C-compiler.

Running

You need to pass a file containing the serial number to openocdser. To list all serials of STLink debuggers you can use:

grep STLink -l /sys/bus/usb/devices/*/product | xargs dirname | xargs -I{} -n1 ./openocdser {}/serial

License

GPL v3

Have fun.

About

Convert an USB serial number into a OpenOCD comatible format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages