-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Milestone
Description
- Programmer/board type: NUCLEO-F401RE
- Programmer firmware version: n/a
- Operating system: Mac OS X
- Stlink tools version and/or git commit hash: 0f6dcbd (> v1.2.0)
- Stlink commandline tool name:
st-util - Target chip (and optional board): e.g STM32F401RE (NUCLEO-F401RE)
Output:
$ system_profiler SPUSBDataType
STM32 STLink:
Product ID: 0x374b
Vendor ID: 0x0483 (STMicroelectronics)
Version: 1.00
Serial Number: 0672FF494951785087023310
Speed: Up to 12 Mb/sec
Manufacturer: STMicroelectronics
$ ./st-info --probe
Found 1 stlink programmers
serial: 303637324646343934393531373835
openocd: "\x30\x36\x37\x32\x46\x46\x34\x39\x34\x39\x35\x31\x37\x38\x35"
flash: 524288 (pagesize: 16384)
sram: 98304
chipid: 0x0433
descr: F4 device (Dynamic Efficency)
The current stlink tools/library is unable to detect a binary or hexstring serial number. The best fix is to detect if the serial is already hex encoded or encode it into a hex string. We need to have a generic hexstr_from_bin, hexstr_to_bin and hexstr_is_valid.