HI
in attachment you will find the version with the clock set at 48 mhz
I don't have the card to test but it should go.
Furthermore, if the speed was still not sufficient I solved it by changing the clock source from internal (HSI) to external (HSE)
I use the external 32 MHz HSE clock
You can get a further increase in performance by changing a compiler parameter, but we will discuss this after the tests.
I am also attaching the link from which you can download the excel sheet you stm from which you can obtain the clock parameters
https://www.st.com/en/development-tools ... 32088.html
Regards