Skip to main content
Kpach.1
Visitor II
January 12, 2021
Question

How to program STUSB4500 using NUCLEO STM32L4R5ZI?

  • January 12, 2021
  • 1 reply
  • 678 views

We are using STUSB4500 in our custom board, as we are not having STM32F072RB Nucleo board with us we are using STM32L4R5ZI nucleo board which is available.

I have downloaded STSW-STUSB004 for customizing the available library.

I have STSW-STUSB004 opened the project in IAR workbench and chosen the STM32L4R5ZI as the device to be ported.

After doing this still I am seeing the STM32F072RB device files only in the project.

So, please help me in porting the library properly and to program the STUSB4500 through I2C using STM32L4R5ZI.

This topic has been closed for replies.

1 reply

Gregory Go.
Senior III
January 19, 2021

Hi,

There is a similar question here:

https://community.st.com/s/question/0D53W00000SZeqESAT/can-we-use-any-stm32-nucleo-board-to-customize-stusb4500-nvm-settings

The STSW-STUSB004 firmware needs to be ported to your version of STM32.

But it is not sufficient to change the CPU selection in IAR project, you also need to use the proper STM32 libraries matching your chip version.

The simplest way to create a new project for your specific version of STM32L is to use STM32CubeMX tool, and then import the files for STUSB4500 NVM:

- USBPD_CUST_NVM_API.c

- main.c

Regards