2024-10-30 04:24 AM
I AM USING STM32F407G-DISC1 BOARD FOR DEVELOPING CUSTOM BOARD.HERE AN OSCILLATOR IS CONNECTED TO PH1 AND PH2 PINS. IS IT IS COMPALSORY FOR DEVELOPING CUSTOM BOARD?
2024-10-30 04:34 AM - edited 2024-10-30 06:59 AM
From the datasheet:
Clock, reset and supply management:
STM32 MCUs always boot with the internal 16MHz oscillator and in the system init the optional external oscillators and the internal PLLs can be turned on.
If the accuracy of the internal oscillator is good enough for your application you do not need an external crystal or oscillator. If it is not accurate enough you may need to do some calibration or opt for an external crystal or oscillator.
If you decide to use a crystal be sure to check the load capacitance of the crystal as the maximum drive strength of the MCU oscillator pins may not be strong enough to drive the crystal. This depends on the family of the MCU. Set the drive strength to the proper level with STM32CubeMX.
2024-10-30 05:16 AM - edited 2024-10-30 05:19 AM
PLEASE DON'T SHOUT!
@rohithinthingstech wrote:AN OSCILLATOR (sic) IS CONNECTED TO PH1 AND PH2 PINS.
No, that's not an oscillator - that is just a crystal.
@rohithinthingstech wrote:IS IT IS COMPALSORY FOR DEVELOPING CUSTOM BOARD?
No - as @unsigned_char_array explained, it depends on the requirements of your particular application.
You should also study Application note AN4488, Getting started with STM32F4xxxx MCU hardware development:
Probably also worth reviewing the other Application Notes available on the STM32F407VG Product Page:
https://www.st.com/en/microcontrollers-microprocessors/stm32f407vg.html#documentation