-
Notifications
You must be signed in to change notification settings - Fork 5
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
NEW feature request: bootload via UART pins ( + reset and Erase ) #1
Comments
Hi Eric, |
I do have the setup and did go trough piupdue code to run a few functions "manually" Native USB vs programming port USB: My many DUE's programming port have "ID_MODEL_ID=003d" instead of the required "03e" of piupdue, tried it with 003d but did not succeed. Native USB works very well. today, i tried to update the 16u2 of my DUE. Once Sam-BA has been triggered, this is where i think the standard UART0 can be used. Sam-BA prototocol is a bit of a hefty beast to read from scratch... would you know of a few commands i can manually forge to make sure It is active ? anything we can do before toggling to BinaryMode (easier debugging)? I have routed my PCB to connect the DUE with my PI and data gets exchanged quite nicely. The Due manages the shutdown of the PI hen the battery gets LOW as I have had a few SDcard corruptions when the PI doesn't go trough a nice shutdown sequence before unpower. Thanks for you help on it. I'll be glad to propose a merge if I can it up and running |
Now I know what the close button does ... |
Hi Eric, Port Detection: Native USB vs programming port USB: Sam-BA prototocol active check: Hope some of this helps. Let me know if there's anything else. |
Hello John, thanks for your feedback, I fully understand about being busy on new endeavours. For my normal operation mode, I do use /tty/AMA0 on the raspberry pi to communicate with the Arduino DUE. Raspberry pi reads the serial data, parses it and stores it in Database for later upload on my Cloud Server whenever it is Available. GOAL : Only use the arduino DUE headers to avoid wiring. I am using a Raspberry PI HAT/Arduino shield PCB design ( of my own ) For Arduino Update, I have been able to update the arduino using PIUPDUE and a USB cable from the PI to the arduino's native USB. and YES I did try it out with the Blinking LED too :-) updating the DUE has 2 main steps: 2- UPLOAD (The hardest part ....) QUESTION: Does SAM-BA bootloader(hardcoded in SAM3X )listens on multiple ports ? While on the raspberry PI /dev/ttyAMA0 @ 115200 baud, I can see the programming stream of the arduino IDE, I can also see the answer from the DUE ( swapping the RX signal of the PI from DUE rx to tx ) If Only I could PING SAMBA to see it is alive... Would you have some advice on this one ? Finally, I Keep this one for last : ( this one will be easy ) Theese are the possibilitites i've identified to put into Sam-BA mode |
Hey Eric, Wrg to pinging the SAMBA to see if it's alive the "V" idea seems like a good one. An easy check would be to put the Due into SAMBA mode manually then open up a minicom on the PI and enter the "V" command manually and check what the Due replies with. Using something like: sudo minicom -b 115200 -o -D "/dev/ttyACM0" Hope you get it going! |
How tough would it be to use the TX/RX pins of the 0.100" header ?
I could possibly supply you with something
do you have suggestions ? I would look into it to avoid requiring wires between my raspberry pi "HAT" / DUE shield interface.
I would love to finally be able to "Give back" with all the librariries I have been enjoying for a long time.
My understanding:
I think those parameters are part of the USB implementation of the 16u4 programming interface
and the USB native interface. Any comments would be appreciated.
looking forward to hear from you
The text was updated successfully, but these errors were encountered: