cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMx error

syedhashmiraza
Associate II

hello i downdload latest version but again this error will come when i press migrate or continue option after that iam updating my code in this code  goes to  error part. fix this problem.

 

Screenshot 2024-12-20 133438.png

31 REPLIES 31

According to my experience, if you migrate and get some error, it is due to differences between different FW releases.

But if you get an error with continue it is because 

A - you changed some line of FW code and system restores original version

B - you put some code outside /* USER CODE BEGIN */  and /*USER CODE END */ interval and again system deletes your code

Save a copy of all your C files with cx file suffix, than run migrate or continue, than compare (grep if you use linux) alla files an find what has changed - you will find one of two situations above.

Anyway, Marry Christmas!

hello, perivios question iam asking after migrate  a code when i generate  a code in that my code print error messege  

hello, perivios question iam asking after migrate  a code when i generate  a code in that my code print error messege  

Did you solve the issue of this message?:

message.png

This is the original question. 

Having an issue after it's an another story.

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.

no, in this when i migrate or continue a code after that i generate a code my code print error messege

Hi @syedhashmiraza ,

Please keep discussions of the same issue in the same thread, as this will be easier for forum users to follow the topic..

genrate code - STMicroelectronics Community

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

hello, when i migrate or continue a code after that i generate a code my code print error messege

 

Screenshot 2024-12-19 171230.png

Hi @syedhashmiraza 

 

What exactly did the error message say?

Rather post the full print error message, and the relevant ioc file.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

hello, Whenever I select the "migrate" or "continue" option and generate code, I encounter an error in the device_init function, saying "command failed." However, if I don't generate the code, it executes successfully. How can I fix this problem?

There could be many problems nested together - a very wide area of problems. Error in device_init happens when you run or debug your sw? I suggest you first build a new project with same .ioc and start debugging - look if you can stop and restart your MCU - this will validate your Ide, your sw and many of ioc features, restricting area of investigation.