Failed to generate all binary outputs Simulink S-function

14 visualizaciones (últimos 30 días)
Hugo CARPENTIER
Hugo CARPENTIER el 16 de Mayo de 2018
Hello everyone, I am looking for add the library of my LCD (AdafruitRGBShield) in Simulink, but even if i can build and simulate, when I'm trying to televerse to my Arduino MEGA ADK I got and error : Failed to generate all binary outputs Simulink S-function. Can you help me please? For what I can suppose from the logs, maybe it doesn't recognize c++? PS : I'm working in Matlab 2017B and the files that I added work very well in arduino, and since it is a library, it should not be a problem of code.
if true
% code
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/Printable.h:25:1: error: unknown type name 'class'
class Print;
^
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/Printable.h:33:1: error: unknown type name 'class'
class Printable
^
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/Printable.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from C:/Users/mainnt/Desktop/ArduinoLCD/Adafruit_RGBLCDShield.h:20:0,
from ../LCD_wrapper.c:18:
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/Print.h:34:1: error: unknown type name 'class'
class Print
^
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/Print.h:35:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from C:/Users/mainnt/Desktop/ArduinoLCD/Adafruit_RGBLCDShield.h:21:0,
from ../LCD_wrapper.c:18:
C:/Users/mainnt/Desktop/ArduinoLCD/Adafruit_MCP23017.h:18:1: error: unknown type name 'class'
class Adafruit_MCP23017 {
^
C:/Users/mainnt/Desktop/ArduinoLCD/Adafruit_MCP23017.h:18:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
class Adafruit_MCP23017 {
^
In file included from ../LCD_wrapper.c:18:0:
C:/Users/mainnt/Desktop/ArduinoLCD/Adafruit_RGBLCDShield.h:68:1: error: unknown type name 'class'
class Adafruit_RGBLCDShield : public Print {
^
C:/Users/mainnt/Desktop/ArduinoLCD/Adafruit_RGBLCDShield.h:68:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
class Adafruit_RGBLCDShield : public Print {
^
../LCD_wrapper.c:21:1: error: unknown type name 'Adafruit_RGBLCDShield'
Adafruit_RGBLCDShield LCD = Adafruit_RGBLCDShield();
^
../LCD_wrapper.c:21:1: error: initializer element is not constant
../LCD_wrapper.c:22:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
LCD.begin(16,2);
^
../LCD_wrapper.c: In function 'LCD_Outputs_wrapper':
../LCD_wrapper.c:50:5: error: request for member 'write' in something not a structure or union
LCD.write("truc");
^
gmake: *** [LCD_wrapper.o] Error 1
C:\Users\mainnt\Desktop\ArduinoLCD\SFunctionLCD_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2
C:\Users\mainnt\Desktop\ArduinoLCD\SFunctionLCD_ert_rtw>An_error_occurred_during_the_call_to_make An_error_occurred_during_the_call_to_make wordt niet herkend als een interne of externe opdracht, programma of batchbestand. ### Creating HTML report file SFunctionLCD_codegen_rpt.html ### Build procedure for model: 'SFunctionLCD' aborted due to an error. Error(s) encountered while building "SFunctionLCD": ### Failed to generate all binary outputs.
end
Thank you for your future answers!

Respuestas (0)

Categorías

Más información sobre Block and Blockset Authoring en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by