Page 1 of 1

ESP8266 programming and debug via J-Link ??

Posted: Fri Jan 22, 2016 5:26 am
by gigel
Is it possible, and if yes, did anyone succeed in programming and debugging ESP8266 using a J-Link via either JTAG or SWD?

I am using a Sparkfun Thing board ( https://cdn.sparkfun.com/datasheets/Wir ... _Thing.pdf ), and writing code from within MS Visual Studio + GDB, debug method via XtensaOCD or OpenOCD.

I attached a Segger J-Link ( https://www.segger.com/jlink-debug-probes.html ) to the Sparkfun Thing board, but can't detect the CPU core.

JTAG signal TMS ==> ESP8266 pin 14
JTAG signal TDI ==> ESP8266 pin 12
JTAG signal TCK ==> ESP8266 pin 13
JTAG signal TDO ==> ESP8266 pin 15 (after removing R17 pull-down on SparkFun Thing board)
JTAG signal RST ==> ESP8266 pin RST (DTR line on SparkFun Thing board)

Btw, why is GPIO15/MTDO pulled down on the SparkFun Thing board?

I would appreciate any guidance on this topic.

Regards,
G

Re: ESP8266 programming and debug via J-Link ??

Posted: Mon Jan 25, 2016 5:19 pm
by ESP_Sprite
GPIO15 is pulled down because it is a bootstrap pin that changes the boot mode of the ESP.

What software are you using, and are you sure this software supports the Xtensa LX106 core in the ESP8266?

Re: ESP8266 programming and debug via J-Link ??

Posted: Wed Feb 03, 2016 11:09 am
by Espressif_Kelly
Dear gigel,

Current ESP8266EX does not support the hardware debug tools,like JTAG. So you need to debug by log print.

BTW, we are planning to realize JTAG funtiocn on ESP8266EX.

Thanks.

Re: ESP8266 programming and debug via J-Link ??

Posted: Tue May 02, 2017 11:06 pm
by dev01
Are there any new developments regarding HW debugging with JLink?

Re: ESP8266 programming and debug via J-Link ??

Posted: Fri Jun 30, 2017 2:14 pm
by rajkumar patel
hi esp_team,

which is powerful tool or method for esp8266 debugging?

for esp32 there's no issue as xtesnsa addr2line tool is tracing back with great accuracy for reset cause from dump file but this isn't the case with my esp8266 WROOM2 module. sometimes i get the cause and most of the time i left unanswered while going for this tool for esp8266.

but finding rootcause of board reset is my prime requirement.
i'm not sure whether i should go for GDBSTUB or openOCD for hardware debugging. is any of this going to help me anyway?
that would be great for me and plenty of others if you share your suggestions on this.
i'm totally a newbie to this debugging thing.

regards.

Re: ESP8266 programming and debug via J-Link ??

Posted: Fri Sep 08, 2017 2:36 am
by RickyTerzis
Hi...as per my knowledge for esp32 there's no issue as xtesnsa addr2line tool is tracing back with great accuracy for reset cause from dump file but this isn't the case with my esp8266 WROOM2 module. sometimes i get the cause and most of the time i left unanswered while going for this tool for esp8266.

printed circuit assembly

Re: ESP8266 programming and debug via J-Link ??

Posted: Sat Sep 16, 2017 6:23 pm
by YimingLi
Forget jlink etc, use printf, I would suggest. :p