chipKIT® Development Platform

Inspired by Arduino™

Cannot compile USBMSDHost Network Shield example

Created Fri, 06 Jul 2012 17:55:40 +0000 by ldetherage


ldetherage

Fri, 06 Jul 2012 17:55:40 +0000

I cannot compile the USBMSDHost Network shield example sketch. I am using Windows 7 and have put the examples in the libraries folder as suggested in the forums. I get the error USB/usb.h: No such file or directory.


ldetherage

Fri, 06 Jul 2012 20:50:15 +0000

After going though about six iterations of copying the needed files and directories into the sketch directory I get the following error:

USBMSDHost.cpp.o: In function MyMSDEventHandler(unsigned char, USB_EVENT, void*, unsigned long)': C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:93: undefined reference to USBHost' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:93: undefined reference to ChipKITUSBHost::DefaultEventHandler(unsigned char, USB_EVENT, void*, unsigned long)' USBMSDHost.cpp.o: In function RunUSBTasks()': C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:136: undefined reference to ChipKITUSBHost::Tasks()' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:136: undefined reference to USBHost' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:137: undefined reference to USBMSDHost' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:137: undefined reference to ChipKITUSBMSDHost::Tasks()' USBMSDHost.cpp.o: In function setup': C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:149: undefined reference to USBHost' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:149: undefined reference to ChipKITUSBHost::Begin(_BOOL (*)(unsigned char, USB_EVENT, void*, unsigned long))' USBMSDHost.cpp.o: In function loop': C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:159: undefined reference to ChipKITUSBMSDHost::SCSIMediaDetect()' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:159: undefined reference to USBMSDHost' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:165: undefined reference to MDDFS' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:165: undefined reference to ChipKITMDDFS::Init()' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:170: undefined reference to MDDFS' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:170: undefined reference to ChipKITMDDFS::fopen(char const*, char const*)' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:173: undefined reference to MDDFS' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:173: undefined reference to ChipKITMDDFS::fwrite(void const*, unsigned long, unsigned long, FSFILE*)' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:177: undefined reference to ChipKITMDDFS::fclose(FSFILE*)' C:\Users\Larry\AppData\Local\Temp\build4438579183098534.tmp/USBMSDHost.cpp:177: undefined reference to MDDFS' collect2: ld returned 1 exit status


ldetherage

Sat, 07 Jul 2012 01:38:28 +0000

After moving alot of files around and adding them to the project it now compiles.