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
390
1
Share
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.6k
GR-ROSEでROS/ROS2
lutecia16v
1
1.9k
Jetson NanoとGR-ROSEで始めるROS2
lutecia16v
0
2.3k
がじぇねるねでもROSしたい!
lutecia16v
1
150
GR-ROSE でroombaをコントロールする
lutecia16v
2
420
Other Decks in Programming
See All in Programming
20260514_its_the_context_window_stupid.pdf
heita
0
920
いつか誰かが、と思っていた フロントエンド刷新5年間の実践知
kiichisugihara
1
270
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.9k
cloudnative conference 2026 flyle
azihsoyn
0
170
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
1k
🦞OpenClaw works with AWS
licux
1
350
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
380
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
200
JCON - Create Agentic AI Apps, The Easy Way!
kdubois
1
110
PHPでローカル環境用のSSL/TLS証明書を発行することはできるのか? #phpconkagawa
akase244
0
360
Lightning-Fast Method Calls with Ruby 4.1 ZJIT / RubyKaigi 2026
k0kubun
3
2.8k
GitHubCopilotCLIをはじめよう.pdf
htkym
0
330
Featured
See All Featured
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
210
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
350
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
340
Tell your own story through comics
letsgokoyo
1
920
Navigating Weather and Climate Data
rabernat
0
190
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
Designing Powerful Visuals for Engaging Learning
tmiket
1
360
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
180
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
350
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
320
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を使う例が、ブログでいろいろ紹介されている