stbenn opened a new pull request, #15025: URL: https://github.com/apache/nuttx/pull/15025
Add an option to use HSE on the Nucleo-H563ZI with board modification. This is enabled through board Kconfig. It supplies the same PLL output frequencies using the HSE instead of HSI, for significantly more precise clocks. *Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary The HSE is required for peripherals/applications requiring precise clocks (where HSI is not sufficient). The Nucleo-H563ZI comes with a 25 MHz, 20ppm HSE but requires board modification to enable. For users that have done the modification (See below), this change provides a Kconfig option to use the HSE instead of the HSI, without changing the system clock frequencies. Board Modifications to use HSE: - SB3 and SB4 ON - SB49 OFF - SB48 and SB50 OFF (Default) - C69 and C70 ON, populated with 5.6 pF capacitors (Default) This change also updates the `nucleo-h563zi:nsh` configuration to use the proper `LOOPSPERMSEC` value, calibrated with the nsh utility. ## Impact - Add easy HSE configuration for boards with proper board modifications - PLL output frequencies are the same as HSI configuration, so should not affect peripheral clock setup - Update `nucleo-h563zi:nsh` config with better `LOOPSPERMSEC` value (matches `adc` config) ## Testing Checked that nsh configuration worked, and verified the baud rate remained unchanged from HSI configuration. Verified the RCC registers were set as expected. Host OS: Ubuntu 24.04 on WSL2 (Windows 11) Compiler: arm-none-eabi-gcc (15:13.2.rel1-2) 13.2.1 20231009 Target: - Arch: STM32H5 - Chip: STM32H563ZIT6U - Board: Nucleo-H563ZI - Config: nucleo-h563zi:nsh -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
