cancel
Showing results for 
Search instead for 
Did you mean: 

Discrepancy between STM32CubeProgrammer and reference manual

Maaz1
Associate III

Hi all

For the STM32U5, the reference manual shows the GCCFG register as

Maaz1_0-1754472688389.png

 

but STM32CUBEIDE shows

Maaz1_1-1754472850021.png

bit 16(and a lot of other bits) are differing. Is this an error and if so which is the right one

 

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello @Maaz1 ,

 

The reference manual is correct, the issue is related to svd file shared in this link.

KDJEM1_0-1754576496196.png

To clarify the issue, the STM32CubeIDE and STM32CubeProgrammer toolchains used the same svd file register.

 

I will let you know when the issue is solved.

 

Thank you.

Kaouthar

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.

View solution in original post

10 REPLIES 10
KDJEM.1
ST Employee

Hello @Maaz1 ;

 

As mentioned in RM0456 the STM32U575/585 support only the USB on-the-go full-speed (OTG_FS) which the OTG general core configuration register (OTG_GCCFG) have these bits filed:

 

KDJEM1_3-1754553700645.png

KDJEM1_0-1754553538765.png

And the STM32U59x/5Ax/5Fx/5Gx support only USB on-the-go high-speed (OTG_HS) which OTG general core configuration register (OTG_GCCFG) have these bits filed:

KDJEM1_4-1754553722098.png

KDJEM1_1-1754553625361.png

 

If you using the STM32U575 or STM32U585, you need to refer to Section 72.15.15 not 73.14.18 in reference manual.

Which STM32U5 are you using?

Thank you.

Kaouthar

 

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.

Hi

I am using STM32U5G9J-DK2

KDJEM.1
ST Employee

Hello @Maaz1 ;

 

Thank you for bringing this issue to our attention.

I reported internally for verification and correction.

Internal ticket number: 215484 (This is an internal tracking number and is not accessible or usable by customers).

 

Thank you.

Kaouthar

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.

Hi

Another discrepancy to support the fact that the reference manual might be wrong 

 

Maaz1_0-1754576084315.png

STM32CubeIDE seems to support the stm32CubeProgrammer and not the reference manual. 

 

Thank you for the ticket, and I hope to hear from you soon since this is of interest to me as well.

KDJEM.1
ST Employee

Hello @Maaz1 ,

 

The reference manual is correct, the issue is related to svd file shared in this link.

KDJEM1_0-1754576496196.png

To clarify the issue, the STM32CubeIDE and STM32CubeProgrammer toolchains used the same svd file register.

 

I will let you know when the issue is solved.

 

Thank you.

Kaouthar

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.

Hi, thanks for getting back to me.

 

That's such a huge error lol, I'm glad I posted it here and followed reference manual instead of chasing ghosts. Thank you for replying, really put me at ease :)

KDJEM.1
ST Employee

Hello @Maaz1 ;

 

Thank you for your contribution in STCommunity.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which answered your question.

 

Thank you.

Kaouthar

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.

Hi, are there any updates?