Code crashing due to ADC Sync operation ( STM32F4 ) #52853
Unanswered
bhardadinesh-eaton
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Converting to discussion as it sound rather as a question on ADC API. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For ADC, We have used Sync operation for our application. Based on the timer, we are taking samples for the ADC. If we do some other operation like I2C data transfer during ADC operation. sometime, code getting crashed ( STM32F4 )
After Debugging, Came to know there is one API called adc_context_wait_for_completion() in adc_stm32.c ( zephyr-v3.0.0\zephyr\drivers\adc ) is taking some more time. Due to that, if any other operation start, It is crashing the code. Is there any suggestion, what should do to overcome this issue.
Beta Was this translation helpful? Give feedback.
All reactions