Chip: STM32L030 Trying to calibrate the ADC at startup with the following code into the initialization procedure: ADC1->CR |= 0X80000000; // calibration started while (!(ADC1->ISR & 0X800)); // waiting for the calibration to finish When...
Thanks for the advice! Since Atollic is dead and only STM32 is being updated, I wish to use STM32.The only problem, for the time being , is with the ADC calibration which I don't need. In my project the ADC is used to monitor a PIR device for motion ...
> 1 - Sorry, my mistake, the chip is STM32L010F4P6> 2 - Clearing all flags? good, this is what I want> 3 - ADCAL=0, ADSTART=0, ADSTP=0, ADDIS=0 and ADEN=0.: this is the RESET state> 4 - Please stop seeking what is wrong in the code: it works fine wit...
Thanks Piranha for your attention, but it doesn't help:1 - STM32L030F4P6 chip on my desk, and on my board!2 - Read-modify-write instructions? there is no such a warning in the datasheet. I also have separated them in 2 parts with no avail.3 - ADDIS: ...
At your request, here is my complete initialization code. I don't think it is very enlighting.int adsetup() { int n = 10000; // timeout RCC->IOPENR |= 1; // port A enabled GPIOA->M...