Created Mon, 01 Jul 2013 17:16:13 +0000 by mdsousa
Mon, 01 Jul 2013 17:16:13 +0000
Hi
I have mpide (Mpide 0023-linux-201220903) installed on ubuntu 12.04.2. My Max32 is plugged in and it's leds are on. The IDE comes up but the Tools->Serial Port selection is greyed out. Here's some specifics about my setup:
$ $ ll /dev/ttyUSB* crw-rw---- 1 root dialout 188, 0 Jul 1 10:35 /dev/ttyUSB0 $ $ $ id mike uid=1000(mike) gid=1000(mike) groups=1000(mike),4(adm),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),124(sambashare),1001(usrp) $ $ $ dmesg | grep -i tty [ 0.000000] console [tty0] enabled [ 14.226061] Bluetooth: RFCOMM TTY layer initialized [688114.929553] usb 5-2: FTDI USB Serial Device converter now attached to ttyUSB0 [697186.410057] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 [994615.528425] usb 5-2: FTDI USB Serial Device converter now attached to ttyUSB0 $ $ $ ./mpide >& fred $ cat fred | grep -i serial 1486 [main] DEBUG processing.app.Base - Base: addLibraries: Base.subfolder: /home/mike/mpide-0023-linux-20120903/./hardware/pic32/libraries/SoftwareSerial 1508 [main] DEBUG processing.app.Base - Base: addLibraries: Base.subfolder: /home/mike/mpide-0023-linux-20120903/libraries/SoftwareSerial 1577 [main] DEBUG processing.app.Base - Base: addLibraries: Base.subfolder: /home/mike/mpide-0023-linux-20120903/./hardware/pic32/libraries/SoftwareSerial 1590 [main] DEBUG processing.app.Base - Base: addLibraries: Base.subfolder: /home/mike/mpide-0023-linux-20120903/libraries/SoftwareSerial $
On the IDE I've tried selecting both Tools->Board->chipKit Max32 and Tools->Board chipKit Max32-USB for Serial. Either way at the lower right corner of the IDE it states "chipKIT MAX32 on COM1" or "chipKIT MAX32-USB for Serial on COM1".
Thanks...
Mike
Mon, 01 Jul 2013 17:29:10 +0000
When did you add yourself to the dialout group? Have you logged out since doing that?
Mon, 01 Jul 2013 17:31:08 +0000
I've never set it, so I'm guessing when I installed ubuntu...
Mon, 01 Jul 2013 21:54:07 +0000
hmmm
I had to set it manually on mine. Have you logged out and back in again since installing MPLAB?
If you do "sudo chmod 777 /dev/ttyUSB*" with the board connected does it (temporarily) work?
Tue, 02 Jul 2013 00:49:14 +0000
Thanks majenko, "If you do "sudo chmod 777 /dev/ttyUSB*" with the board connected does it (temporarily) work?" This got me past the greyed out selection. Not sure why I had to make the permissions so, but it worked..:)
I then tracked down some 32 bit libraries that it complained about and was able to download the led blinking example to the brd.
Thanks...
Tue, 02 Jul 2013 08:50:57 +0000
My guess is that you haven't logged out (and i mean right out - maybe even reboot) after you were added to the dialout group. That change only has any effect when you log in to the system. Only then will you have access to the /dev entry on a permanant basis.
Wed, 03 Jul 2013 00:41:39 +0000
On my system (Ubuntu) I noted that the serial port was greyed out unless the board was connected and also in bootloader mode. This was a little confusing at first, but I got used to it.
FYI: my setup is documented under "Getting Started" at chipkit.net
Guy