2025-08-11 9:56 AM
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?
2025-08-11 10:15 AM
Can you include the IOC file?
Generally, the "*_template.c" files shouldn't be compiled as-is and aren't included in CubeMX output.
2025-08-11 10:41 AM