Hi everyone. I have just received a Luminary Micros LM3S811 evaluation kit, and am trying to get it working under Linux (specifically, Kubuntu 6.06).
So far, I have:
-
Checked out the cortex-m3 branch of the OpenOCD project
-
Installed libftdi (from the Ubuntu repository)
-
Installed autoconf, automake, make and gcc 4.0.3
-
Created a symlink for gcc-4.0 as gcc so it’s detectable by autoconf
-
Successfully (I think) built OpenOCD, with the --enable-ft2232_libftdi option.
-
Created a basic config file (there are bound to be some errors but I’m getting there slowly).
I am, however, stuck at this point: The driver sees the FTDI chip, but cannot properly connect to it. Here’s the output
Info: openocd.c:82 main(): Open On-Chip Debugger (2006-10-12 18:00 CEST)
Debug: jtag.c:1210 jtag_init():
Debug: ft2232.c:992 ft2232_init(): 'ft2232' interface using libftdi with 'evb_lm3s811' layout
Error: ft2232.c:1097 ft2232_init(): unable to open ftdi device: unable to claim usb device. Make sure ftdi_sio is unloaded!
lsmod reports no module loaded called ftdi_sio, so I don’t think that this is the actual problem (more a guess as to a likely cause).
I’ve had a google around but haven’t found anything substantive. Any pointers would be gratefully appreciated.
Just in case it’s germane to the issue, here’s my config file:
telnet_port 9999
gdb_port 7777
daemon_startup attach
interface ft2232
jtag_speed 0
reset_config none
jtag_device 4 0x1 0xF 0
jtag_nsrst_delay 10
jtag_ntrst_delay 10
ft2232_layout evb_lm3s811
ft2232_vid_pid 0x0403 0xBCD9
target cortex_m3 little reset_run 0
run_and_halt_time 0 10