cancel
Showing results for 
Search instead for 
Did you mean: 

Why can’t I set the STM32H723’s USB_PHY speed setting to medium on CubeMX?

june
Associate III

STM32H743I-EVAL2

Custom Bord(H723)

CubeMX 6.3.0

[ Datasheet ]

(H743) DS12110 Rev8

(H723) DS13313 Rev2

[ Reference manual ]

H743 RM0433 Rev7

  H723 RM0488 Rev2

I using the H743EVAL and setting up a custom board.

I’m setting up for a custom board with CubeMX.

A problem occurred while setting “USB_PHY�? of “GPIO�?.

 

I want to setting “medium�? to “maximum output setting�?

However, this choice is “high�? or “very high�? only. 

0693W00000GW8H3QAL.jpg 

The settings of CubeMX on the custom board are the same as those of H723.

Therefore, I checked if the same result could be obtained with H743.

As a result, I had only "high" or "very high" options.

0693W00000GW8H8QAL.jpg 

When I checked 517P of the H723 reference manual (RM0468),

"Refer to the product data sheet for OSPEED Ry bits and VDD ranges and external load values."

Since it is written, I checked 203P of the data sheet (DS13313). 

0693W00000GW8NBQA1.jpg 

In the data sheet

"USB function is guaranteed up to 2.7V.

However, all USB electrical characteristics deteriorate in the voltage range of 2.7 to 3.0V. It is written.

0693W00000GW8NLQA1.jpgIs this related to the inability to set the speed setting to "Medium" on CubeMX?

 

 

As one of the solutions I came up with, do I have to manually change the settings after

generating the code in CubeMX?

Does setting it to "Medium" cause problems such as USB_PHY not working?

0693W00000GW8NzQAL.jpgIf you know how to set the USB_PHY speed setting to "Medium" or why it cannot be set, please let us know.

 

 

The clock settings for the custom board (H723) are as follows. 

0693W00000GW8OiQAL.png 

0693W00000GW8P2QAL.png

1 ACCEPTED SOLUTION

Accepted Solutions
Sara BEN HADJ YAHYA
ST Employee

Hi @june​ ,

The Maximum output speed is the maximum transition, from high to low or from low to high, frequency of the GPIO.

When you use a high speed peripheral such as USB, you need to increase the switching frequency of the GPIOs related to this peripheral in order to attend the wanted level before the end of the clock cycle. And this is why you can only find high and very high speed in the CubeMX.

You can change the GPIO speed manually to medium, but there is a high risk of damaging your data frame during transfer.

Best Regards,

Sara.

View solution in original post

5 REPLIES 5
TDK
Guru

Presumably, CubeMX is preventing you from generating a configuration with insufficient drive strength on the USB lines.

Why do you want to set it to medium? The characterization done by ST is with very high output speed.

You could change it manually in code if you really want.

If you feel a post has answered your question, please click "Accept as Solution".
Sara BEN HADJ YAHYA
ST Employee

Hi @june​ ,

Could you share your .ioc file ?

Thanks,

Sara.

Sara BEN HADJ YAHYA
ST Employee

Hi @june​ ,

The Maximum output speed is the maximum transition, from high to low or from low to high, frequency of the GPIO.

When you use a high speed peripheral such as USB, you need to increase the switching frequency of the GPIOs related to this peripheral in order to attend the wanted level before the end of the clock cycle. And this is why you can only find high and very high speed in the CubeMX.

You can change the GPIO speed manually to medium, but there is a high risk of damaging your data frame during transfer.

Best Regards,

Sara.

I decided to work with the "high"setting.

Thank you for your reply.

june
Associate III

He seems to have been working on other models set to "medium".

So I wondered if this model could do that.

However, I couldn't find a way to set it to "medium", so I asked this question.

I don't know the hardware, so I don't know why it should be set to "medium".

But I had to make sure there was a way to set it up.

Thank you for your reply