Slammer wrote:The Nucleo F103RB board uses 8MHz HSE EXT (External Input Clock) generated from the other MCU on board. It is possible to change a bit the clock initialization function to use both HSE sources, eg. to try first with HSE_EXT and if this fails to try again with HSE_XTAL, with this trick the same code will work in Nucleo and other boards with external crystals.
The Nucleo L476RG is different story. The HSE_EXT connection is disconnected on the board, the MCU uses the new internal clock MSI (it is like HSI but much more stable and accurate) at 4 MHz.