Skip to main content
Associate
August 10, 2026
Solved

STM32 Nucleo F446RE ADC IRQ handler not working properly

  • August 10, 2026
  • 8 replies
  • 99 views

I was testing stm32 adc interrupts but the IRQ is not working properly and idk what is the matter, I wasted a lot of time in debufgging it but didn’t get any leads. Please help me out, here is the link of the project:
GitHub Repo

Best answer by Andrew Neil

@vishwas1523 and the HAL and LL versions did work?

So compare and contrast your baremetal code with the HAL and LL versions ...

8 replies

Andrew Neil
Super User
August 10, 2026

Welcome to the forum.

What, exactly, does “not working properly” mean ?

  • What, exactly, were you expecting to happen ?
  • What, exactly, is actually happening ?
  • What testing/investigation/debugging have you done to find what’s going on?

Have you tried using one of ST’s provided examples ?

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate
August 10, 2026

I want ADC_IRQHandler to fire after EOC bit becomes one,
but it is firing after the first ADC_Read() function call and then not workingat all.

I am using cubeIDE so I checked all the necessary flags and bits and all are fine. It’s just that adc irq handler is not working.

 

Andrew Neil
Super User
August 10, 2026

Again, 

Have you tried using one of ST’s provided examples ?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
TDK
August 10, 2026

If you don’t have debugging skills, you should stick to using HAL functions rather than trying to rewrite them. Once you do that, you can compare your register settings against those that HAL sets.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate
August 10, 2026

Okayy got it