ESP8266 programming and debug via J-Link ??

gigel
Posts: 2
Joined: Fri Jan 22, 2016 3:11 am

ESP8266 programming and debug via J-Link ??

Postby gigel » Fri Jan 22, 2016 5:26 am

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

ESP_Sprite
Posts: 25
Joined: Fri Oct 24, 2014 7:58 pm

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

Postby ESP_Sprite » Mon Jan 25, 2016 5:19 pm

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?

Espressif_Kelly
Posts: 140
Joined: Mon Oct 27, 2014 10:40 am

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

Postby Espressif_Kelly » Wed Feb 03, 2016 11:09 am

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.

dev01
Posts: 1
Joined: Tue May 02, 2017 11:03 pm

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

Postby dev01 » Tue May 02, 2017 11:06 pm

Are there any new developments regarding HW debugging with JLink?

Who is online

Users browsing this forum: No registered users and 3 guests