Created Fri, 04 May 2012 15:02:37 +0000 by JoeyS
Fri, 04 May 2012 15:02:37 +0000
I have a chipkt UNO32 and I'm trying using it with the USB Host Shield library from circuits@home to connect with an Android device, but this just works with Arduino Mega. I downloaded a patched version that works with Arduino Uno from here [url]http://marioboehmer.blogspot.pt/2011/05/android-adk-with-standard-arduino-uno.html[/url] , but this library still not works with the UNO32. I made some few changes in order to recognize the UNO32 board using
but stills not working, beacuse the library tries tu use the eeprom and gives me some errors like these
'SPDR' was not declared in this scope 'SPSR' was not declared in this scope
and some other erros I don't understand like these
'PORTB1' was not declared in this scope 'PORTD7' was not declared in this scope
Has someone know how to put this to work? I'm really in need. I put the code attached.
Sorry for my english and take easy one me, because I'm a newbie :oops:
Wed, 09 May 2012 04:28:18 +0000
SPDR = SPI Data Register SPSR = SPI Status Register PORTB1 = 1 PORTD7 = 7
For the last two I'm not absolutely positive on that but I'm pretty sure that's right by looking at the code. You'll have to change all the INT RST and GPX defines to be the correct values for the PIC32MX. I don't know what pin they are connected to on the pic but for example
#define INT 1 #define INT_PORT LATB #define INT_DDR TRISB #define INT_PIN PORTB
The SPI stuff will need to be switched over to something like DSPI. There is quite a bit that needs to be done in order for this library to work properly, it shouldn't be too hard if you sit down and figure out what each part does. Unfortunately I don't have that shield so I can't verify or anything. But hopefully this helps.
Best Regards, Ryan K Digilent
Thu, 31 May 2012 23:18:05 +0000
Did you get this working? I am planning on getting a host shield for my app as well. I like the mini version as I can wire that to a breakout board made for the Uno32.