Show Posts
Pages: [1]
1  Products / Arduino Due / Re: Compatibility with newer shields on: November 18, 2012, 07:59:13 pm
I have been trying to get my arduino wifi shield to work with the due but I keep getting weird library path errors. I downloaded the 1.5.1r2 IDE but that did not have the the wifi library installed. So i added the library and I get this error when trying to run the network scan example code.

In file included from c:\users\felix\desktop\arduino-1.5.1r2\hardware\tools\g++_arm_none_eabi\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/stdio.h:46,
                 from C:\Users\Felix\Documents\Arduino\libraries\WiFi\/utility/debug.h:13,
                 from C:\Users\Felix\Documents\Arduino\libraries\WiFi\WiFiClient.cpp:6:
c:\users\felix\desktop\arduino-1.5.1r2\hardware\tools\g++_arm_none_eabi\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/sys/types.h:93: error: conflicting declaration 'typedef short unsigned int u_short'
C:\Users\Felix\Documents\Arduino\libraries\WiFi\utility/socket.h:71: error: 'u_short' has a previous declaration as 'typedef uint16 u_short'
C:\Users\Felix\Documents\Arduino\libraries\WiFi\WiFiClient.cpp: In member function 'virtual int WiFiClient::read(uint8_t*, size_t)':
C:\Users\Felix\Documents\Arduino\libraries\WiFi\WiFiClient.cpp:107: error: no matching function for call to 'ServerDrv::getDataBuf(uint8_t&, uint8_t*&, size_t*)'
C:\Users\Felix\Documents\Arduino\libraries\WiFi\utility/server_drv.h:23: note: candidates are: static bool ServerDrv::getDataBuf(uint8_t, uint8_t*, uint16_t*)

If someone got their due to work with the wifi shield how did you set up the IDE?
2  Products / Arduino Due / Arduino Due Wifi example not working on: November 18, 2012, 05:08:45 pm
I downloaded the new IDE for Arduino Due and was trying to run the scanNetworks example using my wifi shield. I get "fatal error: WiFi.h: fatal error: WiFi.h: No such file or directory
compilation terminated." I also tried other examples from other libraries like EEPROM and I get the same error for some .h file that was not included. I added all the Arduino libraries in the IDE and then I get another fatal error:avr/pgmspace.h :fatal error: WiFi.h: No such file or directory compilation terminated.

I thought the IDE 1.5.1r2 would work directly after I unzipped everything. But apparently there are huge issues with the library paths. Does anyone know how I can fix this error? I want to do a wifi/rfid project with the Due but my environment is not set up correctly.
Pages: [1]