2024-03-25 08:44 PM
Hi,
I'm creating a Keil project (uVision V5.36.0.0) for a STM32H563ZITx target using the reference https://developer.arm.com/documentation/ka003120/latest/
After choosing STM32CubeMX under Run time Environment settings and generating the gdsc file from CubeMX and pasting it manually where the Keil project requires it to be present, I see that the project now has 'STM32CubeMX:Common Sources' section.
I want to delete main.c from Common sources and use my own source file but I am unable to delete the files under this group. Does anyone know how to resolve this?
Solved! Go to Solution.
2024-03-28 08:51 AM
Exclude the unwanted main.c from build. Add your own file that contains main() function somewhere.
2024-03-28 04:53 AM
I would benefit from the answer to this question a lot as well.
2024-03-28 08:51 AM
Exclude the unwanted main.c from build. Add your own file that contains main() function somewhere.
2024-03-31 08:50 PM
Thanks. But I want to remove the .ioc file too. Actually, I would like to know the purpose of that file.
2024-04-01 12:00 PM
Purpose of the .ioc file? Hmm... Yes you can just remove it. The Keil IDE won't mind.
2024-04-02 08:17 PM
Keil (.36.0.0) does not allow to delete STMCubeMX:Common sources group or its members. So I excluded the main.c from the build and put a dummy .ioc file.
Thanks for your response.