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?

7 件のコメント

Areej Safdar
Areej Safdar 2023 年 4 月 20 日
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?
Tinotenda Ashley Mwarunzika
Tinotenda Ashley Mwarunzika 2024 年 5 月 22 日
@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
Stefanie Schwarz
Stefanie Schwarz 2026 年 3 月 24 日 19:47
"Code generation information file does not exist" is not an error message, it just explains why the code was generated in the first place (meaning that no code generation artifacts existed). You need to scroll up in the build log to see the actual build error.

サインインしてコメントする。

 採用された回答

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 件のコメント

NADIA EL GUELOUI
NADIA EL GUELOUI 2022 年 1 月 26 日
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
陶杰 陶
陶杰 陶 2022 年 3 月 31 日
你好,我也想请问一下,这个路径是什么路径,我该如何缩短?很希望你能回复我
Lesley Chingwena
Lesley Chingwena 2022 年 10 月 20 日
I'm using stm32 code gen adb changing the location (path) of the ioc file solved this for me.
Akshay Gugnani
Akshay Gugnani 2022 年 11 月 7 日
Can you please tell me how to do that ?
Mike MacNeil
Mike MacNeil 2022 年 11 月 14 日
Had same issue. I had to copy the folder with my model to location with shorter path.
Incredible that this is an issue,
Walter Roberson
Walter Roberson 2022 年 11 月 15 日
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.
Walter Roberson
Walter Roberson 2023 年 1 月 2 日
TONG WENYANG comments to @陶杰 陶
先不要点Simulink,就是在打开matlab内个界面,然后你看新建和打开的下面有一串文件地址,小文件夹图标从左往右点第三个,然后你就可以选择路径了,你直接选择你把simulink之后内个文件的路径直接选进去就可以了,亲测有效。
Vishruth N
Vishruth N 2023 年 3 月 27 日
Which path did you shorten?
Taimur Zaman
Taimur Zaman 2023 年 4 月 11 日
Have same error, shortened matlab path, but still no luck
David
David 2023 年 5 月 19 日
Could you tell me how short the path?
Zoltan Nagy
Zoltan Nagy 2023 年 8 月 3 日
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.
Dalia
Dalia 2023 年 8 月 28 日
i have shorten the path but still didn´t work
Tinotenda Ashley Mwarunzika
Tinotenda Ashley Mwarunzika 2024 年 5 月 22 日
@Dalla did you manage to solve it?
Javier
Javier 2024 年 10 月 30 日
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 件のコメント

Jesse Beaupre
Jesse Beaupre 2023 年 3 月 29 日
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.
Yashodhar Veeralla
Yashodhar Veeralla 2024 年 9 月 24 日
編集済み: Stefanie Schwarz 2026 年 3 月 24 日 19:40

1 投票

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 above or below this statement.
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 件のコメント

Taimur Zaman
Taimur Zaman 2023 年 4 月 11 日
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 件のコメント

Abdul Kadar Jahangir
Abdul Kadar Jahangir 2023 年 4 月 11 日
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.
Taimur Zaman
Taimur Zaman 2023 年 4 月 11 日
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.

カテゴリ

ヘルプ センター および File ExchangeAndroid Devices についてさらに検索

製品

リリース

R2021b

質問済み:

2021 年 11 月 19 日

コメント済み:

2026 年 3 月 24 日 19:47

Community Treasure Hunt

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

Start Hunting!

Translated by