Nucelo-H7432ZI2 basic ADC example fails in HAL_ADCEx_Calibration_Start()
I am trying to run a simple ADC example provided by STM32CubeIDE for my Nucleo-H743ZI2 board. I know the basic functionality of the board hardware and computer connection is OK, because I was able to write a simple program to blink all three user LEDs (LD1, LD2, LD3) on the board, and that works as expected.
However the example code, for which the README file starts as below, does not work. It compiles without error, it loads and it runs, but after some delay it ends up in the Error_Handler code with the red LD3 LED after the call to HAL_ADCEx_Calibration_Start() returns 0x01 instead of the HAL_OK = 0x00 value expected. Is there anything obvious I might be doing wrong? The only thing that occurs to me is this example was provided for the Nucleo-H743ZI and not the Nucleo-H743ZI2 that I have, but the latter part number does not show up in any examples, at all so I assumed maybe it was compatible (?)
ADC_RegularConversion_Polling conversion using Polling
******************** (C) COPYRIGHT 2017 STMicroelectronics *******************
ADC/ADC_RegularConversion_Polling/readme.txt
MCD Application Team
Description of the ADC RegularConversion Polling example.
******************************************************************************
- This example runs on STM32H743xx devices.
- This example has been tested with NUCLEO-H743ZI board and can be
easily tailored to any other supported device and development board.
[...]
if (HAL_ADCEx_Calibration_Start(&AdcHandle, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
{
/* Calibration Error */
Error_Handler();
}
