Code generation information file does not exist.

1.002 Ansichten (letzte 30 Tage)
Shaw
Shaw am 19 Nov. 2021
Kommentiert: 绍冲 am 6 Feb. 2024
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?

Akzeptierte Antwort

Shaw
Shaw am 25 Nov. 2021
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.
  12 Kommentare
Zoltan Nagy
Zoltan Nagy am 3 Aug. 2023
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 am 28 Aug. 2023
i have shorten the path but still didn´t work

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (9)

Paniz Sedighi
Paniz Sedighi am 27 Nov. 2022
I solved this problem by setting the workspace path to the same path as my Simulink file.
  1 Kommentar
Jesse Beaupre
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.

Melden Sie sich an, um zu kommentieren.


Can Ahmet Dursun
Can Ahmet Dursun am 25 Jul. 2023
For me it was the space character somewhere in the path.

Sutanu Maiti
Sutanu Maiti am 20 Nov. 2021
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
Shaw am 21 Nov. 2021
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.

Melden Sie sich an, um zu kommentieren.


Abdelrahman Salah Elwakeel
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
Taimur Zaman am 11 Apr. 2023
Thats really strange. I am facing this problem in 2023 but my 2021 is not causing any problem

Melden Sie sich an, um zu kommentieren.


Taimur Zaman
Taimur Zaman am 11 Apr. 2023
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
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
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)

Melden Sie sich an, um zu kommentieren.


abdullah
abdullah am 25 Apr. 2023
Ihave the same error in 2023 version when I use the s-function builder
have you solved it ?
  1 Kommentar
Dalia
Dalia am 21 Aug. 2023
Hello. How can you solve this, as I am getting the same problem?

Melden Sie sich an, um zu kommentieren.


feng
feng am 18 Mai 2023
In Model settings,choose Gnerate code only.

MD IFTEKHAR ASHRAF
MD IFTEKHAR ASHRAF am 21 Mai 2023
Go to the examples given in add ons - c2000 block set. There you will get the accurate solution.

Liam Veit
Liam Veit am 9 Dez. 2023
Had the same issue on windows 2022b. For me, it was a permissions issue. Running MATLAB as an administrator fixed it.

Kategorien

Mehr zu Android Devices finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by