ビルド成功したファームウェアをESP32にアップロードできない現象が発生しています。この現象を解消する方法をご教示の程よろしくお願い致します。
VSCode + platformioでビルドして成功して、uploadを実施すると次のようなエラーが出てきました。
(エラー内容)
(省略) Open On-Chip Debugger v0.10.0-esp32-20201202 (2020-12-02-17:38) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html debug_level: 1 WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release. adapter speed: 20000 kHz Error: no device found Error: unable to open ftdi device with vid 0403, pid 6014, description 'Single RS232-HS', serial '*' at bus location '*' ** OpenOCD init failed ** shutdown command invoked Assertion failed! Program: C:\Users\*****\.platformio\packages\tool-openocd-esp32\bin\openocd.exe File: ../src/jtag/core.c, Line 343 Expression: jtag_trst == 0 *** [upload] Error 3 ================================ [FAILED] Took 1.90 seconds ================================ The terminal process "C:\Users\*\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload'" terminated with exit code: 1. Terminal will be reused by tasks, press any key to close it.
それと、platformio.iniの内容はこちらです。
[env:esp32dev] platform = espressif32 board = esp32dev framework = arduino debug_tool = minimodule monitor_port = COM3 monitor_speed = 115200 upload_speed = 460800 upload_protocol = minimodule build_type = debug board_build.partitions = huge_app.csv
(追記)
なお、printf文での確認出力のモニターでは、正常に表示出て着るようなので、COM3のRS-232Cポートは正常であることは確認できました。
platformIOは使っていないので知りませんが、少なくともそのメッセージはFTDI232-HSをデバッガとして使おうとしたのに「見つからない」といっているようですね。とすると、
> COM3のRS-232Cポートは正常である
これは関係なさそうですが、そのへんの関係は大丈夫でしょうか?
回答頂きありがとうございます。
少し思い出したのですが、このPCで以前platformioのデバッグ機能を使いたいと思い、デバッグ設定をしようとしたことを思い出しました。
こちらのサイトで質問をしたこともありました。
https://qiita.com/KenjiMaehara/questions/6fdc0e312883ca2e49c5
その設定が有効だから?って感じでしょうかねぇ・・・
デバッグ、アップロードの機能それぞれで簡単にポートを切り替えるとか方法ありませんでしょうか?・・・
ご本人わすれていたのですか? teratailでも質問していますよ?
https://teratail.com/questions/310339
このときの状況を再現してみたらどうなるでしょう?
繰り返しになりますが、私自身はplatformIOは使っていないので固有の操作方法等については知りません。
回答頂きありがとうございます。
”platformio.ini”内の
upload_protocol = minimodule
このオプションをコメントアウトすることで、アップロードできるようになりました。
回答1件
あなたの回答
tips
プレビュー