2022-07-14 08:19 AM
The ADC and SPI use the DMA, but the CubeIDE initialize the DMA at last ant the SPI initialization fails. See screenshot.
CubeMX Version 6.6.1
Please fix this mistake. Attachment, the Screenshot.
The second problem: I cannot chage the "Rank" order from initialization.
The correct rank will be:
Other controllers like STM32G484 is the CubeMX code generation correct.
Solved! Go to Solution.
2022-11-28 06:43 AM
Hello @Markus Müller ,
This issue is fixed in STM32CubeMX latest release.
V6.7.0 is now available under this Link.
Thanks for your contribution :smiling_face_with_smiling_eyes:
Sara.
2022-07-14 10:32 AM
Yes, this is a known issue and will be (hopefully) fixed soon, see e.g. here.
Does it answer your question?
Regards
/Peter
@Sara BEN HADJ YAHYA
2022-07-14 10:53 AM
Yes, thank you very much.
We have temporary fix this mistake with a user code before MX initializations:
__HAL_RCC_DMA1_CLK_ENABLE();
Regards Markus
2022-07-14 03:33 PM
> see e.g. here.
But the OP has 6.6.1, a newer version. Regression?
2022-07-14 10:48 PM
Yes, this bus is present in V6.6.1. Please fix it.
2022-07-14 11:37 PM
This is also inexplicable to me, because I assumed that the problem had already been eliminated. But anyway, there are two ways to fix it:
Regards
/Peter
2022-07-14 11:54 PM
2022-07-14 11:57 PM
"because I assumed that the problem had already been eliminated"
No, the Problem is wihtin CubeMX 6.6.1 also pending. This mistakte is only fixed for a other µC.
2022-07-14 11:58 PM
"because I assumed that the problem had already been eliminated"
No, the Problem is wihtin CubeMX 6.6.1 also pending. This mistakte is only fixed for a other µC.
2022-07-15 01:05 AM
This is indeed an interesting behaviour, the small arrows are greyed out for DMA, among other things, as I was able to test just now. In a previous version, moving MX_DMA_Init was still possible. Our software team will take another look at this.
I'm very sorry, but until then, the only option is to insert it manually, as you have already done.
Regards
/Peter