SlideShare a Scribd company logo
1 of 19
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
JTAG Debugging
with the ESP32
PETE GALLAGHER
PJGCREATIONS.CO.UK
22/06/2020
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
About Me
Pete Gallagher
@pete_codes / @PJGCreations
www.PeteCodes.co.uk
www.PJGCreations.co.uk
Pete@PJGCreations.co.uk
IT Consultant, Microsoft Azure MVP, Pluralsight Author,
Decades of Desktop, Web & Embedded Software experience,
Meetup Organiser,
STEM Ambassador, Code Club Organiser … Gadget Addict
Father of two inquisitive girls
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
What we’re going to be doing…
 The ESP32
 JTAG Hardware Debuggers
 Connecting the Espressif ESP-PROG
JTAG Debugger
 A Simple ESP32 App using Arduino IDE
 VisualMicro for VS2019
 PlatformIO for VS Code
 Debugging a Simple ESP32 App
 Q&A
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
The ESP32 DevKit
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
The ESP32 DevKit - Blocks
WiFi + BLE
ESP-WROOM-32
Microcontroller
Micro USB +
Virtual Serial Port
Built in LED
GPIO
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
The ESP32 DevKit - Specs
 Cheap - £7ish
 Dual Core ESP32 WROOM32 Microcontroller
 Clocked up to 240MHz
 4MB Flash (Program Memory)
 512K RAM
 RTC + 8K RAM
 512 Byte EEPROM
 2.4GHz Wifi
 Bluetooth and BLE
 GPIO inc SPI, UART, I2C, PWM, DAC Etc
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
The ESP32 Kit - Pinout
Enable
GPIO36
GPIO39
GPIO34
GPIO35
GPIO32
GPIO33
GPIO25
GPIO26
GPIO27
GPIO14
GPIO12
GPIO13
GND
VIN
GPIO23
GPIO22
GPIO1
GPIO3
GPIO21
GPIO19
GPIO18
GPIO5
GPIO17
GPIO16
GPIO4
GPIO2
GPIO15
GND
3v3
UART1 TX
UART1 RX
UART 2 TX
UART2 TX
SPI1 MOSI
I2C SCL
I2C SDA
SPI1 MISO
SPI1 CLK
SPI1 CS0
SPI2 MOSI
SPI2 MISO
SPI2 CLK
ADC 1+2
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
The JTAG Debugger
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
The JTAG Debugger
 Joint Test Action Group
 Direct Access to System Address and Data Bus
 Can read and write variable values
 Set break points and step through code
 Uses Serial Communication
 Connects to the Test Access Port (TAP)
 USB Connection to PC
 Uses OpenOCD to control
 Dupont connection to ESP32 DevKit
https://www.xjtag.com/about-jtag/jtag-a-technical-overview/
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
Connecting the JTAG Debugger
GND
TDI
TDO
TCK
TMS
3v3
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
Connecting the JTAG Debugger
TCK
TDI
TMS
TDO
GND
3V3
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
A Simple App
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
Visual Micro
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
Visual Micro
 Serial debugging
 Hardware debugging
 Supports hundreds of boards
 VS2017/2019 Extension
 Set breakpoints
 View variable values
 Free
https://www.visualmicro.com
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
PlatformIO
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
PlatformIO
 Hardware debugging
 Supports hundreds of boards
 Visual Studio Code Extension
 Set breakpoints
 View variable values
 Free
https://www.platformio.org
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
Links
 Arduino IDE
https://www.arduino.cc/en/main/software
 ESP32 DevKit
https://www.amazon.co.uk/SeeKool-Development-Microcontroller-Integrated-
Compatible/dp/B07DPP3BGZ/
 Espressif ESP-PROG
https://www.digikey.co.uk/product-detail/en/espressif-systems/ESP-PROG/1965-ESP-
PROG-ND/10259352
 Visual Micro
https://www.visualmicro.com/
 PlatformIO
https://platformio.org/
 JTAG Information
https://www.xjtag.com/about-jtag/jtag-a-technical-overview/
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
 Twitter
@pete_codes / @PJGCreations
 Email:
pete@pjgcreations.co.uk
 Website:
https://www.petecodes.co.uk
https://www.pjgcreations.co.uk
 Notts IoT:
https://www.nottsiot.co.uk
 Dot Net Notts:
https://www.dotnetnotts.co
 Notts Dev Workshop:
https://www.nottsdevworkshop.co.uk
 LATi:
https://www.lati.org.uk
 Agile Engineering Podcast:
