Skip to main content
Adrian Adamson
Senior
September 5, 2022
Solved

STM32WB55 example won't compile after minor CUBEMX modification

  • September 5, 2022
  • 2 replies
  • 1305 views

I would like to run the STM32WB55 BLE_TransparentMode on my custom application board, but first I need to re-assign the pins used for LPUART1. However, any code generation from CubeMX, even without making any modifications, causes hundreds of compiler errors including "multiple definition of main". In fact, every function has the error that there is a duplicate definition. I have tried cleaning the build, but I get the same problem. Shouldn't I be able to generate code from the example's CubeMX .ioc file that compiles? Is there some setting or method I can change to be able to make simple modifications to this example?

This topic has been closed for replies.
Best answer by Remy ISSALYS

Hello,

Indeed, when you regenerate the BLE_TransparentMode project for CubeIDE using CubeMX tool, there is build errors due to duplicate files inside CubeIDE project structure. To solve the issue, I recommend you to delete all files in BLE_TransparentMode \STM32CubeIDE folder and then regenerate the project using CubeMX.

Best Regards

2 replies

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
September 6, 2022

Hello,

Indeed, when you regenerate the BLE_TransparentMode project for CubeIDE using CubeMX tool, there is build errors due to duplicate files inside CubeIDE project structure. To solve the issue, I recommend you to delete all files in BLE_TransparentMode \STM32CubeIDE folder and then regenerate the project using CubeMX.

Best Regards

Adrian Adamson
Senior
September 6, 2022

Thanks for the fast response, that worked.