2025-02-11 02:09 AM - last edited on 2025-02-11 05:20 AM by Sarra.S
Hello all,
I try to make a differential ADC-measurment with the Zephyr work. The console tells me, that "Differential channels are not supported", so I'm not sure what the problem is (Wrong config of the device-tree, missing config in proj.conf or wrong software". In my opinion this measurment should work.
I'm using the STM32H563RG and want to perform the measurment on PA0 (ADC1_INN1) and PA1 (ADC1_INP1)
proj.conf:
2025-02-11 06:23 AM - edited 2025-02-11 06:25 AM
Hello @Lukas4, welcome to ST community,
Looking at the ADC driver stm32h5xx_hal_adc.c , the driver does support configuring the ADC for differential measurements, as you can check, the mode is set (single-ended or differential) for the channel usingLL_ADC_SetChannelSingleDiff
Edit: Also, looking at the dts/bindings/adc/st,stm32-adc.yaml file, the zephyr,differential property is not explicitly defined in the binding documentation, so, unless you have added it manually to the device tree binding, the ADC drive won't be able to read zephyr,differentialproperty and configure the ADC channels accordingly.
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.