cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo U5A5ZJ-Q RCC Configuration

bdeming155
Associate

This is my first STM32 project and I am using the Nucleo U5A5ZJ-Q with CubeIDE version 1.15.0. I am trying to use the generated code to toggle the LEDs as a simple "hello-world" example. When I create a new STM32 project in CubeIDE, I take the following steps shown in the screenshots below. When I go to generate the code, I get a warning about the RCC peripheral being incorrectly configured (shown below).

Screenshot 2024-03-27 at 10.24.59 AM.png

Screenshot 2024-03-27 at 10.25.28 AM.png

Screenshot 2024-03-27 at 10.25.51 AM.png

I generate the code anyways, and when I navigate to the pinout & configuration window, I see that CRS SYNC has a conflict with PA10.

Screenshot 2024-03-27 at 10.28.34 AM.png

Screenshot 2024-03-27 at 10.31.03 AM.png

When running the auto generated main.c program, an error is thrown on line 170 in SystemClock_Config() in main.c.

Screenshot 2024-03-27 at 10.32.42 AM.png

I am currently working through the documentation, but any suggestions on what might be going wrong here would be appreciated. Note I have not changed the code or the pinout configuration at all up to this point , this is the default state when the project was created.

3 REPLIES 3
kalak
Associate II

Hi, perfectly the same issue with the same process in STM32CubeIDE Version: 1.16.0 (on Windows), but without the warning during the code generation. Any suggestion, please?

 I wound up using an "example" shown here. This generated code worked out of the box for me. Good luck!

Screenshot 2024-08-01 at 9.15.04 AM.png

Thanks bdeming155, I fixed the issue by commenting some init after the HAL_Init() because I checked it was redundant: in this way it worked.

kalak_0-1722586908594.png

For sure I will check also those examples. Thanks!