2017-10-11 06:09 AM
In summer 2017, I started an project with the STM32F767 on the Nucleo board, because the H743 was still announced but not available. For some weeks I got the new Nucleo board of the STM32H743.
After I transferred the code from the F767 to the H743, I recognized the not working DMA interrupt. The DMA interrupt was working on the 767 perfectly. So I reduced the code of the F767 and the H743 (by using cube) to only this function for see what�s the difference.I can�t see, why the interrupt for the DMA at the STM32H743 is not working!
Have somebody done something like this already and was successful?
I put both projects for Cube and the AC6 workbench to the attachment. Hope somebody can help me.
BR Volker
#stm32h743 #stm32h7Solved! Go to Solution.
2017-10-12 04:00 AM
Would be helpful to have some working HAL examples from ST.
I have the same problem with Ethernet.
2017-10-12 04:14 AM
Hi Joerg,
thanks for your spending time. I already also read your problem with the Ethernet.
Maybe there is a bug in the init of the DMA process.
I also not understand, why the cube not automatically reserves a D2 Ram domain for DMA transfer.
- Volker -
2017-10-12 05:00 AM
Problem solved !
Two things have to be observed:
ADC_CONVERSIONDATA_DR;
have to change to: hadc1.Init.ConversionDataManagement =ADC_CONVERSIONDATA_DMA_CIRCULAR;
If only this done theHAL_DMA_IRQHandler(&hdma_adc1);
appears and run intohdma->ErrorCode |= HAL_DMA_ERROR_TE;
--> this already can be done in the Cube definition
Than
HAL_DMA_IRQHandler(&hdma_adc1)
calls voidHAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
{and all work fine.
- Volker -
2017-10-12 07:03 AM
Congrats.
2017-10-12 07:27 AM
+1
2017-10-29 12:41 PM
Bremauer.Volker
This looks like a very nasty bug in the Cube, took me almost a day to track this one down. Found the solution in this thread eventually
I noticed that after modifying the linker script, the link stage takes way longer. Do you get the same thing?
Thanks,
Evgeny
2017-10-30 01:10 AM
Hi Evgeny,
I did not pay attention to that.
So I can not tell you if something has changed.
BR Volker
2017-11-06 07:45 AM
Hey
Bremauer.Volker
,Have you, by any chance, experimented with BAM mode? To have D3 inDRun (ADC3+BDMA) while D1/D2 in DStandby?
Thanks,
Evgeny
2017-11-07 01:47 AM
Hey Evgeny,
sorry no, not needed
BR Volker
2018-06-05 04:40 AM
Hi Volker, could you outline briefly what were the 'source file changes' for the memory location definition?
Thank you.