cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to generate code from ioc file

Rohit007
Associate III

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.

13 REPLIES 13
Rohit007
Associate III

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.


@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.

> 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".
Alex307
Associate II

Yes, I've run into this before — sometimes the code doesn't rebuild properly if the project isn't refreshed. Try cleaning the project and rebuilding the code from STM32CubeMX or STM32CubeIDE. This usually fixes it.