Giter Club home page Giter Club logo

Comments (10)

AlexandreCo avatar AlexandreCo commented on August 22, 2024

same issue

from ethercard.

vicatcu avatar vicatcu commented on August 22, 2024

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.

Bramboos avatar Bramboos commented on August 22, 2024

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.

vicatcu avatar vicatcu commented on August 22, 2024

@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.

Bramboos avatar Bramboos commented on August 22, 2024

@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.

vicatcu avatar vicatcu commented on August 22, 2024

@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.

AlexandreCo avatar AlexandreCo commented on August 22, 2024

@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.

Bramboos avatar Bramboos commented on August 22, 2024

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.

AlexandreCo avatar AlexandreCo commented on August 22, 2024

thank you is now ok for me

from ethercard.

mrbig avatar mrbig commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.