Aslema @MalekKhadhraoui
For the MCU included on the board, it has only internal clock source such as HSI(High speed internal) frequency and LSI(Low speed internal) frequency. For external Clock sources HSE and LSE, you need to add them on your design if your are using one of them on your project as clock source for a peripheral, for system clock,… For our ST Nucleo, Disco is and Eval boards you should check the schematic of the board to see if the HSE or LSE Source clock are fitted on the board or not. HSI is the default system clock source. But you can change it to HSE, HSE PLL or another source (MSI if available). That depends on the requirements of your system about precision, … More details are on haw system clock works are available in this two parts article.
HSE Value depend on the source you fitted on your board that’s why you should set the value on CubeMX manually depending on your source.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.