cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX DFSDM clock configuration for STM32H7

BFren.12
Associate

Dear community,

we want to enable the DFSDM1 module in SPI mode for the STM32H743ZI with the latest STM32CubeMX, Version 5.1.0 and the STM32Cube MCU Package for STM32H7 Series, Version 1.3.2 on MacOS.

If we understand it correctly, the internal DFSDM clock f_DFSDMCLK which is used to drive the DFSDM module is configured by the RCC block and is derived from the system clock SYSCLK or peripheral clock PCLK2. According to [1], this internal DFSDM clock must be at least 4 times faster than the external serial clock, whereas the external clock is limited to 20 MHz.

According to [2], the INTERNAL clock is NOT limited to 20 MHz like the external clock, but to SYSCLK. But after enabling the DFSDM module in STM32CubeMX with 100 MHz for PCLK2 and for the internal f_DFSDMCLK generation, we always get the attached frequency limit error in the STM32CubeMX clock configuration window. 

Is this a bug in STM32CubeMX or do we understand something wrong?

Thanks in advance and best regards.

Bernardo

References:

[1] STMicroelectronics: RM0433 Reference Manual - STM32H743/753 and STM32H750 advanced ARM®-based 32-bit MCUs, Rev 5, June 2018, p. 1102

[2] STMicroelectronics: STM32H743xI Data Sheet - 32-bit Arm® Cortex®-M7 400MHz MCUs, up to 2MB Flash, 1MB RAM, 46 com. and analog interfaces, Rev 5, July 2018, p. 176

2 REPLIES 2
BFren.12
Associate

Dear community,

short update: it really seems to be a problem with the STM32CubeMX/Firmware for the STM32H7. 

We configured the internal DFSDM clock f_DFSDMCLK manually to 100 MHz and the output clock with a prescaler of 5 to 20 MHz. Finally, we connected the 16-bit isolated Sigma-Delta Modulator AD7403 to the DFSDM input to measure a 10 Hz sinus test signal and measured the filtered signal every 50 us (20 kHz) inside a small bare metal scheduler. And that works perfectly right, please see the attached small code snippet and traced waveform. 

Best regards

Bernardo

wildfireheart
Associate II

Yes, it is a bug in Cube. Thank you for information, also dealing with this at the moment.