2020-01-09 04:29 AM
Hello,
I am interested in providing an external (high-speed) clocking source to the board - provide 10 MHz clock signal from an external signal generator, via I/O port.
As i read in page 25 of STM32 Nucleo-144 boards user manual, I made properly the soldering configurations according to the "Oscillator from external PF0/PH0" system clock's way of configure.
I'm using stm32cubemx software's GUI to set the pinout and clock configurations, so Iv'e considered the software configurations:
Iv'e selected BYPASS clock source on HSE mode (I noticed that PH0 pin marked as "RCC_OSC_IN" and PH1 pin marked as "RCC_OSC_OUT" on the pinout). additionally, Iv'e inserted the frequency of the clock that i provided, and selected HSE at the system clock mux on clock configurations.
Iv'e also selected MCO1 output to show SYSCLK (as an indication) and ensued that 'HSEBYP' and 'HSEON' bits (RCC_CR register) value is '1'.
For an unclear reason, when I checked "HSERDY" bits on "RCC_CR" register, it stays steady on '0' value and SYSCLK stays along the HSI 16MHz clock.
It is important for me to emphasize that the clock signal that I provided was steady at 10 MHz and met the requirements outlined on page 122 of STM32F746xx datasheet.
Thank you
2020-01-10 01:17 AM
Some of us (who have been around a long time) are suspicious when someone says "I've read the documentation and done everything it says". Because we know all too well how easy it is to only read part of the documentation and miss a vital bit that's elsewhere in the documentation.
So, in order to avoid this going round in circles a few times and to save the time and effort of fellow hobbyists who volunteer our time to help, please tell us:
What do you have in RCC->CFGR SW1, SW0, SWS1, SWS0? If SW is ste to HSE, then that might prevent you from selecting HSE Bypass mode.
Regards,
Danish
2020-01-12 01:58 AM
2020-01-12 02:26 AM
2020-01-12 09:26 AM
First test it with a basic register level code, not HAL/CubeMX generated bloatware.
2020-01-12 09:31 AM
Can't say I've tried it on the NUCLEO-F746 , but have run one of the L4 NUCLEO-144 boards using a 30.72 MHz external source.
If you have a bypassed source, you probably don't need to wait for it to come ready. ST's code might be broken. I've seen L0 parts not recognize sources >=32MHz
You could pipe the clock out of the MCO pin and check that it is behaving as expected, without using it to drive the PLL or the MCU as the primary clock.