-->
Page 1 of 8

xt-ocd support for GDB from esp-open-sdk available

PostPosted: Mon Mar 09, 2015 1:50 pm
by uzevla
[fixed links]
Linux installer:
https://drive.google.com/open?id=0B5qQl06QRo9hRlk2aHVZOGFmQlU&authuser=0

Deselect macraigor driver to avoid installer looking for kernel sources.

Windows installer:
https://drive.google.com/open?id=0B5qQl06QRo9hbncyTHM5Z0RULU0&authuser=0

Works with GDB available from esp-open-sdk build
https://github.com/pfalcon/esp-open-sdk

Re: xt-ocd support for GDB from esp-open-sdk available

PostPosted: Tue Mar 10, 2015 6:14 am
by jcmvbkbc
Thanks for publishing it!

uzevla wrote:Windows installer:
https://drive.google.com/open?id=0B5qQl ... authuser=0
linux installer:
https://drive.google.com/open?id=0B5qQl ... authuser=0

linux and windows lines are mismatched (:

With the following topology.xml it works with ARM-USB-TINY-H:
Code: Select all<configuration>
  <controller id='Controller0' module='ft2232' probe='olimex-tiny-h' usbser='OLVGHYS?' speed='10MHz'/>
  <driver id='XtensaDriver0' module='xtensa' step-intr='mask,stepover,setps' />
  <chain controller='Controller0'>
    <tap id='TAP0' irwidth='5' />
  </chain>
  <system module='jtag'>
    <component id='Component0' tap='TAP0' config='trax' />
  </system>
  <device id='Xtensa0' component='Component0' driver='XtensaDriver0' />
  <application id='GDBStub' module='gdbstub' port='22000'>
    <target device='Xtensa0' />
  </application>
</configuration>


Still it can't properly scan JTAG chain if sRST is connected to ESP reset pin, and it can't survive 'monitor reset system'.
Also setting pc from gdb doesn't work well, you need to set epc2 instead.

Re: xt-ocd support for GDB from esp-open-sdk available

PostPosted: Tue Mar 10, 2015 5:22 pm
by hackrid
thank you very much!

can anyone tell something about the debugging capabilities of the esp8266 ?

how many hw breakpoints / watchpoints? max JTAG frequency?
is flashdownload through jtag debugger possible?

best regards

Re: xt-ocd support for GDB from esp-open-sdk available

PostPosted: Tue Mar 10, 2015 6:18 pm
by jcmvbkbc
hackrid wrote:how many hw breakpoints / watchpoints?

1, 1.

hackrid wrote:is flashdownload through jtag debugger possible?

Should be possible by loading data into RAM and then calling FLASH erase/write ROM functions from gdb.