cancel
Showing results for 
Search instead for 
Did you mean: 

Cube MX and ADC4 - Channel not initialised

Markko67
Associate II

HI

I use Cube MX with STM32U585RIT6. 

When I use ADC4 In3 In4 In9 In22 and In23, the  channel In9 is not properly initialised. 

I must add this manually :

/* USER CODE BEGIN ADC4_Init 2 */
/** Configure Regular Channel
*/
sConfig.Channel = ADC_CHANNEL_9;
if (HAL_ADC_ConfigChannel(&hadc4, &sConfig) != HAL_OK)
{
Error_Handler();
}

/* USER CODE END ADC4_Init 2 */

With the STM32U585VIT, I have the same problem with channel9 dont work 

Then it work. I have this probleme in CubeMX from 6.9 to 6.11 versions.

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

Hello @Markko67 

This issue is solved on the new release of the STM32CubeMX (V6.12.0).

Best Regards.

STTwo-32

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

2 REPLIES 2
STTwo-32
ST Employee

Hello @Markko67 

Thank you for reporting this issue. I can reproduce it on my side. I've report it internally to the concerned team for correction on the next releases (under internal ticket niumber 179275).

Best Regards.

STTwo-32 

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.

STTwo-32
ST Employee

Hello @Markko67 

This issue is solved on the new release of the STM32CubeMX (V6.12.0).

Best Regards.

STTwo-32

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.

Announcement

We’re moving the ST Community to a new platform to give you a better and more reliable community experience.