Skip to main content
JMora.7
Associate
April 18, 2022
Question

How to fix ST-Link Nucleo board unable to connect, where the target is not found and the st-link is showing chipid 0x0000

  • April 18, 2022
  • 3 replies
  • 2038 views

Hello I ordered two NUCLEO boards, to start some projects on the ST32G03 platform. I was using the board with out an issue and connected to am Ubuntu 20.04 sys, updated the firmware on both and now one is working and the other is not, here is an output from dmesg inserting one then the other.

Device= 1.00
[108303.597126] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[108303.597131] usb 1-5: Product: STM32 STLink
[108303.597134] usb 1-5: Manufacturer: STMicroelectronics
[108303.597138] usb 1-5: SerialNumber: 066EFF3933354D5043113431
[108303.657933] usb-storage 1-5:1.1: USB Mass Storage device detected
[108303.658528] scsi host1: usb-storage 1-5:1.1
[108303.659177] cdc_acm 1-5:1.2: ttyACM0: USB ACM device
[108304.684568] scsi 1:0:0:0: Direct-Access MBED microcontroller 1.0 PQ: 0 ANSI: 2
[108304.685186] sd 1:0:0:0: Attached scsi generic sg1 type 0
[108304.685833] sd 1:0:0:0: [sdb] 200 512-byte logical blocks: (102 kB/100 KiB)
[108304.686064] sd 1:0:0:0: [sdb] Write Protect is off
[108304.686074] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[108304.686277] sd 1:0:0:0: [sdb] No Caching mode page found
[108304.686291] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[108304.757126] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[108384.531001] usb 1-5: USB disconnect, device number 60
[108384.546598] FAT-fs (sdb): unable to read boot sector to mark fs as dirty
[108395.017370] usb 1-5: new full-speed USB device number 61 using xhci_hcd
[108395.167110] usb 1-5: New USB device found, idVendor=0483, idProduct=374b, bcdDevice= 1.00
[108395.167122] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[108395.167126] usb 1-5: Product: STM32 STLink
[108395.167130] usb 1-5: Manufacturer: STMicroelectronics
[108395.167132] usb 1-5: SerialNumber: 066EFF3933354D5043120830
[108395.225380] usb-storage 1-5:1.1: USB Mass Storage device detected
[108395.225889] scsi host1: usb-storage 1-5:1.1
[108395.226451] cdc_acm 1-5:1.2: ttyACM0: USB ACM device
[108396.233965] scsi 1:0:0:0: Direct-Access MBED microcontroller 1.0 PQ: 0 ANSI: 2
[108396.234247] sd 1:0:0:0: Attached scsi generic sg1 type 0
[108396.234597] sd 1:0:0:0: [sdb] 200 512-byte logical blocks: (102 kB/100 KiB)
[108396.234752] sd 1:0:0:0: [sdb] Write Protect is off
[108396.234755] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[108396.234902] sd 1:0:0:0: [sdb] No Caching mode page found
[108396.234906] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[108396.318817] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[108425.954629] usb 1-5: USB disconnect, device number 61
[108425.971849] FAT-fs (sdb): unable to read boot sector to mark fs as dirty

the first one works great and the second one is not able to connect to the g03 board. Here is the output os the st-info probe.

This is from the working one. 
 
st-info --probe 
Found 1 stlink programmers
 version: V2J34S25
 serial: 066EFF3933354D5043113431
 flash: 65536 (pagesize: 2048)
 sram: 8192
 chipid: 0x0466
 descr: G030/G031/G041
 
This is from the failing one: 
st-info --probe
Found 1 stlink programmers
 version: V2J35S26
 serial: 066EFF3933354D5043120830
 flash: 0 (pagesize: 0)
 sram: 0
 chipid: 0x0000
 descr: unknown device

This failed only after the firmware upgrade, is there any way to revert this?

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
April 18, 2022

You can use the firmware update tool to go to older versions, you just have to download the appropriate one.

V2J35 is still rather OLD

ST-LINK Firmware Update https://www.st.com/en/development-tools/stsw-link007.html

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
JMora.7
JMora.7Author
Associate
April 19, 2022

Thank you for your recommendation, I could have sworn I tried that, but I have to double check, Any specific procedure I need to take to ensure this is done correctly? Thank you.

JMora.7
JMora.7Author
Associate
April 24, 2022

Well, I tried going back to an older firmware and it did not work.

 st-info --probe
Found 1 stlink programmers
 version: V2J38S27
 serial: 066EFF3933354D5043120830
 flash: 0 (pagesize: 0)
 sram: 0
 chipid: 0x0000
 descr: unknown device
 
 
 
116658.613598] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[116658.613603] usb 1-5: Product: STM32 STLink
[116658.613607] usb 1-5: Manufacturer: STMicroelectronics
[116658.613610] usb 1-5: SerialNumber: 066EFF3933354D5043120830
[116658.875053] usb-storage 1-5:1.1: USB Mass Storage device detected
[116658.875654] scsi host1: usb-storage 1-5:1.1
[116658.876542] cdc_acm 1-5:1.2: ttyACM0: USB ACM device
[116659.888859] scsi 1:0:0:0: Direct-Access MBED microcontroller 1.0 PQ: 0 ANSI: 2
[116659.889588] sd 1:0:0:0: Attached scsi generic sg1 type 0
[116659.890240] sd 1:0:0:0: [sdb] 456 512-byte logical blocks: (233 kB/228 KiB)
[116659.890532] sd 1:0:0:0: [sdb] Write Protect is off
[116659.890538] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[116659.890881] sd 1:0:0:0: [sdb] No Caching mode page found
[116659.890889] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[116659.953695] sd 1:0:0:0: [sdb] Attached SCSI removable disk