cancel
Showing results for 
Search instead for 
Did you mean: 

Code Generation do not work

dkim.3
Associate II

Hi

 

I changed My GPIO name and clicked the Code generation.

But the pop-up window turned on and off in an instant, My code didn't change.

 

AND everytime I click the code generation button, I can see the phrase "isbadioc=false" in IOC file.

is it IOC file is not normal?

 

how can I fix this situation?

please give me some solution.

 

Thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Just try : make new project, only character in name, and no spaces, generate code ... for test.

or

close Mx , close IDE.

Then start IDE, open ioc and generate code .... might work.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

4 REPLIES 4
AScha.3
Chief III

Hi,

not much info, so just guessing:

maybe you give the pin a name (in Cube) , beginning with "not a character" symbol, like " - Vss " ->

That can totally confuse the CubeMx - never do it !  write always only characters in first place, like "Vss" .

(I did it one time - had to make new project with new ioc file . )

So try : make new project, only character in name, and no spaces (also in project name and all path names ! ).

If you feel a post has answered your question, please click "Accept as Solution".

Thank you for your reply.

 

But I used the name like you said.

Project name is also do like that.(I checked all path)

 

is there another reason??

Just try : make new project, only character in name, and no spaces, generate code ... for test.

or

close Mx , close IDE.

Then start IDE, open ioc and generate code .... might work.

If you feel a post has answered your question, please click "Accept as Solution".

Thank you, because of your advice (creating new project), I was finally able to solve the problem.

when I opened my new project, STMcubeIDE informed me that I need a firmware update to use the code generation tool!

I found that the F1 firmware is in a different Repository.(It only have F4....)

Now I can generate code!