Hello Limor and other readers
I tried compiling the SPI example (under os x) but it seems to be missing the header files which contains all of the parameters. Is it one of the headers from the usbtiny source? Anyway, I'm not that interested in SPI itself, my main goal is to use the USBTiny to program a PIC16F88. It that even remotely possible? I know nothing about PICs, I only need to make a very little (two liner in asm) modification to the firmware of a nice NiMh Charger kit from Silicon Chip (I'm going to use a gas gauge and it needs to know when the charge is done).
Thanks
Using as SPI
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 28
- Joined: Mon Aug 27, 2007 3:04 pm
chimera:exampleusbdriver-1 mlalonde$ make
gcc -c -g -I. usbdriver.cpp
usbdriver.cpp:9:23: error: usbdriver.h: No such file or directory
usbdriver.cpp: In function ‘usb_dev_handle* acquireTinyISP()’:
usbdriver.cpp:42: error: ‘TINYISP_VENDORID’ was not declared in this scope
usbdriver.cpp:43: error: ‘TINYISP_PRODUCTID’ was not declared in this scope
usbdriver.cpp: In function ‘void dataToDisplay(std::string)’:
usbdriver.cpp:68: error: ‘USBTINY_CLR’ was not declared in this scope
usbdriver.cpp:73: error: ‘USBTINY_SPI1’ was not declared in this scope
usbdriver.cpp:75: error: ‘USBTINY_SET’ was not declared in this scope
usbdriver.cpp: In function ‘int main(int, char**)’:
usbdriver.cpp:91: error: ‘USBTINY_POWERUP’ was not declared in this scope
usbdriver.cpp:91: error: ‘RESET_LOW’ was not declared in this scope
usbdriver.cpp:93: error: ‘RESET_HIGH’ was not declared in this scope
usbdriver.cpp error: ‘USBTINY_DDRWRITE’ was not declared in this scope
usbdriver.cpp:102: error: ‘USBTINY_SET’ was not declared in this scope
usbdriver.cpp:105: error: ‘USBTINY_POWERDOWN’ was not declared in this scope
make: *** [usbdriver.o] Error 1
gcc -c -g -I. usbdriver.cpp
usbdriver.cpp:9:23: error: usbdriver.h: No such file or directory
usbdriver.cpp: In function ‘usb_dev_handle* acquireTinyISP()’:
usbdriver.cpp:42: error: ‘TINYISP_VENDORID’ was not declared in this scope
usbdriver.cpp:43: error: ‘TINYISP_PRODUCTID’ was not declared in this scope
usbdriver.cpp: In function ‘void dataToDisplay(std::string)’:
usbdriver.cpp:68: error: ‘USBTINY_CLR’ was not declared in this scope
usbdriver.cpp:73: error: ‘USBTINY_SPI1’ was not declared in this scope
usbdriver.cpp:75: error: ‘USBTINY_SET’ was not declared in this scope
usbdriver.cpp: In function ‘int main(int, char**)’:
usbdriver.cpp:91: error: ‘USBTINY_POWERUP’ was not declared in this scope
usbdriver.cpp:91: error: ‘RESET_LOW’ was not declared in this scope
usbdriver.cpp:93: error: ‘RESET_HIGH’ was not declared in this scope
usbdriver.cpp error: ‘USBTINY_DDRWRITE’ was not declared in this scope
usbdriver.cpp:102: error: ‘USBTINY_SET’ was not declared in this scope
usbdriver.cpp:105: error: ‘USBTINY_POWERDOWN’ was not declared in this scope
make: *** [usbdriver.o] Error 1
Please be positive and constructive with your questions and comments.