AnsweredAssumed Answered

STM32F302: Unable to set Register CR: ADSTART

Question asked by ebommer on Sep 30, 2014
Latest reply on Oct 2, 2014 by ebommer

I am trying to get the ADC working on a STM32F302 processor and I am noticing while single stepping the code is when I call” HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef* hadc)” and exercise the code the “CR"Register never changes:

if (__HAL_ADC_NONMULTIMODE_OR_MULTIMODEMASTER(hadc)   )
{
  hadc->Instance->CR |= ADC_CR_ADSTART;
}

I have read the manual and it states if the ADEN = 1 and the ADDIS = 0 and there are no pending ADC disable the bit should set.

 

 

Currently ADEN = 1 and ADDIS = 0, but I don’t see the value updated.


Outcomes