Need help in compiling this sample
On gizduino iot 644.. we have error exit code 1.. i dont where to start.. fixing..
Need help in compiling this sample
On gizduino iot 644.. we have error exit code 1.. i dont where to start.. fixing..
Please provide more information. When do you experience this error. Where do you see the error message displayed. Please post the exact and full text of the error message using code tags(</> button on the toolbar).
C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Dhcp.cpp:4:19: fatal error: w5100.h: No such file or directory
#include "w5100.h"
^
compilation terminated.
Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\gizduino-\avr\libraries\SPI
Using library Ethernet at version 1.1.2 in folder: C:\Program Files (x86)\Arduino\libraries\Ethernet
exit status 1
Error compiling for board Gizduino IOT-644.
You just completely ignored my request to use code tags. Very disrespectful of the rules of the forum. Why should I make the effort to help you if you won't even make the effort to correctly format your posts?
You must have modified something in your Ethernet library because line 4 of Dhcp.cpp in Ethernet v1.1.2 is not:
#include "w5100.h"
See: Ethernet/Dhcp.cpp at b2c7f3e2955c24c09d120925c458278cff05c730 · arduino-libraries/Ethernet · GitHub
#include "utility/w5100.h"
But you didn't bother to mention you've been mucking around with the library that's causing you the error did you.
First of all I am very sorry for not following the rules, am obviously did not read and dont know that so i manually search for it..
Second, am gladly to follow your request.I hope am doing it right..
Here's my error
Arduino: 1.6.10 (Windows 10), Board: "Gizduino IOT-644"
Compiling sketch...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega644p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_gizduino+644IOT -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\cores\gizduino+" "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\variants\gizduinoIOT" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Program Files (x86)\Arduino\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\libraries\SPI" "C:\Users\JESUSP~1\AppData\Local\Temp\build9110782055d5369c21f2e4d591386d07.tmp\sketch\TimeNTP.ino.cpp" -o "C:\Users\JESUSP~1\AppData\Local\Temp\build9110782055d5369c21f2e4d591386d07.tmp\sketch\TimeNTP.ino.cpp.o"
Compiling libraries...
Compiling library "Time-master"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega644p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_gizduino+644IOT -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\cores\gizduino+" "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\variants\gizduinoIOT" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Program Files (x86)\Arduino\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\libraries\SPI" "C:\Program Files (x86)\Arduino\libraries\Time-master\DateStrings.cpp" -o "C:\Users\JESUSP~1\AppData\Local\Temp\build9110782055d5369c21f2e4d591386d07.tmp\libraries\Time-master\DateStrings.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega644p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_gizduino+644IOT -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\cores\gizduino+" "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\variants\gizduinoIOT" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Program Files (x86)\Arduino\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\libraries\SPI" "C:\Program Files (x86)\Arduino\libraries\Time-master\Time.cpp" -o "C:\Users\JESUSP~1\AppData\Local\Temp\build9110782055d5369c21f2e4d591386d07.tmp\libraries\Time-master\Time.cpp.o"
Compiling library "Ethernet"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega644p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_gizduino+644IOT -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\cores\gizduino+" "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\variants\gizduinoIOT" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Program Files (x86)\Arduino\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\hardware\gizduino-\avr\libraries\SPI" "C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Dhcp.cpp" -o "C:\Users\JESUSP~1\AppData\Local\Temp\build9110782055d5369c21f2e4d591386d07.tmp\libraries\Ethernet\Dhcp.cpp.o"
[color=red]C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Dhcp.cpp:4:19: fatal error: w5100.h: No such file or directory
#include "w5100.h"
^
compilation terminated.[/color]
Using library Time-master at version 1.5 in folder: C:\Program Files (x86)\Arduino\libraries\Time-master
Using library Ethernet at version 1.1.2 in folder: C:\Program Files (x86)\Arduino\libraries\Ethernet
Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\gizduino-\avr\libraries\SPI
[color=red]exit status 1
Error compiling for board Gizduino IOT-644[/color].
I hope you can help because am new to this..
That's better! It seems like I'm just being too picky but it's actually really important to use code tags because the forum software can mistake important parts of your error/warning message or code for formatting markup and alter what you wrote, which makes it much harder for us to help you. Code tags also makes sure the lines don't wrap and that the text can be easily copied to an editor or the IDE.
Why is your Ethernet library different than the one that Arduino IDE comes with? Did you replace it with a modified version? I'm assuming that the "644" in your board refers to ATmega644, did you try to change the Ethernet library to a version that was modified for that board?
Well yes modify it in hopes to solve the problem,but still no luck.I was hoping to get some answrs that why i posted here.. i dont get the solution you gave me. do you want me to replace the contents of dhcp.cpp to the link you gave me?
Ok, so if you had just said that you had installed a modified version of Ethernet library and posted a link to where you downloaded that library from from the very start instead of giving some vague fragment of an error message and completely leaving out all the important information then this problem would have been solved by now.
The problem is the Gizduino people are complete idiots. If I were you I'd return that board immediately. Based on the super fast look at their library and installation instructions I can tell you that this is not a professional operation. It really makes me sad seeing all these companies that don't care at all about their customers trying to cash in on Arduino.
Here's the link you should have provided me from the start, instead I had to do the work for you:
Product page for the board: http://www.e-gizmo.com/KIT/gizDuino%20IOT644.html
Patch instructions: READ ME PLEASE.txt - Google Drive
Modified Ethernet library: Ethernet modified 082314.rar - Google Drive
First of all those patch instructions are very confusing. They could have easily put the whole "patch" in a single package that could be installed via Boards Manager. Any professional manufacturer would do this but "Gizduino" doesn't care enough to make the effort. You should not install things to C:\Program Files (x86)\Arduino because then every time you update to a new version of the Arduino IDE you will need to repeat the "patch" process. You're supposed to install 3rd party hardware files to your sketchbook folder(you can find the location at File > Preferences > Sketchbook location).
Now to the real problem. That Ethernet library is a joke. I can't get it to compile and I've tried multiple different IDE versions. You could probably get it working with enough effort but so far what you've done has just made things worse. A better approach would be to modify another Ethernet library to support your board but the trouble is that you have a non-standard microcontroller model, with a less well supported Ethernet controller chip with a non-standard pin mapping. I can point you to Ethernet libraries that support ATmega644, Ethernet libraries that support W5500, and Ethernet libraries that support your pin mapping but there isn't one that does all 3 that I'm aware of.
Honestly, at your current skill level the best solution is to send that piece of crap back to "Gizduino" for a refund, buy an Arduino Mega2560 and an Ethernet shield. You'll have way less problems to deal with and you won't be supporting a company that doesn't care about their customers.