-
Notifications
You must be signed in to change notification settings - Fork 46
Description
I tried to compile the SimpleServer example for an Ardunio Uno, with the Copperhead wifi shield.
I get this error:
avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=100 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/ZG2100BasedWiFiShield /tmp/build8344589035392899805.tmp/SimpleServer.cpp -o/tmp/build8344589035392899805.tmp/SimpleServer.cpp.o
SimpleServer.cpp:28:50: error: variable 'wep_keys' must be const in order to be put into read-only section by means of 'attribute((progmem))'
Looks like adding const in config.h:51 fixes the problem.
However, it doesn't seems that the wireless is working, and there is no output on the serial port event though the verbose mode is set. Any hint ?
Config:
COLLECT_GCC=/usr/bin/avr-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/avr/4.6.2/lto-wrapper
Target: avr
Configured with: ../gcc-4.6.2/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp --with-system-zlib --enable-version-specific-runtime-libs --with-pkgversion='Fedora 4.6.2-1.fc16' --with-bugurl=https://bugzilla.redhat.com/
Thread model: single
gcc version 4.6.2 (Fedora 4.6.2-1.fc16)