Code generation information file does not exist.

I have trying different example codes in simuling for android.
I am constantly getting the following error
" Code generation information file does not exist. "
What does the error mean?

댓글 수: 6

change your setting in simulink and selecl report "Create Code Generation Report".
abdullah
abdullah 2023년 4월 25일
이동: Walter Roberson 2025년 12월 4일
Ihave the same error in 2023 version when I use the s-function builder
have you solved it ?
Dalia
Dalia 2023년 8월 21일
이동: Walter Roberson 2025년 12월 4일
Hello. How can you solve this, as I am getting the same problem?
@Areej Safdar could you explain how you did it. I am trying to solve the same problem.
Phuc
Phuc 2025년 12월 4일
이동: Walter Roberson 2025년 12월 4일
Me too

댓글을 달려면 로그인하십시오.

 채택된 답변

Shaw
Shaw 2021년 11월 25일

4 개 추천

The issue was with path. The path was too long for the model to execute. I have shortened the path ,now the model works fine.

댓글 수: 14

Hello, can you tell me which path you are talking about? Are you talking about the path of the simulink model? can you explain me the solution please because I have the same problem.
Thank you
你好,我也想请问一下,这个路径是什么路径,我该如何缩短?很希望你能回复我
I'm using stm32 code gen adb changing the location (path) of the ioc file solved this for me.
Can you please tell me how to do that ?
Had same issue. I had to copy the folder with my model to location with shorter path.
Incredible that this is an issue,
The limitation imposed by Windows 10 has been 260 characters including drive letter and colon.
Windows has an Insider Preview that raises the limit, that you could potentially test out; see https://mspoweruser.com/ntfs-260-character-windows-10/
This is not a MATLAB limit, this is a Windows limit.
TONG WENYANG comments to @陶杰 陶
先不要点Simulink,就是在打开matlab内个界面,然后你看新建和打开的下面有一串文件地址,小文件夹图标从左往右点第三个,然后你就可以选择路径了,你直接选择你把simulink之后内个文件的路径直接选进去就可以了,亲测有效。
Which path did you shorten?
Have same error, shortened matlab path, but still no luck
Could you tell me how short the path?
By default, I work in the Downloads folder, but anything with a short name, preferebly without space in the path would do, to be on the safe side.
Additional problems can be backup services, like OneDrive, which can sause the same issue - hence I use Downloads folder, as that is not backed up.
i have shorten the path but still didn´t work
@Dalla did you manage to solve it?
how do you shorten the path?

댓글을 달려면 로그인하십시오.

추가 답변 (10개)

Paniz Sedighi
Paniz Sedighi 2022년 11월 27일

1 개 추천

I solved this problem by setting the workspace path to the same path as my Simulink file.

댓글 수: 1

It's a mystery to me why Simulink doesn't automatically set the correct path and you have to manually do it in 2023.

댓글을 달려면 로그인하십시오.

Can Ahmet Dursun
Can Ahmet Dursun 2023년 7월 25일

1 개 추천

For me it was the space character somewhere in the path.
Sutanu Maiti
Sutanu Maiti 2021년 11월 20일

0 개 추천

Can you please try building corresponding example model once?
To launch the example model, please execute below commnd in MATLAB command window:
>> androidGettingStartedExample

댓글 수: 1

Shaw
Shaw 2021년 11월 21일
I have tried for the above mentioned example.
The model executed with warnings.
But when I try to do with other examples, again the same error occurs.

댓글을 달려면 로그인하십시오.

Abdelrahman Salah Elwakeel
Abdelrahman Salah Elwakeel 2023년 4월 5일

0 개 추천

Hi,
I also faced the same problem. However, the fix for me was that I was using the wrong programming cable (some usb cables are just for power not for programming)

댓글 수: 1

Thats really strange. I am facing this problem in 2023 but my 2021 is not causing any problem

댓글을 달려면 로그인하십시오.

Taimur Zaman
Taimur Zaman 2023년 4월 11일

0 개 추천

I had this problem from long time. There is problem with matlab version 2022b and 2023 onwards. They dont set automatically the path which sometimes cuase this error. I opted to 2021 matlab, there you will have communication interface option to select SERIAL. I simply select this and now working. TI Launchpads the solution with problems :)

댓글 수: 2

Hey, I'm facing the exact same issue with the F28335 control card. I wish to generate PWM pulses to a DC DC converter.
You mentioned that the issue is with the path not being set automatically. May I know the path to which file you are talking about here? If you can mention that, maybe I can try adding that and check if it works.
The path itself doesnt resolve it. You need to make sure your simulink file and workspace path is same. It can be accessed from the top ribbon of main window of matlab (command prompt area)

댓글을 달려면 로그인하십시오.

feng
feng 2023년 5월 18일

0 개 추천

In Model settings,choose Gnerate code only.
MD IFTEKHAR ASHRAF
MD IFTEKHAR ASHRAF 2023년 5월 21일

0 개 추천

Go to the examples given in add ons - c2000 block set. There you will get the accurate solution.
Liam Veit
Liam Veit 2023년 12월 9일

0 개 추천

Had the same issue on windows 2022b. For me, it was a permissions issue. Running MATLAB as an administrator fixed it.
Ian Adelman
Ian Adelman 2024년 7월 22일

0 개 추천

after checking code generation compatibility, running all possible checks with the model advisor, and scouring the internet for anything that could help me. Truly the only thing that ever worked was switching my hardware to be the Aruino Mega 2560, building (which suceeded for whatever reason), and switching back to the originally selected hardware (Arduino Uno or ESP32 devkit C).
I hope this helps another poor soul.
Yashodhar Veeralla
Yashodhar Veeralla 2024년 9월 24일

0 개 추천

The message " Code generation information file does not exist. " is information related to why we generated code for the model. The reason why the build process errored should be below this statement

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2021년 11월 19일

이동:

2025년 12월 4일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by