Skip to main content
SSpad.1
Associate II
October 6, 2020
Question

Hi, I am new to stm32. I downloded the source code of a stm32 project, but I don't have the configuration file .ioc and I can't create it. Can I create a stm32 project (and the configuration file too) starting from the source code?

..

This topic has been closed for replies.

11 replies

TDK
October 6, 2020

You cannot create an IOC file from source code.

"If you feel a post has answered your question, please click ""Accept as Solution""."
SSpad.1
SSpad.1Author
Associate II
October 6, 2020

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?

TDK
October 6, 2020
You can create a new IOC file and copy the code over. If the original project was generated from an IOC file, this should be quite manageable.
"If you feel a post has answered your question, please click ""Accept as Solution""."
KnarfB
Super User
October 6, 2020

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.

Amel NASRI
ST Technical Moderator
October 8, 2020

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 "Best Answer" on the reply which solved your issue or answered your question.
SSpad.1
SSpad.1Author
Associate II
October 9, 2020

Hi Amel, I work with STM32F103C8T6, and with STM32CubeIDE 1.0.2. Where can I find these example that I said?

Amel NASRI
ST Technical Moderator
October 9, 2020

Unfortunately, no such examples for STM32F1. They are available only with new products (G0 & G4).

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.