2022-03-28 10:22 AM
MCU:https://www.st.com/en/motor-drivers/stspin32g4.html#overview
Evalboard: https://www.st.com/en/evaluation-tools/evspin32g4.html
Solved! Go to Solution.
2022-03-29 03:55 AM
"Does the HSE depend on the internal clock frequency of 170 MHz?"
It is not the HSE that depends on the internal frequency, it is the opposite: The internal frequency of 170 MHz can be obtained from the 24 MHz frequency of the HSE and the internal PLL, which multiplies the frequency.
If you want to use the PF0/PF1 pins as GPIO, you must configure the system clock to use another clock source, such as the HSI.
Use CubeMX to interactively explore the clock configuration of the G4, and look at the alternate functions of PF0 and PF1.
2022-03-28 10:43 AM
If you don't need the HSE as a clock source, yes you can repurpose those pins as ADC inputs.
I can't imagine timing needs of typical applications of that board to be very precise, but you will need to make that determination for yourself.
2022-03-28 02:22 PM
Does the HSE depend on the internal clock frequency of 170 MHz? Because the HSE is only 24 MHz. So what as example will decrease?
2022-03-28 02:32 PM
2022-03-29 03:55 AM
"Does the HSE depend on the internal clock frequency of 170 MHz?"
It is not the HSE that depends on the internal frequency, it is the opposite: The internal frequency of 170 MHz can be obtained from the 24 MHz frequency of the HSE and the internal PLL, which multiplies the frequency.
If you want to use the PF0/PF1 pins as GPIO, you must configure the system clock to use another clock source, such as the HSI.
Use CubeMX to interactively explore the clock configuration of the G4, and look at the alternate functions of PF0 and PF1.
2022-03-30 03:13 AM
With the CubeMX it was possible to use the internal HSI and with the right adjustement of the dividers, it was possible to keep 170 MHz.Thanks :)