Skip to main content
Associate
Question

Nucleo board programming a STUSB4500 using STUSB4500_GUI_2.00 fails to detect STUSB4500, but hwultility does

When I try to connect to my STUSB4500 using STUSB4500_GUI_2.00 with a Nucleo-F073RB it sees the COM4: port, but after clicking OK I always get the message 
 

I2C Read error. Error number: -2 (0xFFFFFFFE)



HWchecktutility does recognize the STUSB4500 as a i2c device:

 

=====================================================
Nucleo Hardware Check Utility - K2k (c) [G.G] <v1.0.2.31440>
=====================================================

Available COM Ports = 1: | COM4 |
Port: COM4 opening: OK closing: OK

Testing Ports: [1]: | COM4 |
Testing COM4 :
try-1: >>OK Target replied in (ms):11,85
try-2: >>OK Target replied in (ms):15,43
try-3: >>OK Target replied in (ms):15,51
try-4: >>OK Target replied in (ms):15,78
try-5: >>OK Target replied in (ms):14,79
=> There is 1 target connected on: [COM4 ]
Speed test:
Sending_Data1024: time=222 ms, >Transfer_speed =75531,53 bit/s
Sending_Data1024: time=230 ms, >Transfer_speed =72904,34 bit/s
Sending_Data1024: time=235 ms, >Transfer_speed =71353,2 bit/s
==============================================================
->Selected COM4 Testing replies...
COM4: Target OK
Ping Ok
Firmware version: 1.05.190522
Serial number : ST-vl022D
==============================================================
----Scan all devices
BusCount: 2
I2C_Scan - bus 1: [OK]
Devices found: 2
Addr found (8bit): 0x50 0x51
(7bit): 0x28 0x28
I2C_Scan - bus 2: ERROR 999.
==============================================================
Summary: > Attached ports Detected -> COM4
> Ports with I2C devices -> COM4
==============================================================

 

My logic analyzer sees correct responses to the device scan (see attachement).

 

I installed the VC_redist.x86.exe


I tried:

  • STUSB4500_GUI_2.00 (using Nucleo_F072RB_STUSB_UART_NVM_config_1.05.bin FW)
  • STUSB4500_GUI_1.11 (using Nucleo_F072RB_STUSB_UART_NVM_config_1.04.bin FW)
  • STUSB4500_GUI_1.09 (using Nucleo_F072RB_STUSB_UART_NVM_config_1.04.bin FW)

But the error keeps coming back.

How can I program my STUSB4500 using a Nucleo-F073RB?

6 replies

Didier HERROUIN
ST Technical Moderator

Dear 

Please confirm your exact setup :

  • Connection from Nucleo board to the PC : USB cable to mini-USB port (CN1) ?
  • Did you load the correct FW inside the Nucleo board ? 
    (Nucleo_F072RB_STUSB_UART_NVM_config_1.05.bin)
  • Did you install the ST-Link driver ?  (the port COM should be recognized as STLink Virtual COM Port)
  • Does the LED LD3 switch on when you connect the USB cable ?
  • Are SB13 and SB14 (at the bottom side of the Nucleo board) correctly closed ?

Let us know the status after these checks.

Best regards,

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
RHAD1969Author
Associate

I connected the Nucleo board to the PC using a mini-USB cable (CN1)

I've tried 2 firmware revisions:

  • Nucleo_F072RB_STUSB_UART_NVM_config_1.05.bin
  • Nucleo_F072RB_STUSB_UART_NVM_config_1.04.bin

The ST-Link driver is also installed. It pops up in the Device Manager as STMicroelectronis STLink Virtual COM Port (COM4). The drivers version is 2.2.0.0 dated 1-4-2021, file version 10.0.26100.9974 (winBuild. 160101.0800)

LD1 and LD3 both lit up red when I connect the USB cable. LD2 is blinking green. I think 7 times (approx 2Hz) and then a few times very quick. This pattern repeats itself.

SB13 (RX) and SB14(TX) are both closed, I think by a 0-ohm resistor.

On the ST Link mass storage driver there is a file details.txt (modified 27-5-2004)  with this content:
 

Version: V2J48M35
Build: Apr 8 2026 13:15:59


    

 

Didier HERROUIN
ST Technical Moderator

Dear RHAD1969,

The LEDs behaviors your observed are the ones expected.

How did you program the Nucleo board with “Nucleo_F072RB_STUSB_UART_NVM_config_1.0x.bin” ? Using STM32CubeProgrammer or by a single drag-on-drop on the mass storage node (did you get a confirmation that it was successful)?

When you launch the GUI “STUSB4500_GUI_2.00.exe” you should get a CONNECTION STATUS (“[OFFLINE]”…. or “[OK]….”), please confirm the displayed message.

If nothing happens, you should probe the I2C link on STUSB4500 eval kit.

Best regards,

 

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
RHAD1969Author
Associate

The Logic Analyzer data sniffed from the I2C  is in the first post, but the STUSB4500 does not respond.

The HWchecktutility does get a response (see first posting) from the STUSB4500.

I used the drag & drop approach to update the firmware, no confirmation. After drop the mass storage was gone a few seconds and came up without the .bin file; so it seems to be deleted

When I run STUSB4500_GUI_2.00.exe I get the popup: I2C read error. Error number: -2 *(0xFFFFFFFE). After clicking OK I get the message: STM32-Nucleo-board connected. But STUSB4500 not Detected. Default configuration will be loaded. Connection Status [Offline} - STUSB4500 Not Detected - File Edition mode.

 

I now managed to program the STUSB4500 by using the NVM_ReadWriteUtility.exe and the new PD profile works.

Issues with STUSB4500_GUI_2.00.exe remains, so it seems to be somewhere in that program.

 

Didier HERROUIN
ST Technical Moderator

For my information, which NVM_ReadWriteUtility do you use ? I am not sure I know this tool.

I assume you use it with the same Nucleo board, connected in the same way to the STUSB4500 eval kit.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
RHAD1969Author
Associate

You can download the NVM_ReadWriteUtility here

The connection is the same and I tried the NVM_ReadWriteUtility and the STUSB4500_GUI_2.00  without changing the configuration.