2016-09-15 02:01 PM
2016-09-16 07:55 AM
2016-09-16 11:45 AM
2016-09-16 11:55 AM
Hi ipri.nicholas.002,
I recommend to get help from the ADC examples in the STM32CubeF3. Compare the code there with your code to gigure out what is missed there. -Hannibal-2016-09-16 12:08 PM
My code looks to be consistent with the examples I've looked at (so far)
2016-09-16 01:44 PM
// __HAL_ADC_ENABLE(&hadc1);
// while (__HAL_ADC_GET_FLAG(&hadc1, ADC_FLAG_RDY) == RESET); __HAL_ADC_ENABLE_IT(&hadc1, ADC_IT_EOC);2016-09-19 07:12 AM
So far, the code examples I have found in cube, or online are of little to no help although I am following them faithfully while also following UM1786 Since I am on a short development schedule, I will probably move onto using a different processor
2016-09-20 08:34 AM
FWIW: The solution was to rename ADC_IRQHandler() to ADC1_IRQHandler(). The majority of online examples I've seen use the former. Also, the STM32CubeMX tool code generator for the ADC does not seem to allow for the enabling and handling of interrupts.