New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino Due not supported? #76
Comments
|
No the Due is not supported at the moment, but I will work on adding support for it in the future. |
|
I just worked on adding support for it last night. Please download the code from the following branch: https://github.com/felis/USB_Host_Shield_2.0/tree/Due and let me know if it is working. Note that you should add: #include <SPI.h>In your sketch due to a bug in the Arduino IDE - see: arduino/Arduino#1726. |
|
Also could you please upload the following program to your Due: #include <SPI.h>
#define _usb_h_ // Workaround include trap in the USB Host library
#include <avrpins.h> // Include this from the USB Host library
void setup() {
P9::SetDirWrite();
P10::SetDirWrite();
P74::SetDirWrite();
P75::SetDirWrite();
P76::SetDirWrite();
}
void loop() {
P9::Set();
P10::Set();
P74::Set();
P75::Set();
P76::Set();
delay(1000);
P9::Clear();
P10::Clear();
P74::Clear();
P75::Clear();
P76::Clear();
delay(1000);
}Note that pin 74-76 is located on the ICSP header - see: http://arduino.cc/en/Hacking/PinMappingSAM3X and http://www.robgray.com/temp/Due-pinout.pdf. And confirm that it toggles the pins? |
|
@ns130291 did you have time to try this yet? |
|
I compiled and uploaded it to the Due, but I didn't have time to test it yet. |
|
Okay. Let me know when you have tested it. |
|
Also please run the following example as well: https://github.com/felis/USB_Host_Shield_2.0/blob/master/examples/board_qc/board_qc.ino. |
|
my results running board_qc: btw, I'm using the Due with Sparkfun's USBhostshield |
|
You can not use the Sparkfun shield without modifications, as the SPI pins on the Due are located on the ICSP header! |
|
Yep, it blinks pins 9,10,74,75, & 76 on my Due. |
|
Great! You need to connect some wires from the ICSP header to pins 11, 12 and 13. More information is available here: http://arduino.cc/en/Reference/SPI. After that please run: https://github.com/felis/USB_Host_Shield_2.0/blob/master/examples/board_qc/board_qc.ino again. |
|
This Says it all: Reset number 0 Time to stabilize - 387 cycles Reset number 1 Time to stabilize - 387 cycles Reset number 2 Time to stabilize - 387 cycles Reset number 3 Time to stabilize - 387 cycles Reset number 4 Time to stabilize - 387 cycles Reset number 5 Time to stabilize - 387 cycles Reset number 6 Time to stabilize - 387 cycles Reset number 7 Time to stabilize - 387 cycles Reset number 8 Time to stabilize - 387 cycles Reset number 9 Time to stabilize - 387 cycles Reset number 10 Time to stabilize - 387 cycles Reset number 11 Time to stabilize - 387 cycles Reset number 12 Time to stabilize - 387 cycles Reset number 13 Time to stabilize - 387 cycles Reset number 14 Time to stabilize - 387 cycles Reset number 15 Time to stabilize - 387 cycles Reset number 16 Time to stabilize - 387 cycles Reset number 17 Time to stabilize - 387 cycles Reset number 18 Time to stabilize - 387 cycles Reset number 19 Time to stabilize - 387 cycles Reset number 20 Time to stabilize - 387 cycles Reset number 21 Time to stabilize - 387 cycles Reset number 22 Time to stabilize - 387 cycles Reset number 23 Time to stabilize - 387 cycles Reset number 24 Time to stabilize - 387 cycles Reset number 25 Time to stabilize - 387 cycles Reset number 26 Time to stabilize - 387 cycles Reset number 27 Time to stabilize - 387 cycles Reset number 28 Time to stabilize - 387 cycles Reset number 29 Time to stabilize - 387 cycles Reset number 30 Time to stabilize - 387 cycles Reset number 31 Time to stabilize - 387 cycles Reset number 32 Time to stabilize - 387 cycles Reset number 33 Time to stabilize - 387 cycles Reset number 34 Time to stabilize - 387 cycles Reset number 35 Time to stabilize - 387 cycles Reset number 36 Time to stabilize - 387 cycles Reset number 37 Time to stabilize - 387 cycles Reset number 38 Time to stabilize - 387 cycles Reset number 39 Time to stabilize - 387 cycles Reset number 40 Time to stabilize - 387 cycles Reset number 41 Time to stabilize - 387 cycles Reset number 42 Time to stabilize - 387 cycles Reset number 43 Time to stabilize - 387 cycles Reset number 44 Time to stabilize - 387 cycles Reset number 45 Time to stabilize - 387 cycles Reset number 46 Time to stabilize - 387 cycles Reset number 47 Time to stabilize - 387 cycles Reset number 48 Time to stabilize - 387 cycles Reset number 49 Time to stabilize - 387 cycles Reset number 50 Time to stabilize - 387 cycles Reset number 51 Time to stabilize - 387 cycles Reset number 52 Time to stabilize - 387 cycles Reset number 53 Time to stabilize - 387 cycles Reset number 54 Time to stabilize - 387 cycles Reset number 55 Time to stabilize - 387 cycles Reset number 56 Time to stabilize - 387 cycles Reset number 57 Time to stabilize - 387 cycles Reset number 58 Time to stabilize - 387 cycles Reset number 59 Time to stabilize - 387 cycles Reset number 60 Time to stabilize - 387 cycles Reset number 61 Time to stabilize - 387 cycles Reset number 62 Time to stabilize - 387 cycles Reset number 63 Time to stabilize - 387 cycles Reset number 64 Time to stabilize - 387 cycles Reset number 65 Time to stabilize - 387 cycles Reset number 66 Time to stabilize - 387 cycles Reset number 67 Time to stabilize - 387 cycles Reset number 68 Time to stabilize - 387 cycles Reset number 69 Time to stabilize - 387 cycles Reset number 70 Time to stabilize - 387 cycles Reset number 71 Time to stabilize - 387 cycles Reset number 72 Time to stabilize - 387 cycles Reset number 73 Time to stabilize - 387 cycles Reset number 74 Time to stabilize - 387 cycles Reset number 75 Time to stabilize - 387 cycles Reset number 76 Time to stabilize - 387 cycles Reset number 77 Time to stabilize - 387 cycles Reset number 78 Time to stabilize - 387 cycles Reset number 79 Time to stabilize - 387 cycles Reset number 80 Time to stabilize - 387 cycles Reset number 81 Time to stabilize - 387 cycles Reset number 82 Time to stabilize - 387 cycles Reset number 83 Time to stabilize - 387 cycles Reset number 84 Time to stabilize - 387 cycles Reset number 85 Time to stabilize - 387 cycles Reset number 86 Time to stabilize - 387 cycles Reset number 87 Time to stabilize - 387 cycles Reset number 88 Time to stabilize - 387 cycles Reset number 89 Time to stabilize - 387 cycles Reset number 90 Time to stabilize - 387 cycles Reset number 91 Time to stabilize - 387 cycles Reset number 92 Time to stabilize - 387 cycles Reset number 93 Time to stabilize - 387 cycles Reset number 94 Time to stabilize - 387 cycles Reset number 95 Time to stabilize - 387 cycles Reset number 96 Time to stabilize - 387 cycles Reset number 97 Time to stabilize - 387 cycles Reset number 98 Time to stabilize - 387 cycles Reset number 99 Time to stabilize - 387 cycles Checking USB device communication. Reset complete. Waiting for the first SOF... All tests passed. Press RESET to restart test I can wire the GPins to the GPouts, if that test data is useful to you. |
|
Oh, by the way it was SPI that had MOSI,MOSO,SCK. ICSP had MOSI2, MOSO2, & SCK2 in the same pin positions. |
|
@etherviz thanks! I will close this issue now then and merge it into master ;) Ahh I get what you say, but I was not referring to the pin label. That type of connected is called an ICSP header, but anyway yes it is labeled SPI on the board. Btw if you consider buying another USB Host shield, then please consider buying from either: http://www.circuitsathome.com/products-page/arduino-shields or http://shop.tkjelectronics.dk/product_info.php?products_id=43 to support the guys that have actually done the development. |
|
Could you just confirm that it is still working after this commit: d8cadc5? You will need to redownload the code from the Due branch: https://github.com/felis/USB_Host_Shield_2.0/archive/Due.zip. |
|
Yep, same results! Also, I already ordered to circuits@home board, to have as a backup. |
|
Okay great! |
|
Hi, Lauszus, Can you help me?? i have arduino 1. Circuits At Home 2011 |
|
@LASKER17 what shield are you using? |
|
Lauszus i'm using the arduino UNO
|
|
Okay, but what USB Host shield are you using? :) |
|
I have this one
|
|
@LASKER17 you didn't send a link? |
|
No, I sent a picture, but I have a usb host shield Keyes @LASKER17 https://github.com/LASKER17 you didn't send a link? — |
|
If you want to attach a picture, you should attach it via the web GUI. Anyway please buy the official shield from either: http://shop.tkjelectronics.dk/product_info.php?products_id=43 or https://www.circuitsathome.com/products-page/arduino-shields, as there is all kind of weird issues with the Chinese clones. |
|
Many other shields are UNO ONLY. You get what you pay for. On Tue, Nov 24, 2015 at 8:36 AM, Kristian Sloth Lauszus <
Visit my github for awesome Arduino code @ https://github.com/xxxajk |
|
And you will get support on top of that ;) |
I am trying to compile the ADK samples for the Arduino Due and get the following error messages:
The text was updated successfully, but these errors were encountered: