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.
