yNos 0 Posted October 30, 2013 Share Posted October 30, 2013 I am not sure if i am doing something wrong or if i have my environment setup wrong.. I have just pulled down and done a build of energia ( git clone https://github.com/energia/Energia.git /opt/energia.build && cd /opt/energia.build/build && ant linux64-build && ant linux64-run) It seemed to work fine when my daughter and I wrote her little whiskerbot, when I try to load up the sample simpleWebServer prog, i get compile errors. Here is what i have worked through so far - but now my limited C++ skills are shining through.. $ diff /opt/energia.build/libraries/SimplelinkWifi/examples/simpleWebServer/simpleWebServer.ino ~/sketchbook/simpleWebServerTEST/simpleWebServerTEST.ino 1,6c1 < // Enter here the name (=SSID) and password of your WiFi LAN < < #define WLAN_SSID "energia" // cannot be longer than 32 characters! < #define WLAN_PASS "supersecret" < < /* --- > /* 24c19,22 < #include "WiFi.h" --- > //#include "WiFi.h" > #include "/opt/energia.build/libraries/SimplelinkWifi/WiFi.h" > #include "/opt/energia.build/libraries/SimplelinkWifi/utility/SimplelinkWifi.h" > #include "/opt/energia.build/libraries/SimplelinkWifi/TCPserver.h" // TROUBLESHOOT - dont know if i need this. 26,27c24,25 < char ssid[] = WLAN_SSID; // your network SSID (name) < char pass[] = WLAN_PASS; // your network SSID (name) --- > char ssid[] = "mah-ssid"; // your network SSID (name) > char pass[] = "mah-passphrase"; // your WPA passphrase 36,39c34,39 < WiFi.setCSpin(18); // 18: P2_2 @ F5529, PE_0 @ LM4F/TM4C < WiFi.setENpin(2); // 2: P6_5 @ F5529, PB_5 @ LM4F/TM4C < WiFi.setIRQpin(19); // 19: P2_0 @ F5529, PB_2 @ LM4F/TM4C < --- > // WiFi.setCSpin(P2_2); // changing these to match up with the cc3000BOOST pinout > // WiFi.setENpin(P6_5); > // WiFi.setIRQpin(P2_0); > WiFi.setCSpin(PE_0); > WiFi.setENpin(PB_5); > WiFi.setIRQpin(PB_2); here are my compile errors: simpleWebServer.cpp.o: In function `printWifiData()': /opt/energia.build/build/linux/work/simpleWebServer.ino:207: undefined reference to `WiFiClass::localIP()' /opt/energia.build/build/linux/work/simpleWebServer.ino:213: undefined reference to `WiFiClass::macAddress(unsigned char*)' /opt/energia.build/build/linux/work/simpleWebServer.ino:228: undefined reference to `WiFiClass::firmwareVersion()' /opt/energia.build/build/linux/work/simpleWebServer.ino:234: undefined reference to `WiFiClass::subnetMask()' /opt/energia.build/build/linux/work/simpleWebServer.ino:239: undefined reference to `WiFiClass::gatewayIP()' /opt/energia.build/build/linux/work/simpleWebServer.ino:244: undefined reference to `WiFiClass::SSID()' /opt/energia.build/build/linux/work/simpleWebServer.ino:247: undefined reference to `WiFiClass::hostByName(char const*, IPAddress&)' /opt/energia.build/build/linux/work/simpleWebServer.ino:254: undefined reference to `WiFi' simpleWebServer.cpp.o: In function `setup': /opt/energia.build/build/linux/work/simpleWebServer.ino:37: undefined reference to `WiFiClass::setCSpin(unsigned char)' /opt/energia.build/build/linux/work/simpleWebServer.ino:38: undefined reference to `WiFiClass::setENpin(unsigned char)' /opt/energia.build/build/linux/work/simpleWebServer.ino:39: undefined reference to `WiFiClass::setIRQpin(unsigned char)' /opt/energia.build/build/linux/work/simpleWebServer.ino:50: undefined reference to `WiFiClass::begin(char*, char const*)' /opt/energia.build/build/linux/work/simpleWebServer.ino:52: undefined reference to `WiFiServer::begin()' /opt/energia.build/build/linux/work/simpleWebServer.ino:59: undefined reference to `WiFi' simpleWebServer.cpp.o: In function `__static_initialization_and_destruction_0': /opt/energia.build/build/linux/work/simpleWebServer.ino:27: undefined reference to `WiFiServer::WiFiServer(unsigned short)' /opt/energia.build/build/linux/work/simpleWebServer.ino:28: undefined reference to `WiFiClient::WiFiClient()' simpleWebServer.cpp.o: In function `loop': /opt/energia.build/build/linux/work/simpleWebServer.ino:63: undefined reference to `WiFiServer::available()' /opt/energia.build/build/linux/work/simpleWebServer.ino:65: undefined reference to `WiFiClient::operator bool()' /opt/energia.build/build/linux/work/simpleWebServer.ino:68: undefined reference to `WiFiClient::connected()' /opt/energia.build/build/linux/work/simpleWebServer.ino:70: undefined reference to `WiFiClient::available()' /opt/energia.build/build/linux/work/simpleWebServer.ino:71: undefined reference to `WiFiClient::read()' /opt/energia.build/build/linux/work/simpleWebServer.ino:107: undefined reference to `WiFiClient::stop()' collect2: error: ld returned 1 exit status Is my environment misconfigured or am i just jumping the gun with the SimpleLink stuff and should cool down while you guys work on it? edited for typos. Quote Link to post Share on other sites
Rei Vilo 695 Posted October 30, 2013 Share Posted October 30, 2013 @@yNos Actually, you may be facing different kinds of issues, one related to Linux and another related to the CC3000. On Linux, I'm afraid I can't help you as I work with Mac and occasionally with Windows. On the CC3000, the problem is the firmware version. Energia provides an CC3000 Firmware Update to 1.11 but the sketch only works if the previous version is 1.10. If you have bought the CC3000 early, I guess you have version 1.9 or prior like me. So you need to update the Driver Patch Programmer and the Firmware Patch Programmer first to version 1.9, then to 1.10, and finally to 1.11. The updates require Windows, but don't work on Windows 8. I also had to switch the anti-virus off, as it was reporting false positive alerts continuously. On the two CC3000 BoosterPacks I have, one works now successfully with the simple web server but has had its MAC address changed , the other doesn't work but has kept its MAC address. References http://processors.wiki.ti.com/index.php/CC3000_Patch_Programmer http://processors.wiki.ti.com/index.php/CC3000_Wi-Fi_Downloads#Archives http://processors.wiki.ti.com/index.php/CC3000_Wi-Fi_Downloads Quote Link to post Share on other sites
yNos 0 Posted October 30, 2013 Author Share Posted October 30, 2013 @@Rei Vilo The compile errors I am seeing are happening before it touches the silicon, I am not sure that firmware would matter at that point, would it? Quote Link to post Share on other sites
yNos 0 Posted October 30, 2013 Author Share Posted October 30, 2013 Noob question: What do I have to change to make it look in the correct dirs for SPI.h and WiFi.h, as well as the .cpp files that go with them? Quote Link to post Share on other sites
energia 485 Posted October 30, 2013 Share Posted October 30, 2013 You will need to copy the lib to the library directory. Energia / libraries / SimplelinkWifi to build/linux/work/hardware/lm4f/cores/lm4f/libraries. Remove the old one first. bluehash 1 Quote Link to post Share on other sites
yNos 0 Posted November 4, 2013 Author Share Posted November 4, 2013 Hey, go figure - you put stuff in the right spot and it works! - Thank you! Now to find a windows box so we can get the firmware updated. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.