cancel
Showing results for 
Search instead for 
Did you mean: 

Switching STM32C011F4U6TR to STM32C071G8U6 - many errors

kzsd
Visitor

Hi

I am trying to switch a project from one MCU to the another. I made a new IOC file in MX and then replaced the existing IOC file in my IDE project with my fresh file. The overall configuration is identical except for the pinout, and I use a mix of HAL and LL libraries. The Drivers folder is giving me a boat-load of errors, but all of my user code seems to be fine.

I have tried cleaning/rebuilding the project, starting fresh with just the new IOC file, deleting the Drivers folder, saving and regenerating code, and more. The errors won't go away. I have attached the output.

What can I do to fix this? Are there any common mistakes or recommended fixes for this situation?

2 REPLIES 2
TDK
Super User

Can you include the IOC file?

 

Generally, the "*_template.c" files shouldn't be compiled as-is and aren't included in CubeMX output.

If you feel a post has answered your question, please click "Accept as Solution".
kzsd
Visitor

If the IDE is deciding to include these files, maybe it's a bug then?