[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    Re: [OpenOCD-devel] xtensa, ESP8266 support
From:       Thomas Schmid <thomas.schmid () gmail ! com>
Date:       2016-02-23 0:33:32
Message-ID: CAASY2=MB6yVOZKDnSyGXsCGvxuw+2kse4MHDPdigqWwJ-ZRiug () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I don't see any polling issues. I did have to update my xtensa gcc
toolchain for a newer GDB (version 7.10 works great). Older versions that
were default in esp-open-sdk ( I think it was 7.5?) had issues with stack
frames.

- Thomas


On Mon, Feb 22, 2016 at 4:25 PM, Angus Gratton <gus@projectgus.com> wrote:

> Hi Thomas,
>
> Thanks for cleaning this up and submitting it! I got busy with
> esp-open-rtos stuff and I just never looked back to it.
>
> On Mon, Feb 22, 2016 at 01:12:05PM -0700, Thomas Schmid wrote:
> > I just took their code and forward ported it to the latest openocd master
> > branch. Hopefully, we can consolidate the different efforts and add it
> into
> > mainline openocd development instead of side projects.
>
> Hurrah! Yes, I always intended to submit it here (I posted on the list
> last year) after it got a bit more stable.
>
> > I tested it with the Sparkfun ESP8266 Thing and a Olimex ARM-USB-Tiny-h.
> I
> > can step, next, and set breakpoints.
>
> The sticking point I had (which it's possible @sysprogs already fixed) was
> always maintaining/establishing the JTAG connection during/after a reset.
> The debug interface would lose "sync" with the CPU very often (poll errors,
> etc.). Does this part work OK now?
>
> > Loading of an image only works
> > partially, as it doesn't seem to be writing the external SPI flash.
>
> There's no SPI flash driver yet so that's to be expected I guess. We could
> write one for ESP8266 fairly easily, as there are SPI flash functons in the
> boot ROM that the debug interface can call directly to perform erase
> operations, write operations, etc.
>
> I'll try and find time to test this patch a bit myself, but it might be
> better left to other people tbh. :)
>
> Thanks again for moving it along!
>
>
> Angus
>

[Attachment #5 (text/html)]

<div dir="ltr">I don&#39;t see any polling issues. I did have to update my xtensa gcc \
toolchain for a newer GDB (version 7.10 works great). Older versions that were \
default in esp-open-sdk ( I think it was 7.5?) had issues with stack frames.  \
</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">- \
Thomas<br><br></div></div> <br><div class="gmail_quote">On Mon, Feb 22, 2016 at 4:25 \
PM, Angus Gratton <span dir="ltr">&lt;<a href="mailto:gus@projectgus.com" \
target="_blank">gus@projectgus.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi Thomas,<br> <br>
Thanks for cleaning this up and submitting it! I got busy with esp-open-rtos stuff \
and I just never looked back to it.<br> <span class=""><br>
On Mon, Feb 22, 2016 at 01:12:05PM -0700, Thomas Schmid wrote:<br>
&gt; I just took their code and forward ported it to the latest openocd master<br>
&gt; branch. Hopefully, we can consolidate the different efforts and add it into<br>
&gt; mainline openocd development instead of side projects.<br>
<br>
</span>Hurrah! Yes, I always intended to submit it here (I posted on the list last \
year) after it got a bit more stable.<br> <span class=""><br>
&gt; I tested it with the Sparkfun ESP8266 Thing and a Olimex ARM-USB-Tiny-h. I<br>
&gt; can step, next, and set breakpoints.<br>
<br>
</span>The sticking point I had (which it&#39;s possible @sysprogs already fixed) was \
always maintaining/establishing the JTAG connection during/after a reset. The debug \
interface would lose &quot;sync&quot; with the CPU very often (poll errors, etc.). \
Does this part work OK now?<br> <span class=""><br>
&gt; Loading of an image only works<br>
&gt; partially, as it doesn&#39;t seem to be writing the external SPI flash.<br>
<br>
</span>There&#39;s no SPI flash driver yet so that&#39;s to be expected I guess. We \
could write one for ESP8266 fairly easily, as there are SPI flash functons in the \
boot ROM that the debug interface can call directly to perform erase operations, \
write operations, etc.<br> <br>
I&#39;ll try and find time to test this patch a bit myself, but it might be better \
left to other people tbh. :)<br> <br>
Thanks again for moving it along!<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Angus<br>
</font></span></blockquote></div><br></div>



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic