The path '' does not exist

62 views (last 30 days)
Chong-He
Chong-He on 28 Aug 2024
Commented: Chong-He on 29 Aug 2024
=== Build (Elapsed: 13 sec) ===
### Starting build procedure for: Lab1_Inverter
Code execution time profiling is supported with 'XCP on Serial' External Mode simulation. Click the help for more details regarding the new profiling features available.
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: D:\Desktop\GW\PEK-550\2022b\Lab1_Inverter_ert_rtw
Warning:Error resolving Custom Code.
Caused by:
D:\Desktop\GW\PEK-550\2022b\include specified in custom include directory paths string does not exist in any of the following search directories:
"
Warning:The following error occurred while tokenizing the custom code parameters:
Caused by:
D:\Desktop\GW\PEK-550\2022b\include specified in custom include directory paths string does not exist in any of the following search directories:
"
### Invoking Target Language Compiler on Lab1_Inverter.rtw
### Using System Target File: D:\Application\MATLAB\R2022b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Generating TLC interface API for custom data
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file Lab1_Inverter_types.h
### Writing header file DSP28xx_SciUtil.h
### Writing source file DSP28xx_SciUtil.c
.
### Writing header file Lab1_Inverter.h
### Writing header file Lab1_Inverter_private.h
### Writing source file Lab1_Inverter.c
### Writing header file rtwtypes.h
### Writing header file rtGetNaN.h
.
### Writing source file rtGetNaN.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing header file rtGetInf.h
.
### Writing source file rtGetInf.c
### Writing source file Lab1_Inverter_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete (took 2.67s).
Warning:The following error occurred while tokenizing the custom code parameters:
Caused by:
D:\Desktop\GW\PEK-550\2022b\include specified in custom include directory paths string does not exist in any of the following search directories:
"
### Saving binary information cache.
### Build procedure for Lab1_Inverter aborted due to an error.
Top model targets built:
Model Action Rebuild Reason
=========================================================================
Lab1_Inverter Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 12.444s
Error:The path '' does not exist.
Caused by:
The path does not exist, error code: 0

Answers (1)

Samay Sagar
Samay Sagar on 29 Aug 2024
Hi Chong-He,
The error messages you are encountering indicate that the build process for your Simulink model “Lab1_Inverter” is failing due to issues with custom code paths. Specifically, it seems that the path specified for custom include directories does not exist, which is causing the build to abort.
Here are some steps you can follow to resolve this issue:
1.Verify Path Existence: Check the path “D:\Desktop\GW\PEK-550\2022b\include” to ensure it exists on your system. If it doesn't, you need to create the directory or adjust the path to point to the correct location.
2.Update Custom Code Settings:
  • Open your Simulink model.
  • Go to Model Configuration using “Ctrl + E” or using the menu Simulation > Model Configuration Parameters.
  • Navigate to Code Generation > Custom Code.
  • Check the Include directories field and update the path to a valid directory that contains your custom header files.
  • Add the necessary headers to "Include headers" and source files.
By ensuring that all paths specified in the custom code settings are correct and accessible, you should be able to resolve the build error and successfully generate code for your model.
You can also consider moving your custom code to the same directory as your model and try building again after specifying the custom headers and source files.
For more information about code customization with Simulink Coder, you can refer the following documentation:

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!