Author Topic: Connecting to OpenOCD Server  (Read 9366 times)

Offline PaowZ

  • Multiple posting newcomer
  • *
  • Posts: 14
Connecting to OpenOCD Server
« on: October 29, 2009, 03:33:35 pm »

Hello there ! (again..)

I'm using a zy1000 remote debugger appliance with an embedded openOCD system through which I have to connect using GDB.
So, I set up my target for debug filling requested infos in Remote Connection tab with TCP, IP Address and Port.
But C::B hangs when entering debug mode with the following in Debug Tab:

Quote
Selecting target:
Debug-mx27_V1
Adding source dir: F:\C2\PROJETS\AL22\LIB\peg\
Adding source dir: F:\C2\PROJETS\AL22\LIB\peg\
Adding source dir: F:\C2\PROJETS\AL22\APPLI\SI

I supplied this script in Additional Commands tab (before connection)

Quote
# File to flash
file F:/C2/PROJETS/AL22/refsys/rtose/mx27/obj/rtose_debug/AL22_V1.elf

# Connect to GDB Server
target remote 192.168.0.217:3333
set mem inaccessible-by-default off
monitor gdb memory map disable
monitor reset init
monitor halt
load
monitor reg pc 0xa0200000
stepi

..wherein I tell GDB to connect to the appliance.

I successfully got connected to the zy1000 through gdb (using arm-elf-gdb.exe with 'target remote ip:port') and passed commands through it, but I can't find out why C::B just does not connect.

Any idea ??

Thanks again :)

Offline PaowZ

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Connecting to OpenOCD Server
« Reply #1 on: October 30, 2009, 06:11:06 pm »
okay.. let's say it another way.. :)

What am I supposed to see on the C::B GUI when I enter a remote debug session ?

thanks :)

Offline PaowZ

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Connecting to OpenOCD Server
« Reply #2 on: November 03, 2009, 11:14:41 am »
..I noticed that when I start a debug session I can see gdb running in task list but no output caught by C::B.. :shock: