Why am i getting this error?

8 views (last 30 days)
rajshri simhadri
rajshri simhadri on 17 Jun 2022
Answered: Lokesh on 30 Jun 2024
### Starting build procedure for: miniproject ### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: C:\Users\rajshri simhadri\OneDrive\Desktop\test\miniproject_ert_rtw
The model miniproject is configured to simulate flush-to-zero (FTZ) behavior, but is using normal mode simulation. To observe FTZ behavior, simulate the model using an accelerated mode.
Component:Simulink | Category:Model
### Invoking Target Language Compiler on miniproject.rtw ### Using System Target File: F:\matlab\rtw\c\ert\ert.tlc ### Loading TLC function libraries ### Initial pass through model to cache user defined code ### Caching model source code ### Writing header file miniproject_types.h ### Writing header file miniproject.h ### Writing header file rtwtypes.h ### Writing source file miniproject.c ### Writing header file miniproject_private.h . ### Writing source file miniproject_data.c ### Writing header file rtmodel.h ### Writing source file ert_main.c ### TLC code generation complete. ### Saving binary information cache.
Code Composer Studio Project
### Creating CCS Project at : C:\Users\rajshri simhadri\OneDrive\Desktop\test\miniproject_ert_rtw\CCS_Project ### CCS project created successfully Open project in Code Composer Studio.
### Using toolchain: Texas Instruments Code Composer Studio (C2000) ### Creating 'C:\Users\rajshri simhadri\OneDrive\Desktop\test\miniproject_ert_rtw\miniproject.mk' ... ### Building 'miniproject': "F:\matlab\bin\win64\gmake" -B DEPRULES=0 -j7 -f miniproject.mk all C:\Users\rajshri simhadri\OneDrive\Desktop\test\miniproject_ert_rtw>cd . C:\Users\rajshri simhadri\OneDrive\Desktop\test\miniproject_ert_rtw>if "all" == "" ("F:\matlab\bin\win64\gmake" -B DEPRULES=0 -j7 -f miniproject.mk all ) else ("F:\matlab\bin\win64\gmake" -B DEPRULES=0 -j7 -f miniproject.mk all ) gmake: *** No rule to make target `C:/Users/rajshri', needed by `MW_c28xx_csl.obj'. Stop. C:\Users\rajshri simhadri\OneDrive\Desktop\test\miniproject_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\rajshri simhadri\OneDrive\Desktop\test\miniproject_ert_rtw>exit /B 1 ### Build procedure for miniproject aborted due to an error.
Build Summary
Top model targets built: Model Action Rebuild Reason ======================================================================= miniproject Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 0m 6.305s
Error(s) encountered while building "miniproject"
Component:Simulink | Category:Block diagram error

Answers (1)

Lokesh
Lokesh on 30 Jun 2024
Hi Rajashri,
I understand that you are encountering a "No rule to make target" error while building your "miniproject". This error typically occurs when a file is missing from the specified location.
One possible reason for this issue could be the presence of spaces in the path "C:\Users\rajshri simhadri\OneDrive\Desktop\test\miniproject_ert_rtw" between "rajshri" and "simhadri". Spaces in file paths can sometimes cause issues with the build process. You can find more information and possible workarounds for handling spaces in folder names by referring to the following link:
For additional insights and solutions related to this issue, you can also visit these MATLAB Answers:
Hope this helps!

Categories

Find more on Embedded Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!