pvvx
Активный участник сообщества
Проба подключения JTAG к ESP8266.
1) Взял xt-ocd-11.0.2-installer.exe и под рукой был J-Link (SEGGER).
2) Соединил JTAG к модулю ESP-12
TMS -> GPIO14
TDI -> GPIO12
TCK -> GPIO13
TDO <- GPIO15
RST -> RST
3) Изменил строку в topology.xml:
<controller id='Controller0' module='jlink' usbser='xxxxxxxxx' speed='12000000'/>
4) Запустил xt-ocd.exe:
5) Для теста запустил xt-gdb и дал распечатку регистров:
Что-то работает, что-то нет. Надо настраивать...
Но об этом позже - народ делает открытую среду с полным SDK и DDK и т.д. http://www.esp8266.com/viewtopic.php?f=9&t=1871
1) Взял xt-ocd-11.0.2-installer.exe и под рукой был J-Link (SEGGER).
2) Соединил JTAG к модулю ESP-12
TMS -> GPIO14
TDI -> GPIO12
TCK -> GPIO13
TDO <- GPIO15
RST -> RST
3) Изменил строку в topology.xml:
<controller id='Controller0' module='jlink' usbser='xxxxxxxxx' speed='12000000'/>
4) Запустил xt-ocd.exe:
XOCD 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'
(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'
GNU 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
(xt-gdb)
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
(xt-gdb)
Но об этом позже - народ делает открытую среду с полным SDK и DDK и т.д. http://www.esp8266.com/viewtopic.php?f=9&t=1871
Последнее редактирование: