MATLAB Answers

Error when I want to use simulink with arduino

3 views (last 30 days)
Ramirez Porras
Ramirez Porras on 29 Oct 2017
Edited: Alexis Javier Mayo on 4 Mar 2019
### Generating code into build folder: C:\Windows\System32\led_apagar_ert_rtw ### Invoking Target Language Compiler on led_apagar.rtw ### Using System Target File: C:\Program Files\MATLAB\R2017a\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 led_apagar.h ### Writing header file led_apagar_types.h ### Writing source file led_apagar.c ### Writing header file rtwtypes.h . ### Writing header file led_apagar_private.h ### Writing source file led_apagar_data.c ### Writing header file rtmodel.h ### Writing source file ert_main.c ### TLC code generation complete. ### Evaluating PostCodeGenCommand specified in the model ### Using toolchain: Arduino AVR v1.6.13 | gmake (64-bit Windows) ### Creating 'C:\Windows\System32\led_apagar_ert_rtw\led_apagar.mk' ... ### Building 'led_apagar': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f led_apagar.mk all C:\Windows\System32\led_apagar_ert_rtw>cd . C:\Windows\System32\led_apagar_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f led_apagar.mk all ) else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f led_apagar.mk ) gmake: led_apagar.mk: No such file or directory gmake: * No rule to make target `led_apagar.mk'. Stop. C:\Windows\System32\led_apagar_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Windows\System32\led_apagar_ert_rtw>An_error_occurred_during_the_call_to_make "An_error_occurred_during_the_call_to_make" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. ### Creating HTML report file led_apagar_codegen_rpt.html ### Build procedure for model: 'led_apagar' aborted due to an error. Error(s) encountered while building "led_apagar": ### Failed to generate all binary outputs.
// I don´t know why doaesn´t works I thing could be a problem with the path o folders, but I don´t know how solve it. Could you help me please?

  0 Comments

Sign in to comment.

Answers (1)

Alexis Javier Mayo
Alexis Javier Mayo on 4 Mar 2019
Edited: Alexis Javier Mayo on 4 Mar 2019
Did you solve the problem? I have troubles with this too.

  0 Comments

Sign in to comment.

Sign in to answer this question.