Jump to content
Sign in to follow this  

Using TivaC TM4C123GXL + Energ

Recommended Posts

Hi everyone

I recently left behind windows to emigrate to Ubuntu 14.04, but I'm in troubles, I started using energia and a tiva C tm4c123gxl on windows, I did all the instalation, and a lot of programs on windows, but I can't find a way to do so in ubuntu, I've managed from installing energia (thanks to this site), and getting rid off the "grayed "serial port" option", but when I try to upload my programs, I get:


Unable to open USB device: LIBUSB_ERROR_ACCESS
Unable to find any ICDI devices
I'd searched in a lot of forums, pages, but it's driving me crazy not to find an answer. Does anyone know what I'm missing or doing wrong? exist a forum somewhat called "getting started with energia + ubuntu +etc for dummies?" Thanks for your answers.

Share this post

Link to post
Share on other sites

I've seen a bunch of posts concerning Energia and Linux. Most people seem to have trouble with permissions. If you run Energia as administrator/root, are you able to use your serial port and programmer interfaces?

Share this post

Link to post
Share on other sites

Try adding this to a file called /etc/udev/rules.d/61-tiva.rules


You might have to reboot after this, not sure.  Be sure your user is in the "dialout" group.

Share this post

Link to post
Share on other sites

roadruner84: yes, but I can't program the tiva C, it's like I'm able to use the serial port, but don't recognize the device, in windows, you select de device drivers, in ubuntu I haven't found a way to do so


spirilis: I think I saw your answer in another forum, and I did so, thanks by the way, it made me possible to enable serial port, but in that forum it said another name, it was "61-stellapad.rules" do you think that's the problem?I checked, I'm part of the group, I did what you said, but still, I can't upload my programs

Share this post

Link to post
Share on other sites

The rule that @@spirilis posted is the key. Make sure that you as a user are a member of the dialout.

sudo usermod -aG dialout <your user name>

If Linux complains about the dialout group not existing then:

sudo groupadd plugdev


Share this post

Link to post
Share on other sites

sorry for the late answer, i was so sick of this that i wanted to throw my pc through the window, ok, lets answer:

@@OppaErich : I typed dmseg, and obtained pages and pages of information, tried to upload something, no luck...

@@energia  "Robert": no complains of linux of dialout group this time, but no luck uploading a program, instead, energia brings:

"Unable to open USB device: LIBUSB_ERROR_ACCESS

 Unable to find any ICDI devices"
the option serial port is enabled, i think I saw in the dmseg report that identifies what is the device, but the las output of that section is:
"[  792.430541] cdc_acm 2-2:1.0: This device cannot do calls on its own. It is not a modem.

Share this post

Link to post
Share on other sites

Did you try to run Energia as root, using sudo ? Does it work ?


I guess the easiest way is to install CCS and let the CCS Installer do the job.

oppa@oppa-hex-ssd:~$ ls /etc/udev/rules.d
61-msp430uif.rules  70-mm-no-ti-emulators.rules  70-persistent-net.rules  71-ti-permissions.rules  85-lpcxpresso.rules  88-logicanalyzer.rules  99-icdi.rules

oppa@oppa-hex-ssd:~$ cat /etc/udev/rules.d/99-icdi.rules 
ACTION!="add|change", GOTO="openocd_rules_end"
SUBSYSTEM!="usb", GOTO="openocd_rules_end"
ENV{DEVTYPE}!="usb_device", GOTO="openocd_rules_end"

# PC Instruments
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="dc48", MODE="777"

# TI Stellaris Evaluation Board (several)
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bcd9", MODE="777"

# TI Stellaris In-Circuit Debug Interface (ICDI) Board
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bcda", MODE="777"

ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="00fd", MODE="777"

oppa@oppa-hex-ssd:~$ cat /etc/udev/rules.d/71-ti-permissions.rules 

oppa@oppa-hex-ssd:~$ groups
oppa lp dialout cdrom floppy sudo audio dip video plugdev users fuse netdev systemd-journal scanner

I did not add this, the CCS Installer did. ;)

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...