https://agileengineeringpodcast.com/
Contact Me
Slides:
http://bit.ly/pjgesp32jtagtwitch
JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes
Questions?
Pete Gallagher
@pete_codes / @PJGCreations
www.PeteCodes.co.uk
www.PJGCreations.co.uk
Pete@PJGCreations.co.uk

More Related Content

What's hot

What's hot (20)

Optical network architecture
Optical network architectureOptical network architecture
Optical network architecture
 
Grounding.ppt
Grounding.pptGrounding.ppt
Grounding.ppt
 
Diode
DiodeDiode
Diode
 
Types Of Capacitors And Their Applications
Types Of Capacitors And Their ApplicationsTypes Of Capacitors And Their Applications
Types Of Capacitors And Their Applications
 
Basic electronics,l ecture 2
Basic electronics,l ecture 2Basic electronics,l ecture 2
Basic electronics,l ecture 2
 
Schottky diode
Schottky diodeSchottky diode
Schottky diode
 
Fundamentals of electric circuits
Fundamentals of electric circuitsFundamentals of electric circuits
Fundamentals of electric circuits
 
Standard cells library design
Standard cells library designStandard cells library design
Standard cells library design
 
Earth Fault Loop Impedance Summary.ppt
Earth Fault Loop Impedance Summary.pptEarth Fault Loop Impedance Summary.ppt
Earth Fault Loop Impedance Summary.ppt
 
Relay Presentation PPT by G@nesh
Relay Presentation PPT by G@neshRelay Presentation PPT by G@nesh
Relay Presentation PPT by G@nesh
 
Capacitor
CapacitorCapacitor
Capacitor
 
ASIC Design Flow | Physical Design | VLSI
ASIC Design Flow | Physical Design | VLSI ASIC Design Flow | Physical Design | VLSI
ASIC Design Flow | Physical Design | VLSI
 
regulated power supply
regulated power supplyregulated power supply
regulated power supply
 
Calibration & Testing of Electronic Meters
Calibration & Testing of Electronic MetersCalibration & Testing of Electronic Meters
Calibration & Testing of Electronic Meters
 
Fishermen alert system using gps
Fishermen alert system using gpsFishermen alert system using gps
Fishermen alert system using gps
 
BroadBand Over powerline .
BroadBand Over powerline .BroadBand Over powerline .
BroadBand Over powerline .
 
Presentation of transistor
Presentation of transistorPresentation of transistor
Presentation of transistor
 
Light Detector
Light Detector Light Detector
Light Detector
 
Basic Electronics components
Basic Electronics componentsBasic Electronics components
Basic Electronics components
 
Type of pn junction & rectifiers plus Transistor
Type of pn junction & rectifiers plus TransistorType of pn junction & rectifiers plus Transistor
Type of pn junction & rectifiers plus Transistor
 

Similar to JTAG Debugging with the ESP32, Visual Micro and PlatformIO

Similar to JTAG Debugging with the ESP32, Visual Micro and PlatformIO (20)

IoT with only your laptop - Microsoft Garage - January 2021
IoT with only your laptop - Microsoft Garage - January 2021IoT with only your laptop - Microsoft Garage - January 2021
IoT with only your laptop - Microsoft Garage - January 2021
 
Config and Deployments as Code with Octopus Deploy
Config and Deployments as Code with Octopus DeployConfig and Deployments as Code with Octopus Deploy
Config and Deployments as Code with Octopus Deploy
 
Getting started with IoT - Notts IoT - April 2018
Getting started with IoT - Notts IoT - April 2018Getting started with IoT - Notts IoT - April 2018
Getting started with IoT - Notts IoT - April 2018
 
Getting started with IoT with only your laptop - March 2020 - Dot Net Sheff
Getting started with IoT with only your laptop - March 2020 - Dot Net SheffGetting started with IoT with only your laptop - March 2020 - Dot Net Sheff
Getting started with IoT with only your laptop - March 2020 - Dot Net Sheff
 
IoT with only your Laptop - Build Stuff 2021
IoT with only your Laptop - Build Stuff 2021IoT with only your Laptop - Build Stuff 2021
IoT with only your Laptop - Build Stuff 2021
 
Getting started with IoT with only your laptop - August 2018
Getting started with IoT with only your laptop - August 2018Getting started with IoT with only your laptop - August 2018
Getting started with IoT with only your laptop - August 2018
 
Getting started with IoT with only your laptop - 2018 - Pi Jam
Getting started with IoT with only your laptop - 2018 - Pi JamGetting started with IoT with only your laptop - 2018 - Pi Jam
Getting started with IoT with only your laptop - 2018 - Pi Jam
 
Getting started with IoT with only your Laptop (GIF Version) - Derby Dot Net ...
Getting started with IoT with only your Laptop (GIF Version) - Derby Dot Net ...Getting started with IoT with only your Laptop (GIF Version) - Derby Dot Net ...
Getting started with IoT with only your Laptop (GIF Version) - Derby Dot Net ...
 
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - Dot NET Pe...
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - Dot NET Pe...Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - Dot NET Pe...
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - Dot NET Pe...
 
Getting started with IoT with only your Laptop (Lightning Talk) - October 201...
Getting started with IoT with only your Laptop (Lightning Talk) - October 201...Getting started with IoT with only your Laptop (Lightning Talk) - October 201...
Getting started with IoT with only your Laptop (Lightning Talk) - October 201...
 
Building a Raspberry Pi Robot with .NET 5, Blazor and SignalR - DDD 2020
Building a Raspberry Pi Robot with .NET 5, Blazor and SignalR - DDD 2020Building a Raspberry Pi Robot with .NET 5, Blazor and SignalR - DDD 2020
Building a Raspberry Pi Robot with .NET 5, Blazor and SignalR - DDD 2020
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - CSharp Co...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - CSharp Co...Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - CSharp Co...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - CSharp Co...
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - dotNET Stoke
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - dotNET StokeBuilding a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - dotNET Stoke
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - dotNET Stoke
 
Building a Raspberry Pi Robot with .NET 5, Blazor and SignalR - NDC London 2021
Building a Raspberry Pi Robot with .NET 5, Blazor and SignalR - NDC London 2021Building a Raspberry Pi Robot with .NET 5, Blazor and SignalR - NDC London 2021
Building a Raspberry Pi Robot with .NET 5, Blazor and SignalR - NDC London 2021
 
Getting started with IoT with only your Laptop - February 2019 - Lancs Tech T...
Getting started with IoT with only your Laptop - February 2019 - Lancs Tech T...Getting started with IoT with only your Laptop - February 2019 - Lancs Tech T...
Getting started with IoT with only your Laptop - February 2019 - Lancs Tech T...
 
Azure IoT Hubs with Raspberry Pi and Node.js - Azure Bootcamp - 27-04-19
Azure IoT Hubs with Raspberry Pi and Node.js - Azure Bootcamp - 27-04-19Azure IoT Hubs with Raspberry Pi and Node.js - Azure Bootcamp - 27-04-19
Azure IoT Hubs with Raspberry Pi and Node.js - Azure Bootcamp - 27-04-19
 
Getting started with IoT with only your Laptop - March 2019 - DDD North
Getting started with IoT with only your Laptop - March 2019 - DDD NorthGetting started with IoT with only your Laptop - March 2019 - DDD North
Getting started with IoT with only your Laptop - March 2019 - DDD North
 
Building a Raspberry Pi Robot with Dot NET 6 Blazor and SignalR.pptx
Building a Raspberry Pi Robot with Dot NET 6 Blazor and SignalR.pptxBuilding a Raspberry Pi Robot with Dot NET 6 Blazor and SignalR.pptx
Building a Raspberry Pi Robot with Dot NET 6 Blazor and SignalR.pptx
 
Getting started with IoT with only your Laptop - March 2019 - IoT Leeds
Getting started with IoT with only your Laptop - March 2019 - IoT LeedsGetting started with IoT with only your Laptop - March 2019 - IoT Leeds
Getting started with IoT with only your Laptop - March 2019 - IoT Leeds
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...
 

More from Peter Gallagher

More from Peter Gallagher (20)

Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalRBuilding a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR
 
Supercharging your Data with Azure AI Search and Azure OpenAI
Supercharging your Data with Azure AI Search and Azure OpenAISupercharging your Data with Azure AI Search and Azure OpenAI
Supercharging your Data with Azure AI Search and Azure OpenAI
 
Experience Raspberry Pi 5 - October 2023
Experience Raspberry Pi 5 - October 2023Experience Raspberry Pi 5 - October 2023
Experience Raspberry Pi 5 - October 2023
 
Building a Raspberry Pi Robot with Dot NET 7, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 7, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 7, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 7, Blazor and SignalR - Slides Onl...
 
Building a Raspberry Pi Robot with Dot NET 7, Blazor and SignalR - TechDays 2023
Building a Raspberry Pi Robot with Dot NET 7, Blazor and SignalR - TechDays 2023Building a Raspberry Pi Robot with Dot NET 7, Blazor and SignalR - TechDays 2023
Building a Raspberry Pi Robot with Dot NET 7, Blazor and SignalR - TechDays 2023
 
Azure Percept Home Automation - Hacksoc 2022
Azure Percept Home Automation - Hacksoc 2022Azure Percept Home Automation - Hacksoc 2022
Azure Percept Home Automation - Hacksoc 2022
 
Deploying Web Apps using Config and Infrastructure as Code with Octopus Deplo...
Deploying Web Apps using Config and Infrastructure as Code with Octopus Deplo...Deploying Web Apps using Config and Infrastructure as Code with Octopus Deplo...
Deploying Web Apps using Config and Infrastructure as Code with Octopus Deplo...
 
Deploying Web Apps using Config and Infrastructure as Code with Octopus Deplo...
Deploying Web Apps using Config and Infrastructure as Code with Octopus Deplo...Deploying Web Apps using Config and Infrastructure as Code with Octopus Deplo...
Deploying Web Apps using Config and Infrastructure as Code with Octopus Deplo...
 
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - Yorkshire ...
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - Yorkshire ...Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - Yorkshire ...
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - Yorkshire ...
 
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - NDC Melbou...
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - NDC Melbou...Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - NDC Melbou...
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR - NDC Melbou...
 
Azure Percept Home Automation - Microsoft Reactor London - 28-05-22
Azure Percept Home Automation - Microsoft Reactor London - 28-05-22Azure Percept Home Automation - Microsoft Reactor London - 28-05-22
Azure Percept Home Automation - Microsoft Reactor London - 28-05-22
 
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR.pptx
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR.pptxBuilding a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR.pptx
Building a Raspberry Pi Robot with Dot NET 6, Blazor and SignalR.pptx
 
Azure Percept Home Automation - Festive Tech Calendar 2021 - 01-12-21
Azure Percept Home Automation  - Festive Tech Calendar 2021 - 01-12-21Azure Percept Home Automation  - Festive Tech Calendar 2021 - 01-12-21
Azure Percept Home Automation - Festive Tech Calendar 2021 - 01-12-21
 
Azure Percept Home Automation - .NET Liverpool - 28-10-21
Azure Percept Home Automation  - .NET Liverpool - 28-10-21Azure Percept Home Automation  - .NET Liverpool - 28-10-21
Azure Percept Home Automation - .NET Liverpool - 28-10-21
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
 
Azure Percept Home Automation - .NET Docs Show - 20-09-21
Azure Percept Home Automation  - .NET Docs Show - 20-09-21Azure Percept Home Automation  - .NET Docs Show - 20-09-21
Azure Percept Home Automation - .NET Docs Show - 20-09-21
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - Bradford ...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - Bradford ...Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - Bradford ...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - Bradford ...
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalRBuilding a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR
 
IoT isn't just for Christmas
IoT isn't just for ChristmasIoT isn't just for Christmas
IoT isn't just for Christmas
 
DevOps in an IoT World - Brighton Web Development - 29-10-20
DevOps in an IoT World - Brighton Web Development - 29-10-20DevOps in an IoT World - Brighton Web Development - 29-10-20
DevOps in an IoT World - Brighton Web Development - 29-10-20
 

Recently uploaded

一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
uodye
 
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...
nirzagarg
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
drmarathore
 
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptxCRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
Rishabh332761
 
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get CytotecAbortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
uodye
 
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
ehyxf
 
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
wpkuukw
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
tufbav
 
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
ehyxf
 
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
wpkuukw
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
tufbav
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
uodye
 
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
uodye
 

Recently uploaded (20)

一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
 
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...
 
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
 
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptxCRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
 
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get CytotecAbortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get Cytotec
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
 
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
 
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime GuwahatiGuwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
 
LANDSLIDE MONITORING AND ALERT SYSTEM FINAL YEAR PROJECT BROCHURE
LANDSLIDE MONITORING AND ALERT SYSTEM FINAL YEAR PROJECT BROCHURELANDSLIDE MONITORING AND ALERT SYSTEM FINAL YEAR PROJECT BROCHURE
LANDSLIDE MONITORING AND ALERT SYSTEM FINAL YEAR PROJECT BROCHURE
 
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
 
Critical Commentary Social Work Ethics.pptx
Critical Commentary Social Work Ethics.pptxCritical Commentary Social Work Ethics.pptx
Critical Commentary Social Work Ethics.pptx
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
 
Hilti's Latest Battery - Hire Depot.pptx
Hilti's Latest Battery - Hire Depot.pptxHilti's Latest Battery - Hire Depot.pptx
Hilti's Latest Battery - Hire Depot.pptx
 
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
 
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
 
Point of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratoryPoint of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratory
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
 
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
 

