Skip to main content
Associate II
April 6, 2024
Solved

Cube MX and ADC4 - Channel not initialised

  • April 6, 2024
  • 2 replies
  • 1621 views

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.

Best answer by STTwo-32

Hello @Markko67 

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

Best Regards.

STTwo-32

2 replies

STTwo-32
Technical Moderator
April 6, 2024

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 

STTwo-32
STTwo-32Best answer
Technical Moderator
July 5, 2024

Hello @Markko67 

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

Best Regards.

STTwo-32