Simulink build error: Error creating folder

Hello,
I am trying to build and upload some different models to TMS320F28379D in Simulink. However I get the same following error. Similar errors are asked on previous messages but there is no answer to explain them.
What is the reason of this error and how can i solve it?

 採用された回答

Apeksha Bagrecha
Apeksha Bagrecha 2022 年 9 月 21 日
編集済み: Stefanie Schwarz 2026 年 3 月 24 日 12:38

2 投票

The error message "Error creating folder" indicates a permissions issue. It appears that you are trying to generate code into the "C:\Windows\System32" folder, which is not recommended. Please change your current folder to a local folder like "C:\work" or into your Windows user folder (e.g., "C:\Users\Burak\Documents\MATLAB").
Note that the message "Code generation information file does not exist" itself is expected behavior and means that the code was generated because it had not been generated prior to the build.

1 件のコメント

Gokhan Solak
Gokhan Solak 2023 年 3 月 3 日
Sometimes it is ok, when it says "Action: code generated and compiled", but in this case it says "Action: failed", and the simulation will not run.
In a similar question, someone recommended removing spaces from the file path, or shortening the file path (moving the file).

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

その他の回答 (0 件)

カテゴリ

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

製品

リリース

R2021a

質問済み:

2022 年 9 月 15 日

編集済み:

2026 年 3 月 24 日 12:38

Community Treasure Hunt

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

Start Hunting!

Translated by