1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

openocd: support OP and AHRS at the same time

Split the floss-jtag.cfg file into separate versions
for OP and AHRS.

Push AHRS onto non-default ports for gdb, tcl and
telnet.

Update the AHRS gdb setup script to point at the new
gdb port.

Add (commented out) example sytax to support distinguishing
between multiple floss-jtag boards that don't have serial
numbers.  Uses the usb bus address of each device as the
selector.  See this patch posted to the openocd mailing list
for how to add this functionality to openocd:
  http://lists.berlios.de/pipermail/openocd-development/2010-June/015785.html

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@755 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
stac 2010-06-13 04:22:30 +00:00 committed by stac
parent 53e2949d04
commit 90f9e6d309
6 changed files with 33 additions and 12 deletions

View File

@ -287,7 +287,7 @@ OOCD_EXE=openocd
# debug level # debug level
OOCD_CL=-d0 OOCD_CL=-d0
# interface and board/target settings (using the OOCD target-library here) # interface and board/target settings (using the OOCD target-library here)
OOCD_CL+=-f ../Project/OpenOCD/floss-jtag.cfg -f ../Project/OpenOCD/stm32.cfg OOCD_CL+=-f ../Project/OpenOCD/floss-jtag.ahrs.cfg -f ../Project/OpenOCD/stm32.cfg
# initialize # initialize
OOCD_CL+=-c init OOCD_CL+=-c init
# show the targets # show the targets

View File

@ -429,7 +429,7 @@ OOCD_EXE=openocd
# debug level # debug level
OOCD_CL=-d0 OOCD_CL=-d0
# interface and board/target settings (using the OOCD target-library here) # interface and board/target settings (using the OOCD target-library here)
OOCD_CL+=-f ../Project/OpenOCD/floss-jtag.cfg -f ../Project/OpenOCD/stm32.cfg OOCD_CL+=-f ../Project/OpenOCD/floss-jtag.openpilot.cfg -f ../Project/OpenOCD/stm32.cfg
# initialize # initialize
OOCD_CL+=-c init OOCD_CL+=-c init
# show the targets # show the targets

View File

@ -0,0 +1,15 @@
#
# Floss JTAG for AHRS
#
interface ft2232
ft2232_vid_pid 0x0403 0x6010
ft2232_device_desc "Dual RS232-HS"
#ft2232_bus_addr "002:103"
#ft2232_serial "1234567890"
ft2232_layout "usbjtag"
ft2232_latency 2
gdb_port 3334
tcl_port 6667
telnet_port 4445

View File

@ -1,9 +0,0 @@
#
# Floss JTAG
#
interface ft2232
ft2232_vid_pid 0x0403 0x6010
ft2232_device_desc "Dual RS232-HS"
ft2232_layout "usbjtag"
ft2232_latency 2

View File

@ -0,0 +1,15 @@
#
# Floss JTAG OpenPilot
#
interface ft2232
ft2232_vid_pid 0x0403 0x6010
ft2232_device_desc "Dual RS232-HS"
#ft2232_bus_addr "002:088"
#ft2232_serial "1234567890"
ft2232_layout "usbjtag"
ft2232_latency 2
gdb_port 3333
tcl_port 6666
telnet_port 4444

View File

@ -1,4 +1,4 @@
target remote localhost:3333 target remote localhost:3334
monitor reset halt monitor reset halt
monitor cortex_m3 vector_catch all monitor cortex_m3 vector_catch all
file ./build/ahrs/AHRS.elf file ./build/ahrs/AHRS.elf