Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
EDF-IDF Programming Guidを読む - JTAG Debugging 編 -
Search
lutecia16v
August 09, 2021
Programming
400
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
EDF-IDF Programming Guidを読む - JTAG Debugging 編 -
2021.8.9. ESP32公式ドキュメントもくもく会
まとめ資料
lutecia16v
August 09, 2021
More Decks by lutecia16v
See All by lutecia16v
GR-ROSEとROSを使ってコマンドサーボの現在位置をWebブラウザで表示してみる
lutecia16v
0
1.7k
GR-ROSEでROS/ROS2
lutecia16v
1
1.9k
Jetson NanoとGR-ROSEで始めるROS2
lutecia16v
0
2.3k
がじぇねるねでもROSしたい!
lutecia16v
1
160
GR-ROSE でroombaをコントロールする
lutecia16v
2
420
Other Decks in Programming
See All in Programming
いまどきの Codex で開発する visionOS アプリの開発スタイルについて
karad
0
170
Go を使い始めて 2 ヶ月の学び / My first two months with Go
contour_gara
0
380
KotlinConf Extended South Korea 2026 Keynote
l2hyunwoo
0
120
Press start. Python's next generation.
willingc
PRO
3
220
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
180
初めての模倣学習とVLA
natsutan
0
280
in-process GraphQL のすすめ #ginzajs
izumin5210
4
1.5k
バグを直したら useEffect が消えた
colorful12
3
710
Go 1.27 における memory allocation の高速化
andpad
0
330
AWS Transform Customによる Spring Boot 2.xから4.xへのVerUp
satoshi256kbyte
2
110
仕様駆動開発の消費期限
watany
20
9k
Hono + Inertia + React で LP を構築した話
oukayuka
2
170
Featured
See All Featured
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
300
Game over? The fight for quality and originality in the time of robots
wayneb77
1
250
How GitHub (no longer) Works
holman
316
150k
Documentation Writing (for coders)
carmenintech
77
5.5k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
400
ラッコキーワード サービス紹介資料
rakko
1
4.6M
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
280
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
490
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
201
75k
How to Talk to Developers About Accessibility
jct
2
530
Technical Leadership for Architectural Decision Making
baasie
3
540
30 Presentation Tips
portentint
PRO
1
380
Transcript
EDF-IDF Programming Guidを読む - JTAG Debugging 編 - 2021.8.9.
ESP32公式ドキュメントもくもく会
JTAG Debuging - 目次 • 導入 • どう動くのか? • JTAGアダプタの選択
• OpenOCDの設定 • ESP32ターゲットの設定 • デバッグの起動 • サンプルのデバッグ • OpenOCDをソースからビルドする • Tips and Quirks
導入 • 一般的なお話 • Espressifは、ESP32プロセッサとマルチコアでの FreeRTOSをサポートするために、 OpenOCDをポーティングした • OpenOCDのインストールと、Linux, WindowsとMacでのGDBを使ったデバッグについてのガ
イドを提供 ※ドキュメントでは、Ubuntu 16.04LTSにてEclipse Neon 3を使用
どう動くのか? • ESP-WROVER-KITを使用する場合、 FT2232Hで、JTAGとUARTの2つの USBチャンネルを提供している • 好みで、コマンドライン/ターミナルからデ バッガとidf.pyを直接操作できる EDF-IDF Programming
Guidから引用 https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api- guides/jtag-debugging/index.html#
JTAGアダプタの選択 • もっとも便利なのは、ESP-WROVER-KITを使うこと。ESP-WROVER-KITのFT2232H JTAG I/Fは20MHzのクロックで動いていて、これを外部アダプタでは実現するのは困難。 • もし、外部JTAGアダプタを使う場合は、ESP32の電圧レベルと同じものを探してください。 • ESP32のJTAGポートは、TRSTピンがないindustry-standard JTAGポートである。
• OpenOCDがサポートするJTAGアダプタはいろいろあるが、ESP32はSWDはサポートしていないの で注意。特定の製品に特化したもの(ST-LINK)とかは動かない。 • 最低限必要なピンは、TDI, TDO, TCK, TMSとGND。Vtar等、EPS32の電源ラインに繋げる必要がある JTAGデバッガ―もある。SRSTはCH_PDに接続することも可能だが、現状、このラインについて OpenOCD でサポートしているのはかなり少ない。 • 外部アダプタの例 :ESP-Prog(https://docs.espressif.com/projects/espressif-esp-iot-solution/en/latest/hw-reference/ESP-Pr og_guide.html) 日本だと、marutsuさんで購入可能 https://www.marutsu.co.jp/pc/i/40497690/ ちなみに、FT232HでMPSSEを使う例が、ブログでいろいろ紹介されている