cancel
Showing results for 
Search instead for 
Did you mean: 

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

Yves Bmnt
Associate III

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Souhaib MAZHOUD
ST Employee

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.

View solution in original post

4 REPLIES 4
Souhaib MAZHOUD
ST Employee

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
Associate III

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 MAZHOUD
ST Employee

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
Associate III

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

Yves