Forum Software Ferduino code Compilation error

Compilation error


Post Number:#1 Post Fri May 13, 2016 9:54 pm
Posts: 6
Topics: 2
Solve rating: 0
Joined: Tue Sep 16, 2014 4:18 pm
Topics: 2
Age: 40
Location: México
Gender: Male
National Flag:
Mexico

Hi, I have my mega2560, mi w5100 shield, ds18b20, RTC3231, the test code for w5100 works ok

// Save this file on SD card as index.htm
Hello world!
This page is stored in a SD card plugged on Arduino

Visit my website: http://www.ferduino.com

Code adapted by Fernando Garcia


I want to use without LCD if I compile the code with TFT is ok
but when I cooment the 110 #use TFT line shows error

Arduino:1.6.7 (Windows 7), Placa:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Opciones de compilación cambiadas, reconstruyendo todo
In file included from H:\Dropbox\Arduino\ferduino\arduino-1.6.7\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\Ferduino_with_webcontrol_beta.ino.cpp:1:

C:\Users\0EE78~1\AppData\Local\Temp\arduino_5033178e2e503d3344c3ecaf7bc36632\Loop.ino: In function 'void loop()':

Loop:207: error: 'tabela_textos' was not declared in this scope

           strcpy_P(buffer, (char*)pgm_read_word_near(&(tabela_textos[17])));

                                                        ^

Loop:208: error: 'anT' was not declared in this scope

           printButton(buffer, anT[0], anT[1], anT[2], anT[3]); // tabela_textos[17] = "INICIAR"

                               ^

Loop:208: error: 'printButton' was not declared in this scope

           printButton(buffer, anT[0], anT[1], anT[2], anT[3]); // tabela_textos[17] = "INICIAR"

                                                             ^

exit status 1
'tabela_textos' was not declared in this scope

  Este informe podría tener más información con
  "Mostrar salida detallada durante la compilación"
  activala desde Archivo > Preferencias

Post Number:#2 Post Fri May 13, 2016 10:10 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

I have fixed the code, please do this changes in your code:

https://github.com/FernandoGarcia/Ferdu ... 79b0694463

Best regards
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Sat May 14, 2016 1:43 am
Posts: 6
Topics: 2
Solve rating: 0
Joined: Tue Sep 16, 2014 4:18 pm
Topics: 2
Age: 40
Location: México
Gender: Male
National Flag:
Mexico

Nice, thanks fernando, I configured the local ip, the sd pin to 4, load the sketch but when I try to
validate settings in webserver the error

Connection timed out after 5000 milliseconds.
Your controller is not responding.
Please check your host address, port number and port forwarding in your router.

open the serial monitor and this is the text
Please insert a SD CARD

should I put files in the sd card? the card has the index file I used for the test code

Post Number:#4 Post Sat May 14, 2016 12:13 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Are you talking about this variable?

const byte ChipSelect_SD = 4


On setup try change this variable:

SPI_HALF_SPEED


To:

SPI_QUARTER_SPEED


There no file to place on SD card.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron