ESP8266 programming and debug via J-Link ??
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
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
-
- 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?
What software are you using, and are you sure this software supports the Xtensa LX106 core in the ESP8266?
-
- 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.
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.
-
- Posts: 12
- Joined: Fri Mar 03, 2017 8:20 pm
Re: ESP8266 programming and debug via J-Link ??
Postby rajkumar patel » Fri Jun 30, 2017 2:14 pm
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.
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.
-
- Posts: 1
- Joined: Fri Sep 08, 2017 2:01 am
Re: ESP8266 programming and debug via J-Link ??
Postby RickyTerzis » Fri Sep 08, 2017 2:36 am
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
printed circuit assembly
Last edited by RickyTerzis on Fri Oct 20, 2017 10:26 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 1 guest
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.