Skip to main content
Lukasz Przenioslo
Associate III
November 3, 2018
Solved

STUSB1602 SPI interface

  • November 3, 2018
  • 47 replies
  • 6211 views

Hello there,

I am currently analyzing the STUSB1602 chip and the P-NUCLEO-USB002 eval kit. I have come across a topic I am not fully certain about. Its the SPI interface for the BMC communication. I cannot understand either it is necessary in all applications, or only if I want to exchange some specific data between devices over CC line? For example, if I intend to create a sink only device, so I have to connect the SPI lines and provide any data from the MCU? I would appreciate all help.

This topic has been closed for replies.
Best answer by Benoit FORET

not yet. This is a reference design: Altium design files are available on line for fast duplication: STREF-SCS001V1.

But I can ship one to you: just share with me your address via private messaging (accessible via the message button when pointing my name with the mouse).

Benoit

47 replies

Lukasz Przenioslo
Associate III
November 16, 2018
Yes, both boards still work.
I tried the good cable provided with nucleo board, also doesnt work.
As for the AC adapter I can lend it to you without a problem.
As for the dell, I was not able to charge it with the STEVAL-ISC004V1. The laptop found the charger, but refused to charge. I believe this could be done on purpose by dell.
I only did not yet try to obtain higher voltages from the laptop using P-NUCLEO-USB002. Will test that today and let you know. Thanks.
ST Employee
November 19, 2018

​Hi Lukasz,

To check what is happening with STEVAL-ISC004V1, I recommend to use the associated GUI (STSW-STUSB001) (STM32 NUCLEO board required to run it). The GUI include a Dashboard that collects the SINK profile, so that you can check consistency with the SOURCE profile. It also report the agreed contract between the 2 devices.

Also please note that your charger also support former Qualcomm QC3.0 on top of USB PD, which is likely the fast charge protocol also implemented in your smartphone. This protocol is not implemented on the eval board you have.

bye,

Benoit

Lukasz Przenioslo
Associate III
November 19, 2018
Hi Benoit, thank you for answer.
I will dow load the gui app then and check what is going on there. I have some nucleos laying around, is any specific one required and does it need any specific firmware?
As for the charging the phone, what you say is probably right, but keep in mind that I was able to charge this exact phone through P-NUCLEO-USB002 (profile 1, 5V in console). So it seems the phone does support usb PD.
Lukasz Przenioslo
Associate III
November 19, 2018
Benoit,
Ok, I found out that I need NUCLEO-F072RB from the product site: https://www.st.com/content/st_com/en/products/evaluation-tools/solution-evaluation-tools/psu-and-converter-solution-eval-boards/steval-isc004v1.html
I can buy that nucleo from a local distributor. But I couldnt find any firmware that should be written into this bucleo rom in order to work with the gui app.
ST Employee
November 20, 2018

​Hi Lukasz,

there is a .bin file into STSW-STUSB001 software package that you need to drag and drop into the Nucleo + an .exe (GUI). the User Manual is called: "UM2254: STSW-STUSB001 quick installation guide"

rgds,

Benoit

Lukasz Przenioslo
Associate III
November 25, 2018

Hello Benoit,

I should have the needed Nucleo tommorow. As for now, I have some results on connecting the P-NUCLEO-USB002 to the Dell precision 7730 machine. I would consider this one a pretty "high end", but it seems that it can only provide 5V... Please take a look:

P-NUCLEO-USB00x Demo v1.0.4
Console v0.4
Type help for a list of commands.
STMicroelectronics
Copyright (c) 2017 - All Rights Reserved.
>
*** [1] attached on CC2 (Sink)
 
*** [1] selected cap #1
 
>s 1
Role: Sink - Explicit contract CC2 Profile 1 5.00V
>r 1 1
Requested 1 : 5.00V 3.00A
>
*** [1] selected cap #1
r 1 2
Request failed: wrong index param '2' specified.
>r 1 1
Requested 1 : 5.00V 3.00A
>
*** [1] selected cap #1
r 2 1
Error: invalid parameter port '2 1'
>r 1 2
Request failed: wrong index param '2' specified.
>r 1 3
Request failed: wrong index param '3' specified.
>r 1 1
Requested 1 : 5.00V 3.00A

Does this piece:

>r 1 2
Request failed: wrong index param '2' specified.

means that it does not support the second profile? Looking forward to your answer.

Lukasz Przenioslo
Associate III
November 20, 2018
Thank you, will order the nucleo and check this out.
ST Employee
November 26, 2018

Hi Lukasz,

to get a confirmation, please try "p 1" command. It will print the SOURCE PDO. I have seen a few phones able to SOURCE​ 9V, but so far no laptop that can do it. To do so, there is an Hardware cost, and there a quite a lot of USB port still on a laptop (so cost duplicated). I think laptops' main use case is still HDD or USB key connection.

rgds,

Benoit

Lukasz Przenioslo
Associate III
November 26, 2018

Hi Benoit, thanks for answer.

I will be able to confirm this tomorrow, as today I dont have access to the PC.

In general I agree with you. Taking under consideration how expensive are the end game mobile workstations, adding an additional DC-DC converter in order to allow higher sourcing voltages over USB C would not hurt... Imagine how convenient it would be to connect a 3.5' HDD over USB C converter without additional cables (12V needed)...

ST Employee
November 27, 2018

​Hi Lukasz,

the connection looks good. But the behaviour is typical of STUSB4710 going into error recovery (fault condition => terminate connection => restart => re-negotiate => fault etc...) because VBUS voltage can't meet the agreed voltage (20V in your case) within the right amount of time defined by the standard (5V to 20V transition is less than 270 ms). You should monitor VBUS on the scope and check it meets the UVLO / OVLO threshold at 20V (18V/21.6V). Maybe you can try to enlarge the UVLO/OVLO to +/-20% to give more margin in case the power supply you use is weak. See the result with a 2018 HP EliteBook840 G5.

ST Employee
November 27, 2018

0690X000006CUFYQA4.png

Lukasz Przenioslo
Associate III
November 27, 2018

Benoit,

You are right, it was my bad- I have manually set the current limit to 100 mA on the AC adapter. After turning it up to 2A here is the result:

0690X000006CUGqQAO.png

Nothing superior here though... Also the PC doesn't want to be charged. Seems like your PC is way better USB C wise- can you charge it from the STEVAL-ISC004V1?

ST Employee
November 27, 2018

What is your laptop' battery State Of Charge? I think bellow 20%, it will give an idea how the laptop charging algorithm behaves with a Universal Power supply (I mean non-DELL). I believe it may not charge at the fastest way, but charge anyway (close to 1.2A). As you can see, mine has several 15W profiles (Buck-boost inside) which make it quite universal, but this is half the original HP AC adapter. And yes, when battery is low, the laptop is sinking about 100mA less than the negotiated contract, which is a good implementation. Bye

Lukasz Przenioslo
Associate III
November 27, 2018

The laptop was 80% SoC. I will then check at 20% and less, thanks.