-
-
Notifications
You must be signed in to change notification settings - Fork 398
Arduino-cli board list: no boards found using UART GPIO serial tx rx #435
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
Comments
I think it's due to the fact the the cli only lists USB serial ports, while ttyAMA0 is definitely an hardware serial 🙂 |
Nope, sorry! :( |
@cmaglie do you think we could also list native serial ports (maybe behind a flag)? The change should be at go-serial library level probably |
of course we should, but I'm wondering why it's not listed, the cli should list all available serial ports (even if not "recognized") |
@lucadelu which version of the cli are you using? please post the output of |
@cmaglie arcuino-cli is version 0.5.0 commit 3be3287 |
Uhm, probably this version still hides the unrecognized ports (I don't know if #411 has been merged before or after 0.5.0 @masci ?) @lucadelu to be sure can you try the latest nightly? https://github.com/arduino/arduino-cli#download-a-nightly-build |
No, the feature didn't make it to 0.5.0. There's this release https://github.com/arduino/arduino-cli/releases/tag/0.5.0-showports which is a 0.5.0 plus just that feature added or a nightly as you mentioned. |
@masci @cmaglie we tested with
but it is still not possible to upload the sketch
Using the USB cable instead it is working correctly
The serial communication using GPIO is working using minicom on /dev/ttyAMA0 |
@lucadelu as per https://github.com/arduino/ArduinoCore-samd/blob/master/bootloaders/zero/board_definitions_arduino_mkrwan1300.h#L51 we do provide also the UART bootloader, so the problem may just be the fact that you must trigger the bootloader manually (via doubleclicking the reset button for example). |
@facchinm yes if we trigger the bootloader manually (via doubleclicking the reset button) it works as expected. Now we will look for a way to do the reset through the RaspberryPi (using the RESET pin could work?) Thanks for your support. |
Reset pin definitely works, you just need to simulate the double pressure fast enough to stay in the timeout and slow enough to let the bootloader start and recognize the second event 😉 |
Hi all, here the code used by my colleague to upload an Arduino sketch from Raspberry
|
We are trying to connect an Arduino MKR WAN 1300 device to a Raspberry Pi zero W computer board by wiring the 13(RX), 14(TX) Pins of Arduino and the corresponding GPIO14 (UART0_TXD), GPIO15 (UART0_RXD) on RPi zero W.
Following several online tutorials and the arduino-cli installation guide, we were able so far to configure RPi properly and to install all the required software.
Moreover, we were able to successfully test the UART connection by uploading a simple sketch on Arduino
and testing the serial communication on Raspberry with minicom (minicom -b 9600 -o -D /dev/ttyAMA0)
However, all attempts both to detect the board (arduino-cli board list) or to upload a compiled sketch (arduino-cli board attach serial:///dev/tty/AMA0 MyFirstSketch) to arduino mkr wan 1300 by means of arduino-cli has failed!
We are wondering if the communication via uart is available in the Arduino-CLI code?
Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: