Comments (10)
same issue
from ethercard.
Hey @AlexandreCo @Bramboos what operating system and version of the Arduino are you running? It works without issue for me on Windows 7 and Ubuntu 12.04 using the Arduino 1.0.1 IDE. Try adding a #include <avr/pgmspace.h> to the top of the sketch, and let us know if you get any different results.
from ethercard.
Arduino 1.0.1 on Ubuntu 12.10 with the newest version of the Ethercard lib.Everything is the same when I put #include on top of the page. At school i'm also running Ubuntu but a older version of the Ethercard lib and there are no problems.
from ethercard.
@Bramboos what Operating System? I want to help, but in order to do that I need to be able to reproduce the problem, and currently I can't. Also if you look at the verbose output of the compilation you should be able to determine which avr-g++ binary arduino is using to do the compile. In my case it's "/home/vic/Desktop/arduino-1.0.1/hardware/tools/avr/bin/avr-g++" if you open a terminal and run that executable with the --version option, it would also be useful to know the output of that as well. In my case:
/home/vic/Desktop/arduino-1.0.1/hardware/tools/avr/bin/avr-g++ --version
avr-g++ (GCC) 4.3.2
from ethercard.
@vicatcu Ubuntu 12.10. I think I have found the problem, I installed the Arduino IDE through the Software Center in Ubuntu and now I have downloaded Arduino and placed it in the home folder and everything works without problems.
When Arduino is installed through the Software Center the folder hardware/tools/avr.(..) doesn't exists. When I run avr-g++ --version directly in the terminal I got this output:
avr-g++ (GCC) 4.7.0
When I do --verbose I got this output:
Using built-in specs.
COLLECT_GCC=avr-g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/avr/4.7.0/lto-wrapper
Target: avr
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man --bindir=/usr/bin --libexecdir=/usr/lib --libdir=/usr/lib --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-libssp --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=avr
Thread model: single
gcc version 4.7.0 (GCC)
from ethercard.
@brambros interesting... so a problem with Arduino and apt-get is really the problem here. If you download the distribution from arduino.cc, it's all good? @AlexandreCo are you in the same boat? If so, I think this problem belongs to the Arduino platform and not the EtherCard library...
from ethercard.
@vicatcu i am in the same configuration,
avr-g++ -v
Using built-in specs.
COLLECT_GCC=avr-g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/avr/4.7.0/lto-wrapper
Target: avr
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man --bindir=/usr/bin --libexecdir=/usr/lib --libdir=/usr/lib --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-libssp --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=avr
Thread model: single
gcc version 4.7.0 (GCC)
from ethercard.
I think that this is a problem with the version of the compiler. When you download Arduino manually (last version) it has version 4.3.2 and the version on Ubuntu is 4.7.0...
from ethercard.
thank you is now ok for me
from ethercard.
The current library uses a deprecated api to access the EEPROM, that has been removed.
Here's a quick fix to make it compile on newer avr-gcc:
https://gist.github.com/4612406
from ethercard.
Related Issues (20)
- ATMega1284p not working HOT 1
- esp8266 HOT 1
- FINE ADJUSTMENTS
- Example ether.browseUrl(PSTR("/foo/"), "bar", website, my_callback); not working HOT 6
- UDP Multicast MAC not correct? HOT 5
- facing problem while using with SD card
- Concurrent requests possible?
- Custom host name while setting Static IP HOT 1
- Multicast listening HOT 1
- Rename 'master' branch to 'main'
- Reading response only 512 bytes chunk of tcpsend
- Hide response header from HTTP response
- Is there any way to use other serial port for ether.printIp()?
- UDP packet is not sent - NOT STATIC IP HOT 1
- Incorrect session id returned
- DHCP client + browse url with specific port HOT 1
- Wrong Ethernet II destination MAC address. HOT 6
- Error initializing library on Arduino Nano HOT 5
- How to handle multiple sessions?
- Sending UDP datagrams from Arduino with EtherCard library to concrete IP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ethercard.