ADC on STM32H5
I have used several different STM32 devices over the years, but never experienced this problem. It´s simple: I cannot get the ADC´s on th H5 series to work. Is there anyone who can suggest (low level without STCubeMX etc.) the folloeing two functions for STM32H562 ?
"void ADC1_init(void) {}" and
"unsigned short read_ADC1(char) {}"
-
Hi Rolf,
I used "File | Import | Eclipse Project" on the
STM32CubeH5\Projects\NUCLEO-H563ZI\Examples_LL\ADC\ADC_SingleConversion_TriggerSW_IT_Init\STM32CubeIDE
which seems to work (the wait_loop_index needs to be made volatile but doesn't seem to matter). Note that you'll need to delete the "." dynamic folder when the project has been created.
This example seems to boil down to a series of register writes which may help out.
Looks like viewing the ADC1 register group in the registers window is accessing a read-sensitive register....
Regards
Michael
Please sign in to leave a comment.
Comments
1 comment