JTAG Debugging with the ESP32, Visual Micro and PlatformIO

  • 1. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes JTAG Debugging with the ESP32 PETE GALLAGHER PJGCREATIONS.CO.UK 22/06/2020
  • 2. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes About Me Pete Gallagher @pete_codes / @PJGCreations www.PeteCodes.co.uk www.PJGCreations.co.uk Pete@PJGCreations.co.uk IT Consultant, Microsoft Azure MVP, Pluralsight Author, Decades of Desktop, Web & Embedded Software experience, Meetup Organiser, STEM Ambassador, Code Club Organiser … Gadget Addict Father of two inquisitive girls
  • 3. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes What we’re going to be doing…  The ESP32  JTAG Hardware Debuggers  Connecting the Espressif ESP-PROG JTAG Debugger  A Simple ESP32 App using Arduino IDE  VisualMicro for VS2019  PlatformIO for VS Code  Debugging a Simple ESP32 App  Q&A
  • 4. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes The ESP32 DevKit
  • 5. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes The ESP32 DevKit - Blocks WiFi + BLE ESP-WROOM-32 Microcontroller Micro USB + Virtual Serial Port Built in LED GPIO
  • 6. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes The ESP32 DevKit - Specs  Cheap - £7ish  Dual Core ESP32 WROOM32 Microcontroller  Clocked up to 240MHz  4MB Flash (Program Memory)  512K RAM  RTC + 8K RAM  512 Byte EEPROM  2.4GHz Wifi  Bluetooth and BLE  GPIO inc SPI, UART, I2C, PWM, DAC Etc
  • 7. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes The ESP32 Kit - Pinout Enable GPIO36 GPIO39 GPIO34 GPIO35 GPIO32 GPIO33 GPIO25 GPIO26 GPIO27 GPIO14 GPIO12 GPIO13 GND VIN GPIO23 GPIO22 GPIO1 GPIO3 GPIO21 GPIO19 GPIO18 GPIO5 GPIO17 GPIO16 GPIO4 GPIO2 GPIO15 GND 3v3 UART1 TX UART1 RX UART 2 TX UART2 TX SPI1 MOSI I2C SCL I2C SDA SPI1 MISO SPI1 CLK SPI1 CS0 SPI2 MOSI SPI2 MISO SPI2 CLK ADC 1+2
  • 8. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes The JTAG Debugger
  • 9. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes The JTAG Debugger  Joint Test Action Group  Direct Access to System Address and Data Bus  Can read and write variable values  Set break points and step through code  Uses Serial Communication  Connects to the Test Access Port (TAP)  USB Connection to PC  Uses OpenOCD to control  Dupont connection to ESP32 DevKit https://www.xjtag.com/about-jtag/jtag-a-technical-overview/
  • 10. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes Connecting the JTAG Debugger GND TDI TDO TCK TMS 3v3
  • 11. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes Connecting the JTAG Debugger TCK TDI TMS TDO GND 3V3
  • 12. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes A Simple App
  • 13. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes Visual Micro
  • 14. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes Visual Micro  Serial debugging  Hardware debugging  Supports hundreds of boards  VS2017/2019 Extension  Set breakpoints  View variable values  Free https://www.visualmicro.com
  • 15. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes PlatformIO
  • 16. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes PlatformIO  Hardware debugging  Supports hundreds of boards  Visual Studio Code Extension  Set breakpoints  View variable values  Free https://www.platformio.org
  • 17. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes Links  Arduino IDE https://www.arduino.cc/en/main/software  ESP32 DevKit https://www.amazon.co.uk/SeeKool-Development-Microcontroller-Integrated- Compatible/dp/B07DPP3BGZ/  Espressif ESP-PROG https://www.digikey.co.uk/product-detail/en/espressif-systems/ESP-PROG/1965-ESP- PROG-ND/10259352  Visual Micro https://www.visualmicro.com/  PlatformIO https://platformio.org/  JTAG Information https://www.xjtag.com/about-jtag/jtag-a-technical-overview/
  • 18. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes  Twitter @pete_codes / @PJGCreations  Email: pete@pjgcreations.co.uk  Website: https://www.petecodes.co.uk https://www.pjgcreations.co.uk  Notts IoT: https://www.nottsiot.co.uk  Dot Net Notts: https://www.dotnetnotts.co  Notts Dev Workshop: https://www.nottsdevworkshop.co.uk  LATi: https://www.lati.org.uk  Agile Engineering Podcast: https://agileengineeringpodcast.com/ Contact Me Slides: http://bit.ly/pjgesp32jtagtwitch
  • 19. JTAG Debugging with the ESP32 – Copyright Pete Gallagher 2020 – @Pete_Codes Questions? Pete Gallagher @pete_codes / @PJGCreations www.PeteCodes.co.uk www.PJGCreations.co.uk Pete@PJGCreations.co.uk