cancel
Showing results for 
Search instead for 
Did you mean: 

stm32g4xx_ll_rcc.c is not being added when RCC is switched from HAL to LL

CTapp.1
Senior III

I've got a project that's being developed using STM32CubeIDE  V 1.18.1

I've switched from using HAL to LL for the RCC, but the stm32g4xx_ll_rcc.c file is not being added to the project (though stm32g4xx_ll_rcc.h is added) - which means that calls to LL_RCC_DeInit() result in a link failure.

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @CTapp.1 

Thank you for your detailed explanation; it is greatly appreciated.

The issue has been forwarded to the development team for resolution.
Internal ticket number: 214188 

THX

Ghofrane 

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.

View solution in original post

6 REPLIES 6
Ghofrane GSOURI
ST Employee

Hello @CTapp.1 

Could you please provide your IOC in order to push further the investigation.

THX

Ghofrane

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.

Hi @Ghofrane GSOURI,

Attached, as requested.

Hello @CTapp.1 

Your cooperation is greatly appreciated.

I am currently investigating this and will get back to you as soon as possible.

THX

Ghofrane

 

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.

Hello @CTapp.1 

Thank you for your detailed explanation; it is greatly appreciated.

The issue has been forwarded to the development team for resolution.
Internal ticket number: 214188 

THX

Ghofrane 

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.

CTapp.1
Senior III

I've copied the file in from another project to get me going - though I'll have to keep restoring it if I regenerate as it gets removed ;)

Hello @CTapp.1 

That’s a great workaround :) 

Rather than copying your file directly into the CubeMX-generated folder, place it in a separate directory within your project. Then, add this directory and its files to your project’s build settings (including the include paths and source files). By doing so, your files will remain intact and won’t be deleted when you regenerate the code.

THX

Ghofrane

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.