Code generation information file does not exist.
Ältere Kommentare anzeigen
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 Kommentare
Areej Safdar
am 20 Apr. 2023
change your setting in simulink and selecl report "Create Code Generation Report".
abdullah
am 25 Apr. 2023
Verschoben: Walter Roberson
am 4 Dez. 2025
Ihave the same error in 2023 version when I use the s-function builder
have you solved it ?
Dalia
am 21 Aug. 2023
Verschoben: Walter Roberson
am 4 Dez. 2025
Hello. How can you solve this, as I am getting the same problem?
Tinotenda Ashley Mwarunzika
am 22 Mai 2024
@Areej Safdar could you explain how you did it. I am trying to solve the same problem.
Phuc
am 4 Dez. 2025
Verschoben: Walter Roberson
am 4 Dez. 2025
Me too
Akzeptierte Antwort
Weitere Antworten (10)
Paniz Sedighi
am 27 Nov. 2022
1 Stimme
I solved this problem by setting the workspace path to the same path as my Simulink file.
1 Kommentar
Jesse Beaupre
am 29 Mär. 2023
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
am 25 Jul. 2023
1 Stimme
For me it was the space character somewhere in the path.
Sutanu Maiti
am 20 Nov. 2021
0 Stimmen
Can you please try building corresponding example model once?
To launch the example model, please execute below commnd in MATLAB command window:
>> androidGettingStartedExample
1 Kommentar
Shaw
am 21 Nov. 2021
Abdelrahman Salah Elwakeel
am 5 Apr. 2023
0 Stimmen
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 Kommentar
Taimur Zaman
am 11 Apr. 2023
Thats really strange. I am facing this problem in 2023 but my 2021 is not causing any problem
Taimur Zaman
am 11 Apr. 2023
0 Stimmen
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 Kommentare
Abdul Kadar Jahangir
am 11 Apr. 2023
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
am 11 Apr. 2023
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)
MD IFTEKHAR ASHRAF
am 21 Mai 2023
0 Stimmen
Go to the examples given in add ons - c2000 block set. There you will get the accurate solution.
Liam Veit
am 9 Dez. 2023
0 Stimmen
Had the same issue on windows 2022b. For me, it was a permissions issue. Running MATLAB as an administrator fixed it.
Ian Adelman
am 22 Jul. 2024
0 Stimmen
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
am 24 Sep. 2024
0 Stimmen
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
Kategorien
Mehr zu Modeling finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!