Skip to main content
Associate III
August 28, 2025
Question

Unable to generate code from ioc file

  • August 28, 2025
  • 4 replies
  • 755 views

Hi,

I’m working with an .ioc file to generate functionality, but the changes I make in the .ioc file are not being reflected in the generated code. I can see the updates inside the .ioc file itself, but the code generation does not apply those changes.

Has anyone faced this issue before or knows why this might be happening? Any suggestions would be greatly appreciated.

4 replies

TDK
Super User
August 28, 2025

Include the IOC file so it can be looked at. You could be looking at the wrong file or file in the wrong directory.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Rohit007Author
Associate III
August 28, 2025

@TDK how and were to include the IOC file. I can't upload the IOC file. Apologies, but I can't upload the IOC file here.

mƎALLEm
Technical Moderator
August 28, 2025

Hello,

For such kind of question, you need to provide more details: You started the project from CubeMx or CubeIDE? which version? which platform? 

Need also to attach at least the ioc file so we can reproduce the behavior.

"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."
Rohit007Author
Associate III
August 28, 2025

@mƎALLEm apologies, but I can't upload the IOC file here. But for information I am using the cubide with stm32goc1ret6n board.

mƎALLEm
Technical Moderator
August 28, 2025

@Rohit007 wrote:

@mƎALLEm apologies, but I can't upload the IOC file here. 


Why?

Hard to support you efficiently if we can't reproduce the behavior.

 


@Rohit007 wrote:

 But for information I am using the cubide with stm32goc1ret6n board.


Still didn't provide the information needed:

 You started the project from CubeMx or CubeIDE? which version? which platform (WIndows/Linux/MacOS)? 

"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."
Rohit007Author
Associate III
September 29, 2025

@TDK 
is there any way to solve this problem as i cant reset the structure.

TDK
Super User
October 6, 2025

> is there any way to solve this problem as i cant reset the structure.

Adjust your programming style to conform with how STM32CubeMX operates.

You'll tire out fighting the current, and you won't get very far.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Rohit007Author
Associate III
September 29, 2025

i need to keep the structure the same as right now and but need that any changes done in ioc file gets reflected to the the folder. isn't there any way to customise the Src and Inc folder location.

Andrew Neil
Super User
September 29, 2025

@Rohit007 wrote:

isn't there any way to customise the Src and Inc folder location.


I don't think so.

Best (IMO) way is just to keep all your own code out of those folders

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.