2010-09-23 2:09 AM
EOC not set when attempting to manually read ADC
2011-05-17 5:08 AM
Strange:
I first change these things:Instead of using ADC_SoftwareStartConvCmd(ADC1, ENABLE);
I changed code to: ADC1->SR = ~(u32)ADC_FLAG_EOC; ADC1->CR2 |= 0x1; // ADC Messung starten and there this: // Wait until conversion completion //while(ADC_GetFlagStatus(ADC1, ADC_FLAG_EOC) == RESET); // while(ADC1->SR & ADC_FLAG_EOC == 0); Then this seemed to work, it got through the loop... But I changed back the code to the lib functions, and now that works, too, like from what I remember to have been the case yesterday! (I did clear target, build all, and manually uploaded to device, just to be sure!) This is rather odd.We’re moving the ST Community to a new platform to give you a better and more reliable community experience.