ADC not working on L4
Posted: Thu Jun 02, 2016 11:23 pm
Hi all, I am trying to get the ADC working on a L4 board.
As a simple test, I have tried running the code pyb.ADC(17).read() which should read the internal temperature sensor and return ~1600, but instead 0 is returned.
I have also tried reading the value of a pin, but this also returned zero. I had to add ,ADC12_INx to the appropriate lines in stm32l476_af.csv to get this to work though.
Any ideas?
Thanks, Matt
As a simple test, I have tried running the code pyb.ADC(17).read() which should read the internal temperature sensor and return ~1600, but instead 0 is returned.
I have also tried reading the value of a pin, but this also returned zero. I had to add ,ADC12_INx to the appropriate lines in stm32l476_af.csv to get this to work though.
Any ideas?
Thanks, Matt