2024-01-10 10:20 PM
Hi,
I am attempting to send AT commands via USART1 to an ESP8266-01 connected to my STM32L452RE Nucleo board. I am trying to initialize an HSE with the following settings:
And the following clock configuration:
My problem is that the code is stopping in the SystemClock_Config() function call in main.c, specifically here:
To troubleshoot this problem, I've tried:
Additionally i've tried the LSE in crystal mode, as well as LSE and HSE in bypass modes. I have also tried using the HSI, and the commands sent to my ESP-01 are not sent at all. (Note the commands are called from the function ESP_Server_Init() in main.c)
I'm relatively new into the world of embedded programming, so any help would be appreciated regarding my clock configuration to send the commands to my USART. My source code and ioc are attached.
Thanks!
Solved! Go to Solution.
2024-01-10 10:52 PM
AFAIK, on Nucleo-64 boards with STM32L series MCUs, by default there is no connection to HSE, so HSE cannot work at all.
You have 3 options:
1. Use MSI - its accurate enough for UART communication.
2. Use MSI synchronized to LSE (LSE scillator is usually present on STM32L4 boards.
3. Change the board configuration by resoldering the bridges, so that 8 MHz clock is routed from ST-Link to the MCU.
2024-01-10 10:52 PM
AFAIK, on Nucleo-64 boards with STM32L series MCUs, by default there is no connection to HSE, so HSE cannot work at all.
You have 3 options:
1. Use MSI - its accurate enough for UART communication.
2. Use MSI synchronized to LSE (LSE scillator is usually present on STM32L4 boards.
3. Change the board configuration by resoldering the bridges, so that 8 MHz clock is routed from ST-Link to the MCU.
2024-01-11 06:13 AM
The user manual goes into detail about the various HSE options available. See "6.7.1 OSC clock supply"
2024-01-11 07:10 AM
Hello,
From UM1724: