Skip to main content
Bj.1
Associate II
Sep 9, 2020 4:56 PM UTC
Solved

ADC conversion starts with first event and then continuously happening without timer event

I have configured STM32h743ZI with below Settings:

ADC1 with trigger set to tim1 update event

DMA to transfer from ADC to memory

Disabled continuous conversion

Problem:

I want the ADC to sample every 50us (TIM1 configured to 50us)

but conversion starts with first event and then continuously  happening without timer event

This topic has been closed for replies.
Bj.1
Bj.1Best answer
Associate II
Sep 13, 2020 4:35 PM UTC

thank you guys

i found the problem through this post: https://community.st.com/s/question/0D50X00009XkYS5/i-cant-make-timer-stop-while-debuging

Problem: Timer was not halted while i am debugging

5 replies

waclawek.jan
Super User
Sep 9, 2020 5:16 PM UTC

> continuously  happening without timer event

How do you know?

Read out and check/post content of ADC registers.

JW

Bj.1
Bj.1Author
Associate II
Sep 9, 2020 5:24 PM UTC

i kept break point in timer event and in transfer complete callback

so the break point in transfer complete callback gets hit continuously

TDK
Sep 9, 2020 7:02 PM UTC

Really hard to provide useful feedback without many details.

Even if the ADC is running continuously as you claim, the timer event should still happen.

One possibility is that the CPU is swamped.

"If you feel a post has answered your question, please click ""Accept as Solution""."
waclawek.jan
Super User
Sep 9, 2020 7:24 PM UTC

Read out and check/post content of ADC registers.

> Even if the ADC is running continuously as you claim, the timer event should still happen.

Indeed.

JW

Bj.1
Bj.1AuthorBest answer
Associate II
Sep 13, 2020 4:35 PM UTC

thank you guys

i found the problem through this post: https://community.st.com/s/question/0D50X00009XkYS5/i-cant-make-timer-stop-while-debuging

Problem: Timer was not halted while i am debugging