0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ESP32のエラー出力のアドレスから、ソースコード該当行を特定する

Posted at

メモ

参照元: https://techblog.hacomono.jp/entry/2023/06/13/110000

覚えられそうにないからメモ!

xtensa-esp32-elf-addr2line -pfiaC -e folder/firmware.elf ADDRESS

VSCode + platformio (pioarduino) でもできました。

実例

Guru Meditation Error: Core  0 panic'ed (Stack protection fault). 
Detected in task "loopTask" at 0x4200505c

みたいなときは、

C:\Users\uname\.platformio\packages\toolchain-xtensa-esp-elf\bin\xtensa-esp32-elf-addr2line.exe -piafC -e vscodeproject\.pio\build\m5stamp-c3u\firmware.elf 0x42004e6a

とかやりました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?