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
1
360
EDF-IDF Programming Guidを読む - JTAG Debugging 編 -
2021.8.9. ESP32公式ドキュメントもくもく会
まとめ資料
lutecia16v
August 09, 2021
Tweet
Share
More Decks by lutecia16v
See All by lutecia16v
GR-ROSEとROSを使ってコマンドサーボの現在位置をWebブラウザで表示してみる
lutecia16v
0
1.5k
GR-ROSEでROS/ROS2
lutecia16v
1
1.8k
Jetson NanoとGR-ROSEで始めるROS2
lutecia16v
0
2.1k
がじぇねるねでもROSしたい!
lutecia16v
1
140
GR-ROSE でroombaをコントロールする
lutecia16v
2
400
Other Decks in Programming
See All in Programming
CursorはMCPを使った方が良いぞ
taigakono
1
220
今ならAmazon ECSのサービス間通信をどう選ぶか / Selection of ECS Interservice Communication 2025
tkikuc
21
3.8k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
50
32k
AIコーディング道場勉強会#2 君(エンジニア)たちはどう生きるか
misakiotb
1
280
「Cursor/Devin全社導入の理想と現実」のその後
saitoryc
0
700
プロダクト志向ってなんなんだろうね
righttouch
PRO
0
180
童醫院敏捷轉型的實踐經驗
cclai999
0
210
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
5
470
AI時代のソフトウェア開発を考える(2025/07版) / Agentic Software Engineering Findy 2025-07 Edition
twada
PRO
42
9.9k
なぜ適用するか、移行して理解するClean Architecture 〜構造を超えて設計を継承する〜 / Why Apply, Migrate and Understand Clean Architecture - Inherit Design Beyond Structure
seike460
PRO
3
740
datadog dash 2025 LLM observability for reliability and stability
ivry_presentationmaterials
0
440
PicoRuby on Rails
makicamel
2
120
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
31
8.7k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
It's Worth the Effort
3n
185
28k
Speed Design
sergeychernyshev
32
1k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.3k
Gamification - CAS2011
davidbonilla
81
5.3k
Stop Working from a Prison Cell
hatefulcrawdad
270
20k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
How GitHub (no longer) Works
holman
314
140k
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を使う例が、ブログでいろいろ紹介されている