cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G4 SPI: wrongly set LL_DMAMUX_SetSyncRequestNb after LL_DMAMUX_EnableSync

DR1001
Associate II

STM32G491

Code generator generate wrong order of calls for SPI initialization for LL driver: LL_DMAMUX_SetSyncRequestNb  calls after LL_DMAMUX_EnableSync

7 REPLIES 7
Souhaib MAZHOUD
ST Employee

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.

Please find atached the ioc-file

I think you forgot to attach the IOC file. I don't see one.

If you feel a post has answered your question, please click "Accept as Solution".
DR1001
Associate II

Hello,
Ok, I attached it to e-mail - but is seems like e-mail attaches do not pass the filters...

Please find attached...

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.

Hello,

According to the documentation:

image.png

 

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.