2020-10-06 06:15 AM
2020-10-06 06:30 AM
You cannot create an IOC file from source code.
2020-10-06 07:32 AM
Ok. There's another solution? Can I set the IOC file in other way (observing the code, for example), and after upload the c code in my project?
2020-10-06 07:50 AM
2020-10-06 07:53 AM
The .ioc is only needed (once) for code generation by STM32CubeMX. There can be valid projects without .ioc. If the project was once generated from an .ioc that is now missing - I'm not aware of a reverse tool re-generating that .ioc from source code.
2020-10-06 08:28 AM
How can I copy the code in the IOC file?
2020-10-06 09:07 AM
No, you create an empty project for your chip, configure the .ioc accordingly and the copy the existing source files (after a careful review!) into that new project.
2020-10-07 08:56 AM
Ok, I've tried to do as you said. I've created an empty project in this way:
After, for the code, I clicked File -> Import -> Archive file. I can see correctly the code in the project explorer, but, when I build the project, I receive 10 errors. What am I wrong?
2020-10-07 09:11 AM
I don't know your code, I don't know the error messages, so I cannot anser your question, sorry.
2020-10-08 09:18 AM
Hi @SSpad.1 ,
Examples with .ioc files are already available for STM32G4 and STM32G0. You will find them in the STM32CubeG4 and STM32CubeG0 packages.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.