Order of disabling in `HAL_TIM_IC_Stop_DMA` function
ali-rostami opened this issue Β· 10 comments
Hi
Take a look at this topic I opened.
It seems that it's better to change the order of disabling in HAL_TIM_IC_Stop_DMA
function.
what do you think?
Hi Ali,
Thank you for reporting this issue. The description on the Forum gives a quite good overview of the case you are describing. However, some details needed by our development teams are still lacking (e.g. firmware revision, IDE, compiler version). Would you mind providing them here?
You could find the exhaustive list in the template that displays when you open a new issue. Thank you in advance for your collaboration.
With regards,
Hi dear ALABSTM
thanks for your reply. OK, here it is:
Describe the set-up
- The board: my custom board
- IDE or at least the compiler and its version: Keil v5.28a, ARM compiler
Describe the bug
As described in the previous comment.
How To Reproduce
- Indicate the global behavior of your application project
When I use channel1 of timer1 as the input capture, and also define it as a master of timer3 so then I can get the number of captures by the counter of timer3. there is a difference between the number of captured data and the counter of timer3. - The modules that you suspect to be the cause of the problem (Driver, BSP, MW ...)
The body ofHAL_TIM_IC_Stop_DMA
function. - The use case that generates the problem
In the body ofHAL_TIM_IC_Stop_DMA
, as at first, it tries to disable the DMA and then disable the input capture channel. so this leads to have a fewer captured data by DMA than the counter of timer3.
Hi Ali,
Thank you for all these details. Your issue will be forwarded to our development teams to be analyzed. We will be back to you as soon as we get an answer. Thank you in advance for your patience.
With regards,
Hi Ali,
Thanks for pointing out this issue.
I confirm that TIM capture should be disabled prior stopping the DMA transfers.
This issue will be fixed in further release of the HAL TIM driver.
FVISTM
ST Internal Reference: 84694
Thanks for pointing out this issue.
I confirm that TIM capture should be disabled prior stopping the DMA transfers.
This issue will be fixed in further release of the HAL TIM driver.FVISTM
Hi
So great, your welcome. π
Hi @ali-rostami,
The TIM HAL driver has been fixed based on what you reported and the new version is now available in the frame of the STM32CubeF7 v1.16.1 published a couple of days ago. Thank you again for your contribution.
With regards,
Hi dear @ALABSTM
Glad to hear that. thanksππ
I almost forgot it. -As you know it took more than a year to be fixed.π-
Anyway, I hope this process will get faster by letting the STM32 users send PR. which will get us closer too.π
Thanks again
Best regard
Dear @ali-rostami,
Good to read your comment.
Anyway, I hope this process will get faster by letting the STM32 users send PR. which will get us closer too.π
Regarding what you mentioned about pull-requests, we opened the door to such contributions about a year ago. We are looking forward to receiving yours soon.
With regards,
Regarding what you mentioned about pull-requests, we opened the door to such contributions about a year ago. We are looking forward to receiving yours soon.
Glad to hear that.
thanks π