2024-03-28 07:21 AM
Hi there,
I am seeking some guidance regarding the connection of the STUSB1602 to the STM32L031G6U6 microcontroller for a low-power application with a small footprint.
Currently, I have already connected the STUSB1602 to the microcontroller using the I2C interface. However, I am uncertain about the compatibility of the MCU, also wether do I need to connect the SSI pin interface. Given that I am relatively new to designing circuits, I am seeking clarification and advice on this matter.
Could you please provide insights into how I can properly connect the STUSB1602 to the STM32L031G6U6 microcontroller using the SSI pin interface? Additionally, I would appreciate any recommendations or resources that could assist me in ensuring compatibility and optimal performance.
I have also attach the schematic I'm talking about
Thank you very much for your time and assistance.
2024-04-02 04:06 AM
Hello @xKrerahpus
You can refer to Application note - AN5164 - STEVAL-USBPD45C 45 W USB Type-C™ Power Delivery adapter
Figure 34. STEVAL-USBPD45I digital control board schematics
Also check User manual - UM2404 - STEVAL-USBPD45C 45 W USB Type-C™ Power Delivery adapter reference design Figure 13. STEVAL-USBPD45I
About your second question, you can interface STM32L0 though i2C communication and SPI :
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-02 05:42 AM
Hello
STUSB1602 needs SPI interface, on top on I2C interface.
On schematic you shared, it seems that SPI is not connected.
As your application is a power bank, DRP profile will be needed.
We have a package based on stm32L073RZ, if STM32L0 is your final choice.
Best regards
Nathalie
2024-04-07 02:19 AM - edited 2024-04-07 02:27 AM
Hi, thanks for your help.
So refering to AN5164 Fig. 34 as you have mentioned, is it possible to add an I2C display on to the same I2C bus?
Also, is it possible to change the MCU to STM32L051K8 with the exactly same pin connection?
2024-04-07 02:25 AM - edited 2024-04-07 02:37 AM
Hi, Thanks for your reply.
What is the package you have mentioned, and will it work properly on STM32L051K8 if it's based on Stm32L073RZ?
Also, in GPIO configuration menu, do I have to set the I2C channel to I2C or SMBus Alert mode?
I'm genuinely excited to learn from your wealth of knowledge. Thank you in advance for sharing it with me.
xKrerahpus
2024-04-08 12:12 AM
Hello
To answer properly to your questions, may I know which kind of application you are targeting ?
Is it single USB C port ?
Is it source only (i.e provides vbus power) or sink only (i.e receive power) or dual role ? Is the application has USB data ?
Best regards
Nathalie
2024-04-08 08:47 AM - edited 2024-04-08 08:50 AM
Hi
So the project I'm working on is something like a super simple but very efficient powerbank which has a single USB-C with DRP, no data connection other than the CC pin for PD negotiation. Has an 32x128 I2C OLED display and maybe shake to wake feature if it is possible.
I hope my response provides clarity and assists you in understanding how you can help me.
xKrerahpus
2024-04-09 12:34 AM
Hello
It seems possible to use stm32f051k8 with your application
I'll contact you in private message
Best regards
Nathalie
2024-04-09 10:04 PM
Hi
Feel free to contact me via private message whenever you're ready to discuss further details or if you have any questions. I'll be here and ready to assist whenever you need.
Best regards
xKrerahpus
2024-06-25 09:45 PM
I am currently working on a project where USB-C PD stack implementation on STM32F446ZE board. I have downloaded the necessary files which I have shown in my attachment (zip folder downloaded from https://github.com/usb-c/STUSB1602). Kindly answer my questions keeping in mind that I am just a beginner in using STM32CubeIDE but I have worked on other platforms like Code Composer Studio very well.
1. How to flash those files onto STM32F446ZE board using STM32Cube IDE? I have tried importing project ijn STM32CubeIDE on my own in various ways but Build Option itself is not even enabling. Later I figured it out myself that this particular project is not written in STM32CubeIDE but IAR by developers upon observing the names of those project folders. So, kindly tell me the steps to be followed about how to import smoothly those projects in STM32CubeIDE...
2. If proper importing of project is possible, I would like to add UART communication to the existing project. Previously I have used CubeIDE ".ioc" Graphics tool to initialize and establish UART communication on STM boards. So, since this project did not initialize ports and pins using ".ioc" file, is adding UART feature still easy in the existing project using CubeIDE, if so, kindly mention the detailed steps.
3. If importing the project is not possible or UART configuration is not possible in STM32CubeIDE, kindly advise me other ways of achieving my requirement.
Thanks in advance! Kindly help me in flashing my STM32F446ZE with this project with detailed steps.