stlink: STM32F100RBT6: Failed to read core_id and unknown device
Thank you for giving feedback to the stlink project.
NOTICE: Please read and follow instructions in #906 before submitting a ticket. This feature request will be deleted without notice when not enough information is provided! So please ensure that all fields are filled out.
- I made serious effort to avoid creating duplicate or nearly similar issue
In order to allow developers and other contributors to isolate and target your respective issue, please take some time to fill out each of the following items appropriate to your specific problem:
- Programmer/board type: Onboard STLINK/V1
- Operating system and version: Fedora 32
- Stlink tools version and/or git commit hash: v1.6.1
- Stlink commandline tool name: st-info and st-util
- Target chip (and board if applicable): STM32F100RBT6
Futher we kindly ask you to describe the detected problem as detailed as possible and to add debug output if available, by using the following template:
Commandline-Output:
For st-util:
st-util -1
st-util: invalid option -- '1'
st-util
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_GET_VERSION
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_GET_CURRENT_MODE
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_GET_CURRENT_MODE
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_DEBUG_ENTER
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_DEBUG_RESETSYS
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_DEBUG_READCOREID
2020-10-05T03:31:27 ERROR common.c: Failed to read core_id
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_JTAG_READDEBUG_32BIT
2020-10-05T03:31:27 WARN common.c: Invalid flash type, please check device declaration
2020-10-05T03:31:27 ERROR gdb-server.c: Unsupported Target (Chip ID is 0000000000, Core ID is 0000000000).
For st-info:
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_GET_VERSION
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_GET_CURRENT_MODE
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_GET_CURRENT_MODE
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_DEBUG_ENTER
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_DEBUG_RESETSYS
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_DEBUG_READCOREID
[!] send_recv send request failed: LIBUSB_ERROR_PIPE
[!] send_recv STLINK_JTAG_READDEBUG_32BIT
Found 1 stlink programmers
serial: 303030303030303030303031
hla-serial: "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x31"
flash: 0 (pagesize: 0)
sram: 0
chipid: 0x0000
descr: unknown device
Expected/description:
The device should not be read as an unknown device when executing st-info --probe, and there should not be a gdb-server error when running st-util. However, the board is able to be detected when running lsusb.
Bus 001 Device 013: ID 0483:3744 STMicroelectronics ST-LINK/V1
I’m still relatively new to STM32 and ARM, please let me know if there’s any other details that I can provide.
Thank you for your support.
The stlink project maintainers
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 63 (21 by maintainers)
Yeah, I think we have seen enough resulting output by now - time to investigate the cause. 😉
I have both Mint Linux (20.1) machine and Windows 10 machine to do testing on the following boards:
I also own an ST-LINK-V2 device and ST-LINK-V3 device and various ST-LINK-V2 clones
just let me know what you want me to test.
Launch it a second time, see where the
Found 1 stlink programmers version: V1J13 serial: 553f6d06483f48534641213fgoes…Hi guys! Thanks for your effort!! As I’ve found a couple of the VL boards in my junkbox I’ve tried with 1.6.1 and I’ve ran into the same issues as described above - with latest Lubuntu 20.04. (Btw the 1.6.1 flashes with the Discovery F407 board, but not reliable enough - sometimes it flashes ok, sometimes not…) I’ve done the 1.6.0 install as described above by GadgetAngel and the flashing of my VL board now works.
I am getting the same problem with my STM32VLDISCOVERY board. ST-LINK V1 is detected by Linux Mint 20.1 but st-util does not work or st-info does not read the chip info correctly.
EDIT: I did the following to get it to work:
Something in v1.6.1 has broken stlink-v1 from working. But I does work if you roll back to V1.6.0
Hi, thanks for your comments.
The solution I’ve found to satisfy my needs, and couldn’t be too hard to follow for disatisfied StLink v1/ VL owners, who are trying to use it under Linux, as a workaround until the developer/s find a time frame to tackle this 😃 But I agree, the stlink-download.c is a rigmarole, but a rigmarole I mentioned only just in case it could give you a hint. I mean, why executing it allows the st-info utility to get the right values afterwards? (but no flashing works until you delete current libs and replace it with 1.6.0’s as I said…) Does this give you a bit of a hint, even if only by intuition?
I guess I can try and compare/ track/ debug by myself the actual calls, parameters and execution of the current 1.6.x against the “bad” libraries versus the 1.6.0 versions, as it seems pretty obvious the differences couldn’t be due to differing interfaces or something, so I’m almost sure this has to be some subtle quirk we’ve / you’ve not yet found.
If I make some advance on this of course I’ll let people now here.
LD3 and LD4 are the leds you may let blink with the Blink demo (arduino with stm32 support installed). The leds are called LED_BLUE and LED_GREEN inside arduino IDE then (with the DiscoveryVL board selected). The default LED in the Blink sketch is named “LED_BUILTIN” thus you will not see the led blinking with the default…
@Nightwalker-87 pong: Unfortunately I do not have any L100 series boards, so I cannot reproduce the issue.
Usually one can simply copy console output as is and paste it and use < > afterwards to define a codeblock formatting around it. However, note that there also is www.pastebin.com for complete console outputs.
After firing up the Lubuntu (with stlink connected) and entering the sudo st-info --probe I get the same Found 0 stick inormation as you got… I plugged the stlink off/on and:
PS: Btw I still get “Found 0 stlink programmers”, even it flashes the binary into F100 fine…
Have the same problem. Checked with version from repository
community/stlink 1.6.1-1and latest develop branch. Board - STM32VLDISCOVERYLatest working commit: e3aa887f7ffdfcfb3a0529ee3b94a7d3fe39b5d8