-
Notifications
You must be signed in to change notification settings - Fork 794
Add support for Sparkfun Artemis Redboard #654
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
Conversation
Changes per #654. Builds successfully for Sparkfun Redboar Artemis ATP
formating fix
It looks to build successfully on my machine @Lauszus. Thanks for the guidance. This PR was my first and also my first real attempt at using Git. |
update to include #undef MAKE_PIN for new SF board
updated formatting
updated formatting
All looks good now. Have you confirmed that the library now works with the board? |
I'm waiting for a new USB host shield to arrive. Examples build properly. I will hopefully be able to report functionality later this week. |
@Topo-png thanks. I'll squash and merge the commits once you have verified that it is actually working with the board :) |
I loaded the XBOXONE example to the board for testing. I went and reflowed the pins and loaded the board_qc program. |
Use shorter wires for SPI. :-) |
@xxxajk - this is a shield directly connected to header pins, no long wires other than the PCB traces. I modified the pins to match what I believe is the correct pinout. Using Pin Out and this image I used the blink sketch to flash each pin independently to verify the proper pinout (SCK, MOSI, MISO, INT, SS). I also cross-referenced the standard Arduino pinout to the new Redboard pinout. (see above image, small black text offset to the left in the red rectangle). in ushbost.h in usbcore.h Board_qc now outputs the following |
Slow down the SPI, going at maximum rated rate with some SPI causes issues. This was noted before on Atmel's SAMD ARM, where it's SPI didn't clock the bit in at the correct point, and would miss or hit it in transition. |
I haven't changed any SPI speeds. How do I slow this down? |
Unfortunately someone (not me) didn't make it a define so... Here's the list. https://github.com/felis/USB_Host_Shield_2.0/blob/master/usbhost.h#L182 |
Thanks, I reduced those down to 260000 and I still didn't have any luck. The errors take noticeably longer to report so I believe this is working properly. |
Try the following: If you can't get it working at less than 8MHz, then something else is wrong. |
One other note, is that the official shields, use the ICSP header for SPI. Just sayin'... |
updated pinouts for sparkfun redboard
updated pinouts for Sparkfun redboard ATP
I've attempted to implement the changes required to support the Sparkfun Artemis Reboard. I'm hung up trying to debug the following.