Why does the MDMA not work properly when a new variable is defined?
- November 2, 2021
- 2 replies
- 1475 views
Hi everyone! I have recently developed a firmware in STM32CubeIDE for my STM32H743ZIT6 that implements a Spi communication with an external ADC using the DMA and MDMA.
The code works fine but now I have noticed that the MDMA does not call anymore the callback "MDMA_RepBlockCompleteCallback" when I define a new variable.
Please refer to the attached picture:
A) The MDMA stops working when "variable1" is defined (line 88) and set to 1 (line 214). This variable has been created just for the purposes of this test and it is not used elsewhere in the code apart from lines 88 and 214.
B) if I comment out the "variable1" definition and initialization, everything works fine again.
Do you know why there is this problem and how can I solve it?
I also use the MPU, if this can help. Please let me know if you need another part of the code or file to debug this problem.
Thanks,
Andrea