Jump to content
  • 0

Fail to compile basic WF32 project examples on fresh install


benderamp

Question

Hello, I am trying to build basic network example for ChipKIT WF32 board on Ubuntu linux 14.04 64 bit, mpide-0023-linux64-20140821

Download deIPcK.zip from http://digilentinc.com/Products/Detail.cfm?NavPath=2,892,1193&Prod=CHIPKIT-WF32

Unpack to

/home/benderamp/sketchbook/libraries/

In mpide select board ChipKIT/WF32, select example DEIPcK/TCPEchoClient (or any other in IP/Wifi), receive:

 

In file included from /home/benderamp/sketchbook/libraries/DEIPcK/DEIPcK.h:63:0,

                 from TCPEchoClient.cpp:74:
/home/benderamp/sketchbook/libraries/DEIPcK/utility/deIP.h:59:20: fatal error: system.h: No such file or directory
compilation terminated.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Ok, it seems I see now what's here.

First, there are 2 versions of IP/Wifi stack: the old one and the new one. Both stacks should work at least on WF32, but they will compile on different versions of chipkit mpide.

ChipKIT.net currently suggests to download mpide-0023-linux64-20140821 as the current stable release http://chipkit.net/started/install-chipkit-software/

Older versions and newer test versions of mpide can be taken here: http://chipkit.s3.amazonaws.com/index.html

1) The old stack "chipKIT Network and USB Libs-20150115" can be downloaded from NetworkShield page (on WF32 page this link is removed)

http://digilentinc.com/Products/Detail.cfm?NavPath=2,892,942&Prod=CHIPKIT-NETWORK-SHIELD

> http://digilentinc.com/Agreement.cfm?DocID=DSD-0000318

It WILL compile on mpide-0023-linux64-20140316, but will NOT compile on the current stable mpide-0023-linux64-20140821 with errors like described here http://chipkit.net/forum/viewtopic.php?t=3230

2) The new stack DEIPcK now can be downloaded from WF32 page (sketches made for older stack will not work on new stack as-is and should be somehow ported)

http://digilentinc.com/Products/Detail.cfm?NavPath=2,892,1193&Prod=CHIPKIT-WF32

It will NOT compile neither on mpide-0023-linux64-20140821 (initial post with error), nor on mpide-0023-linux64-20140316 (same error).

2.1) Same new DEIPcK stack is built in newest test releases mpide-0150-linux64-20150801-test, no need to download anything.

Examples for DEIPcK WILL compile (downloaded version of DEIPcK should be better removed from sketches/libraries if installed earlier).

Interestingly, sketches for old version of ip stack "chipKIT Network and USB Libs-20150115" would compile in this mpide-0150-linux64-20150801-test too, but installing old IP/Wifi stack to sketches/libraries will break sketches, made for DEIPcK.

 

So, once again in short:

1) if you want to compile sketches, made for old IP/Wifi stack, use either old mpide-0023-linux64-20140316 or newest mpide-0150-linux64-20150801-test, install libraries to sketches/libraries folder as before.

2) if you want to compile sketches, made for new DEIPcK stack, use newest mpide-0150-linux64-20150801-test, don't download or install any libraries (and remove old stack libraries from sketches/libraries if installed earlier).

3) Don't use current stable mpide-0023-linux64-20140821 from chipkit.net in any case

 

Link to comment
Share on other sites

I have found System.h (not system.h) file here:

/home/benderamp/sketchbook/libraries/DEIPcK/utility/System.h

then opened deIP.h file

/home/benderamp/sketchbook/libraries/DEIPcK/utility/deIP.h

and changed #include "system.h" to #include "System.h"

Now receive:

In file included from /home/benderamp/sketchbook/libraries/DEIPcK/DEIPcK.h:67:0,
                 from TCPEchoClient.cpp:74:
/home/benderamp/sketchbook/libraries/IM8720PHY/NetworkProfile.x:61:6: error: #error IM8720 is not supported by this board

Was this library ever compiled on linux for WF32 board? It was working fine with libraries I have downloaded 1.5-2 years ago from same place, just didn't have to update them since then. What library should I now use for WF32?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...