Jump to content
  • 0

Compiling deWebIOServer from Arduino IDE for chipKit WF32


mstoer

Question

I have compiled the deWebIOServer example in the past with mpide and ran it on my WF32 board with no problems.   I know want to compile it from the Arduino IDE (1.6.9) as a test before setting up my own webserver on the WF32 and cannot get it to compile.  I used the Arduino IDE to add the chipKit core (v1.2.1) .   Simple "hello world" and "blink" type apps compile and run fine.    However when compiling the deWebIOServer  app I get the errors below and haven't been able to resolve them.   Did I mess up the core installation somewhere or is it something else?   Google hasn't been to helpful on this.

Marcell

 

Arduino: 1.6.9 (Windows 10), Board: "chipKIT WF32"

libraries\HTTPServer\HTMLSDPage.cpp.o: In function `DFILE::write(unsigned char)':

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/dfatfs/dfatfs.h:136: undefined reference to `DFILE::fsputc(char)'

libraries\HTTPServer\HTMLSDPage.cpp.o: In function `DFILE::read()':

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/dfatfs/dfatfs.h:137: undefined reference to `DFILE::fsread(void*, unsigned long, unsigned long*, unsigned long)'

libraries\HTTPServer\HTMLSDPage.cpp.o: In function `DFILE::peek()':

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/dfatfs/dfatfs.h:139: undefined reference to `DFILE::fslseek(unsigned long)'

libraries\HTTPServer\HTMLSDPage.cpp.o: In function `DFILE::flush()':

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/dfatfs/dfatfs.h:140: undefined reference to `DFILE::fssync()'

libraries\HTTPServer\HTMLSDPage.cpp.o: In function `SDRead(DFILE&, unsigned char*, unsigned long)':

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/httpserver/htmlsdpage.cpp:112: undefined reference to `DFILE::fsread(void*, unsigned long, unsigned long*, unsigned long)'

libraries\HTTPServer\HTMLSDPage.cpp.o: In function `SDSetup()':

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/httpserver/htmlsdpage.cpp:139: undefined reference to `DFATFS::fsmount(DFSVOL&, char const*, unsigned char)'

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/httpserver/htmlsdpage.cpp:157: undefined reference to `DFILE::fsopen(char const*, unsigned char)'

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/httpserver/htmlsdpage.cpp:163: undefined reference to `DFILE::fsclose()'

libraries\HTTPServer\HTMLSDPage.cpp.o: In function `ComposeHTMLSDPage(CLIENTINFO_T*)':

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/httpserver/htmlsdpage.cpp:256: undefined reference to `DFILE::fsopen(char const*, unsigned char)'

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/httpserver/htmlsdpage.cpp:275: undefined reference to `DFILE::fslseek(unsigned long)'

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/httpserver/htmlsdpage.cpp:340: undefined reference to `DFILE::fsclose()'

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/httpserver/htmlsdpage.cpp:362: undefined reference to `DFILE::fsclose()'

libraries\HTTPServer\HTMLSDPage.cpp.o: In function `__static_initialization_and_destruction_0':

c:/users/mstoer/appdata/local/arduino15/packages/chipkit/hardware/pic32/1.2.1/libraries/httpserver/htmlsdpage.cpp:54: undefined reference to `SoftSPI::SoftSPI(unsigned char, unsigned char, unsigned char, unsigned char)'

collect2.exe: error: ld returned 255 exit status

exit status 255
Error compiling for board chipKIT WF32.

 

 

Link to comment
Share on other sites

Recommended Posts

I have the exact same errors using Arduino.  I normally use UECIDE where deWebIOServer compiles error free.  

I have other problems where when I turn on port forwarding it eventually stops working.  I assume this is from "probes" that look for access to systems.  I hoped I could figure out enough in the code to add debug printouts to identify and handle the type of probe.  The last time I tried to figure out this web server stuff (I think that was with a Netduino) I was able to capture attempts to access "rom-0" (or something of that nature).  A google search indicated this is a weakness in some routers that they look for.

I continue to hope that some day I will be able to learn enough to set up a simple server on the WF32 to control some hardware remotely over the network, but most of the code is above my head.  If I can figure out what is coming in from the outside world to kill the server, that will be a good first step.  It runs fine when port forwarding is turned off, it only crashes when port 80 is allowed in from outside and sometimes it takes a few hours before this event occurs.

I will be interested to learn if you have had any success under Arduino.  Good luck.

Chuck

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...