Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » [Arduino C++ IDE] configure usb serial port on Linux
[Arduino C++ IDE] configure usb serial port on Linux [message #1716171] Tue, 01 December 2015 21:14 Go to next message
Vlad Gheorghe is currently offline Vlad GheorgheFriend
Messages: 127
Registered: May 2011
Senior Member
Hi Doug,

Thank you for the great present that you made early this year to the Arduino community.

After trying it out over the week-end on my old projects, I can say that everything looks great, with some rough edges.

I'll try to explain one of the issues that should be fixed.

I have a Micro (miniaturized Leonardo) / Ubuntu 14.04.
Because of some design decisions (usb serial on same chip as the main uC), these boards USB connection can get reset while they are plugged, and they get *re-enumerated*.

Therefore, my *single* Micro device will get, under normal development use, one of the ports /dev/ttyACM{0,1,2,3}.

See
https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro#toc3
https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro#toc12

For Linux/udev, the solution that I find most elegant (and it can also solve the identification of multiple boards), is creating custom UDEV rules.
( e.g. http://www.joakimlinde.se/microcontrollers/arduino/avr/udev.php )

In my case, my board is also mapped to /dev/micro.

Now - to the Arduino IDE.
The IDE only allows the selection of /dev/tty(USB|ACM)[0-9] as device file name.
This does not accommodate for the use case above.
Also, it does not handle the device file name change ( which I think it should not ).

As a work-around - I had to edit the configuration files to force the device file to /dev/micro.

So the request is to allow the arduino usb serial file name to be arbitrary.

Best regards
Vlad Gheorghe



Re: [Arduino C++ IDE] configure usb serial port on Linux [message #1716173 is a reply to message #1716171] Tue, 01 December 2015 21:29 Go to previous messageGo to next message
Doug Schaefer is currently offline Doug SchaeferFriend
Messages: 135
Registered: July 2009
Senior Member
That's a good point. I have it pattern matched for new users and to avoid putting all of /dev into the list. But it should be easy to allow the user to type a path there (right now the text box is read only). Please raise a bug in bugzilla and I'll add it to the todo list.

Thanks!
Doug
Re: [Arduino C++ IDE] configure usb serial port on Linux [message #1716175 is a reply to message #1716173] Tue, 01 December 2015 22:09 Go to previous message
Vlad Gheorghe is currently offline Vlad GheorgheFriend
Messages: 127
Registered: May 2011
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=483415

After some more tests, I see that the arduino Console does not always connect to the target.
Is there any way to get some logging/debug information ? (there are no errors in the error log)


Thanks
Vlad
Previous Topic:Arduino C++ IDE -- Two Launcher Bars
Next Topic:doesn't hit breakpoint at vTaskStartScheduler()
Goto Forum:
  


Current Time: Fri Mar 29 12:03:26 GMT 2024

Powered by FUDForum. Page generated in 0.02872 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top