Skip to main content
Yves Bmnt
Associate III
March 7, 2024
Solved

Error in adc.c generated by STM32Cube FW_G4 V1.5.2

  • March 7, 2024
  • 4 replies
  • 2125 views

Hi all,

just found an error preventing the adc from working properly when the driver is generated by STM32Cube FW_G4 V1.5.2 (and 1.5.1).

there are some missing lines like this one:

sConfig.Channel = ADC_CHANNEL_2;

 

you can compare my 2 attached files to see for yourself.

kind regards,

Yves

 

This topic has been closed for replies.
Best answer by Souhaib MAZHOUD

Unfortunately, I was unable to reproduce the problem with FW_G4 V1.5.2.
Could you please ensure that you have changed the channel name under Rank as bellow:

 

SouhaibMAZHOUD_0-1709827219776.png

 

 

 

4 replies

Technical Moderator
March 7, 2024

Hello @Yves Bmnt 

Thank you for bringing this issue to our attention, I will check it internally and get back to you as soon as possible.

Thx

Souhaib

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.
Yves Bmnt
Yves BmntAuthor
Associate III
March 7, 2024

Maybe it can help, I had the ok file generated by STM32CubeMX V6.61 (using STM32Cube FW_G4 V1.5.1), and the ko file generated by STM32CubeMX V6.9.2 (using STM32Cube FW_G4 V1.5.2) so it probably doesn't come from the STM32Cube FW_G4, unlike mentioned in my previous post.

Yves

Souhaib MAZHOUDBest answer
Technical Moderator
March 7, 2024

Unfortunately, I was unable to reproduce the problem with FW_G4 V1.5.2.
Could you please ensure that you have changed the channel name under Rank as bellow:

 

SouhaibMAZHOUD_0-1709827219776.png

 

 

 

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.
Yves Bmnt
Yves BmntAuthor
Associate III
March 7, 2024

Thank you so much, I missed that when migrating the microcontroller!

Yves