2026-03-26 3:14 AM - last edited on 2026-03-26 3:19 AM by Andrew Neil
STM32G491
Code generator generate wrong order of calls for SPI initialization for LL driver: LL_DMAMUX_SetSyncRequestNb calls after LL_DMAMUX_EnableSync
2026-03-26 3:17 AM
Hello @DR1001
Thank you for posting!
Could you please add an ioc for further investigation?
KR, Souhaib
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-03-26 3:22 AM
2026-03-26 5:21 AM
I think you forgot to attach the IOC file. I don't see one.
2026-03-26 5:25 AM
2026-03-27 3:30 AM
Hello @DR1001
The initialization sequence generated by STM32CubeMX for DMAMUX synchronization is functionally correct and safe. LL_DMAMUX_SetSyncRequestNb() only programs a configuration field and does not rely on synchronization being enabled beforehand. In a typical startup sequence, the DMA channel is not yet active and no meaningful sync events are processed while these registers are being configured, so the exact order of these two calls has no impact on runtime behavior.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-03-27 3:34 AM
Hello,
According to the documentation:
2026-04-01 2:57 AM
Hello @DR1001
Thank you for your valuable contribution,
This issue has been raised internally to the dedicated team for review. (Ticket #0061235 This is an internal tracking number and is not accessible or usable by customers)
KR, Souhaib
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.