Skip to main content
CNeug
Associate
August 22, 2019
Question

I am using a STM32F722 with external HS USB phy. I have tried generating code to get this going but it is not even talking to the external phy let alone to the host PC. Is there some example code I could look at.

  • August 22, 2019
  • 6 replies
  • 1308 views

..

This topic has been closed for replies.

6 replies

Mike_ST
ST Technical Moderator
August 22, 2019

Hello,

Maybe you can have a look at the various examples provided the STM32F7 family CubeMX package:

https://www.st.com/en/embedded-software/stm32cubef7.html

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. 
CNeug
CNeugAuthor
Associate
August 22, 2019

I am using the CUBEMX. That is how I am generating the USB code so far. But it is not seeming to run. I am digging in it now. But if someone has some working code I can look at it would go faster.

Mike_ST
ST Technical Moderator
August 22, 2019

You have some examples inside the F7 software package (downloaded by the STM32CubeMX software):

In windows:

C:\Users\$USERNAME\STM32Cube\Repository\STM32Cube_FW_F7_V1.15.0\Projects\STM32F722ZE-Nucleo\Applications\

but that make use of internal PHY

You have the STM32F769 discovery board that makes use of ULPI interface:

C:\Users\$USERNAME\STM32Cube\Repository\STM32Cube_FW_F7_V1.15.0\Projects\STM32F769I-Discovery\Applications

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. 
CNeug
CNeugAuthor
Associate
August 22, 2019

Ok so far looking at it I am not sure what he heck I am doing wrong. Could I send you code and you look at it to see if I am screwing something up?

CNeug
CNeugAuthor
Associate
August 22, 2019

Ok I found out why it is not working. The part we are using is an STM32F722R only the V , Z , and l variants have the ability to run the external phy. I am curious as to why

  1. Cubemx did not flag this for that part.
  2. the registers internal to the part appear to work but do not actually do anything as far as control an external phy.

Mike_ST
ST Technical Moderator
August 23, 2019

Hello,

1) Internal ticket entered.

2) These are called "Reserved" registers in that case.

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.