Skip to main content
YYuan.1
Associate
August 19, 2022
Solved

BLE_HeartRateFreeRTOS Project can not be complied after updating the USART1 Pin configuration by Device Configuration Tool in STM32CubeIDE

I downloaded the STM32WB MCU Fw pack through  https://github.com/STMicroelectronics/STM32CubeWB.git.

Then, I used STM32IDE v 1.10.1 to compile BLE_HeartRateFreeRTOS project. It is complied successfully.

Then, I used Device Configuration Tool to update the Pins for USART1 to PA9 and PA10 by accessing BLE_HeartRateFreeRTOS.ioc in the IDE. Besides this change, I had no other changes in Device Configuration Tool.

After I saved the change, the code was automatically updated. However, when I complied it again, it shows a lot of errors as the attachment.

I do not expect the change of Pins configuration will cause the whole project fail to compile. I also attached the git diff after the Device Configuration Tool change the code for the analysis.

Any comments are welcome!

Thanks!

This topic has been closed for replies.
Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
August 22, 2022

Hello,

Indeed, when you regenerate the BLE_HeartRateFreeRTOS 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_HeartRateFreeRTOS\STM32CubeIDE folder and then regenerate the project using CubeMX.

Best Regards

2 replies

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
August 22, 2022

Hello,

Indeed, when you regenerate the BLE_HeartRateFreeRTOS 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_HeartRateFreeRTOS\STM32CubeIDE folder and then regenerate the project using CubeMX.

Best Regards

YYuan.1
YYuan.1Author
Associate
September 6, 2022

Thanks. It is working now.