Jump to content
rando

Energia slow to start with TI Launchpad connected, Ubuntu 12.04

Recommended Posts

Folks,

 

I'm seeing a very odd behavoir that Energia is very very slow to start with Launchpad connected, as soon as I pull our the USB it starts and runs correctly. When I plug it back in it responds very slowly if at all, to mouse click.

 

Here my log file from dmesg.

 

[59962.164025] usb 2-2: new full-speed USB device number 111 using ohci_hcd
[59962.408357] cdc_acm 2-2:1.0: This device cannot do calls on its own. It is not a modem.
[59962.408364] cdc_acm 2-2:1.0: No union descriptor, testing for castrated device
[59962.408394] cdc_acm 2-2:1.0: ttyACM0: USB ACM device

 

dmesg Seems OK...

 

Both version '8 and '9 same result. java version "1.7.0_09".

 

I've tried starting with all manner of permissions... no change.

 

Windows runs fine on this board, all tests I have tried.

 

Any ideas? Thanks!

 

Best,

 

Randy
 

Share this post


Link to post
Share on other sites

All,

 

Additional info:

 

1. IAR Kickstart, works perflectly from a VirtualBox XP instance. Compile, download, debug. same port, same board, etc.

 

2. I test the Pinguino OTG, (PIC32), FTDI USB TLL converter, USB port on the STM32 Discovery F3, all work OK.

 

R.

Share this post


Link to post
Share on other sites

All,

 

Additional info:

 

1. IAR Kickstart, works perflectly from a VirtualBox XP instance. Compile, download, debug. same port, same board, etc.

 

2. I test the Pinguino OTG, (PIC32), FTDI USB TLL converter, USB port on the STM32 Discovery F3, all work OK.

 

R.

 

If you have an FTDI USB converter you can use that instead of the one built-in to the launchpad.  Unplug the TX and RX jumpers on J3 and connect RX/TX/GND from the FTDI to the P1.1 and P1.2 (See the wiki as the TX/RX depend on the chip )  G2553 P1.1 = TX, P1.2 = RX. G2452 P1.1 = RX, P1.2 = TX.  Using an FTDI converter will allow you to run faster than 9600.  The LP onboard usb is limited to 1200-9600.

 

This all assumes your FTDI has 3.3volt signals.

 

-rick

Share this post


Link to post
Share on other sites

Sir,

 

Thanks for the kind consideration of your prompt response.

 

I had some issues with the patch install...

 

rasyoung@valiant:/usr/src$ dir
cdcacm-0.1                linux-headers-3.2.0-31-generic-pae
linux-headers-3.2.0-24            linux-headers-3.2.0-32
linux-headers-3.2.0-24-generic        linux-headers-3.2.0-32-generic
linux-headers-3.2.0-24-generic-pae  linux-headers-3.2.0-32-generic-pae
linux-headers-3.2.0-26            linux-headers-3.2.0-33
linux-headers-3.2.0-26-generic        linux-headers-3.2.0-33-generic
linux-headers-3.2.0-26-generic-pae  linux-headers-3.2.0-33-generic-pae
linux-headers-3.2.0-30            linux-headers-3.2.0-34
linux-headers-3.2.0-30-generic        linux-headers-3.2.0-34-generic
linux-headers-3.2.0-30-generic-pae  linux-headers-3.2.0-34-generic-pae
linux-headers-3.2.0-31            nvidia-current-295.40
linux-headers-3.2.0-31-generic        vboxhost-4.2.4
rasyoung@valiant:/usr/src$ cd cdc*
rasyoung@valiant:/usr/src/cdcacm-0.1$ ls
cdcacm.c   dkms.conf   install.sh~  Makefile~
cdc-acm.h  install.sh  Makefile     readme.txt
rasyoung@valiant:/usr/src/cdcacm-0.1$ sudo ./install.sh
sudo: ./install.sh: command not found
 

I think I have the correct prereqs.?...

 

Best,

 

Randy

Share this post


Link to post
Share on other sites

r.

 

I've seen these posts before, but forgot about their significance... oops!

 

Hey I'm getting this error when I attempt to use the make file to rebuld a new cdc,etc.

 

make[1]: Entering directory `/usr/src/linux-headers-3.2.0-34-generic-pae'
make[1]: *** No rule to make target `Launchpad'.  Stop.
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-34-generic-pae'
make: *** [all] Error 2

 

Have you seen this?

 

Thanks

 

Randy
 

Share this post


Link to post
Share on other sites

Download the zip file from the page linked by Rickta59

 

Unzip it somewhere

 

cd where_you_unzipped_it

 

cd linux-3.0/cdcacm-0.1/

 

make clean

 

make

 

This should produce a cdcacm.ko file

 

sudo modprobe -r cdc_acm (just in case it's been already loaded)

 

sudo insmod ./cdcacm.ko

Share this post


Link to post
Share on other sites

Everyone,

 

Thanks! These instructions worked perfectly and has seemed to corrected most the issues I was having. Will post more when I've test more completely. I need to think about if I can still program the board, and what it takes to get the new module to "stick", (if anything)

 

My compile issue was I think, I was not in proper directory when I issued the make command. That being some other directory than where the kernel headers were located.

 

At least the serial demo, ASCHIITable, runs after reset and I can see the ouput in Energia's serial terminal on /dev/ttyACTM0 now.

 

Just to review I am on  Ubuntu 12.04 LTS, 3.2.0-34-generic-pae.

 

R.

 


 

Share this post


Link to post
Share on other sites

All,

 

Does anyone have a notion how best to insure that...

 

The newly build cdcacm.ko file is ...

"sudo modprobe -r cdc_acm (just in case it's been already loaded)

sudo insmod ./cdcacm.ko"

 

happens and automagically "sticks" until the next reboot?

 

Does it make sense to keep the old copy?

 

R.

Share this post


Link to post
Share on other sites

I would keep it. I'm probably not a good person to ask though. I load it by hand each time I reboot. I'd prefer to keep my kernel and drivers pretty much stock.  I don't reboot that often so it isn't a big deal for me.  I know if I'm having any strange issues, I can just reboot and go back to the way it came originally.

 

-rck

Share this post


Link to post
Share on other sites

You could move the existing module somewhere else (outside the /lib/modules/xxxx directory), then put the cdcacm.ko in its place then run "sudo depmod -a".

Remember to repeat the whole procedure (clean/compile/install) if you change the kernel (it can be automated with dkms, in fact the supplied "install.sh" script should do that, but I doubt it works and I'm not going to try it).

Share this post


Link to post
Share on other sites

I can't build the kernel module, when I run ./install.sh I get this error:

 

make -C /lib/modules/3.8-2-686-pae/build M=/usr/src/cdcacm-0.1 modules

make[1]: Entering directory `/usr/src/linux-headers-3.8-2-686-pae'
  CC [M]  /usr/src/cdcacm-0.1/cdcacm.o
/usr/src/cdcacm-0.1/cdcacm.c: In function

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×