Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By uzevla
#11902
zhivko wrote:Can you direct me to some documentation - I would like to learn more about debugging this chip.
CUrrently I have no idea what have you ment with "you got only one probe so you can remove that field."

Yes I have one probe, but - what field ?

SOrry if it sounds stupid :D


The usbser field - remove it from topology file.
User avatar
By pvvx
#11926 J-Link SEGGER
<controller id='Controller0' module='jlink' usbser='xxxxxxxxx' speed='12000000'/>
Code: Select allXOCD 11.0.2-development
(c) 1999-2015 Tensilica Inc. All rights reserved.
[Debug Log 2015-03-11 13:28:39]

Loading module "gdbstub" v2.0.0.11
Loading module "jlink" v2.0.0.1
0: Using JLINK lib v.49000
0: Connected to Jlink Device:
0: Name:'SEGGER J-Link ARM'
0: S/N:xxxxxxxxx
0: Firmware: J-Link ARM V8 compiled Jul 17 2014 12:31:18
0: TCK clock frequency : 12000 kHz
Loading module "jtag" v2.0.0.20
Loading module "xtensa" v2.0.0.40
Loading module "traxapp" v2.0.0.8
Loading module "trax" v2.0.1.22
Total IR bits : 5
TAP[0] irwidth = 5
Total DR bypass bits : 1
Starting thread 'GDBStub'
Starting thread 'TraxApp'

xt-gdb:
Code: Select allGNU gdb 6.8 Xtensa Tools 8.0.1.1
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=i686-pc-mingw32 --target=xtensa-elf".
(xt-gdb) target remote 127.0.0.1:20000
Remote debugging using 127.0.0.1:20000
warning: Spill location has not been specified, TIE register will be unavailable.
0x40002eee in ?? ()
(xt-gdb) info all-register
a0 0x40002ef1 1073753841
a1 0x3fffffb0 1073741744
a2 0x2c8dde62 747495010
a3 0x14 20
a4 0x1c3d 7229
a5 0x1000 4096
a6 0xfffffffe -2
a7 0x0 0
a8 0x0 0
a9 0x8000 32768
a10 0x0 0
a11 0x0 0
a12 0x13880 80000
a13 0x2c8dc225 747487781
a14 0x0 0
a15 0x0 0
pc 0x40002eee 0x40002eee
sar 0x4 4
litbase 0x0 0
sr176 0xc28cdafa 3264011002
sr208 0x1082b6f6 277001974
ps 0x20 32
mmid 0x0 0
ibreakenable 0x0 0
ddr 0x0 0
ibreaka0 0x0 0
dbreaka0 0x0 0
dbreakc0 0x0 0
epc1 0x0 0
epc2 0x40002eee 1073753838
epc3 0x0 0
depc 0x0 0
eps2 0x20 32
eps3 0x0 0
excsave1 0x0 0
excsave2 0x0 0
excsave3 0x0 0
interrupt 0x40 64
intset 0x0 0
intclear 0x0 0
intenable 0x0 0
vecbase 0x40000000 1073741824
exccause 0x0 0
debugcause 0x20 32
ccount 0x2c8dde6a 747495018
prid 0x0 0
icount 0x0 0
icountlevel 0x0 0
excvaddr 0x0 0
ccompare0 0x0 0
psintlevel 0x0 0
psum 0x1 1
psexcm 0x0 0
litbaddr 0x0 0
litben 0x0 0
dbnum 0x0 0
...

Eclipse-xt-xp-ocd:
xt-xp-ocd.gif

Stack not work correctly...
Reset - OK.
GPIO12...15:
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDI_U, 0);
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U, 0);
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTMS_U, 0);
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U, 0);
...
You do not have the required permissions to view the files attached to this post.
User avatar
By uzevla
#11931
pvvx wrote:Stack not work correctly...
...


This is xt-ocd for mainline GDB, not xt-gdb. The other one is already made available somewhere in the forum, I believe... If you can't find it or need newer version let me know...

pvvx wrote:Reset - OK.
GPIO12...15:
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDI_U, 0);
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U, 0);
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTMS_U, 0);
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U, 0);
...


Sorry, didn't get the point of these two.
User avatar
By pvvx
#11949
uzevla wrote:This is xt-ocd for mainline GDB, not xt-gdb. The other one is already made available somewhere in the forum, I believe... If you can't find it or need newer version let me know...


Xplorer-3.0.1 (XtDevTools RC-2010.1) http://1drv.ms/1BUD6Nv

viewtopic.php?p=428#p428

Sorry, didn't get the point of these two.


When you switch to another mode i/o port (SDK) JTAG not working.
Stack error - can not find the source code for BIOS-ROM :)

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

esptool.py - error in flash_begin(self, size, offset) http://esp8266.ru/forum/attachments/esptool-zip.171/
BAG in ROM fuction SPIEraseArea();