You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently struggling to read all 4 main Channel from multiple ADC. I use a custom board file for a STM32F303CBT6 and more or less every thing works fine till I try to read the Multiplexed GPIOs on the ADCs. There are some problems that i am struggling with, one of them being that there is no example, where multiple channels are read. So I am not sure if I do it correctly and if that what I do is supposed to work with multiple channels.
One attempt that looked promising but failed.
Somehow the Stm crashes when i set the Interrupt for the second ADC Adc2::enableInterrupt(Adc2::Interrupt::EndOfRegularConversion);
Sorry for the long wait, I was busy with work/uni.
As far as I can see, the F303CB only has a shared interrupt ADC1_2.
The ADC API is wrong to allow you to set separate interrupt, they will overwrite each other. See issue #409.
The STM32 may crash or restart if an interrupt is not hooked correctly. It's unfortunate that there isn't a warning about providing the wrong handler. I'll try to see what I can do (it's difficult since this would need to happen at link time).
I believe @rleh has more knowledge of the ADC and perhaps this particular issue.
Sorry for the delay. I was busy studying for my exams, and now I have a lot of unread github notifications.
The STM32F303 series have the same ADC IP as the STM32G4 series, which I started adding modm support for. Maybe I have broken the STM32F303 ADC driver while adding STM32G4 support in 1ab7834 (#287)?
Could you check-out a modm version before 1ab7834 and check the problem?
While testing the STM32G4 ADC driver from #324 on real hardware, I encountered unexpected problems that I have not yet investigated in detail.
I am currently struggling to read all 4 main Channel from multiple ADC. I use a custom board file for a STM32F303CBT6 and more or less every thing works fine till I try to read the Multiplexed GPIOs on the ADCs. There are some problems that i am struggling with, one of them being that there is no example, where multiple channels are read. So I am not sure if I do it correctly and if that what I do is supposed to work with multiple channels.
One attempt that looked promising but failed.
Somehow the Stm crashes when i set the Interrupt for the second ADC
Adc2::enableInterrupt(Adc2::Interrupt::EndOfRegularConversion);
The text was updated successfully, but these errors were encountered: