KenjiMaehara
@KenjiMaehara (Kenji maemae)

Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

platformioにAE-FT232HL接続でESP32デバッグ時にエラーがでる。

解決したいこと

ESP32基板のデバッグをするためにplatformioでAE-FT232HL接続してデバッグを実行しようとするとエラーが出てしまいます。
エラー内容から、解決方法をご教示頂きますよう、宜しくお願い致します。

発生している問題・エラー(platformioのDEBUG CONSOLEに出てくるエラー内容)

Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (2.1.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (minimodule) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 3.10004.201016 (1.0.4)
 - tool-esptoolpy 1.30000.201119 (3.0.0)
 - tool-openocd-esp32 2.1000.20201202 (10.0)
 - toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 41 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <DFRobotDFPlayerMini> 1.0.5
|-- <Adafruit MCP23017 Arduino Library> 1.1.0
|   |-- <Wire> 1.0.1
|-- <MCP342x> 1.0.2
|   |-- <Wire> 1.0.1
|-- <Wire> 1.0.1
|-- <LAN_CARD> 1.0.0
|   |-- <UART_Bridge-master>
|   |   |-- <SPI> 1.0
|   |   |-- <Wire> 1.0.1
|   |-- <Wire> 1.0.1
|-- <RTC> 1.0.1
|   |-- <Wire> 1.0.1
|-- <UART_Bridge-master>
|   |-- <SPI> 1.0
|   |-- <Wire> 1.0.1
|-- <SD> 1.2.4
|   |-- <SPI> 1.0
|-- <SPI> 1.0
|-- <lv_arduino> 3.0.1
|-- <lv_examples> 7.3.1
|   |-- <lv_arduino> 3.0.1
|-- <TFT_eSPI> 1.5.0
|   |-- <SPIFFS> 1.0
|   |   |-- <FS> 1.0
|   |-- <FS> 1.0
|   |-- <SPI> 1.0
|-- <WiFi> 1.0
Building in debug mode
Compiling .pio\build\esp32dev\src\audio.cpp.o
Compiling .pio\build\esp32dev\src\card.cpp.o
Compiling .pio\build\esp32dev\src\devIO.cpp.o
Compiling .pio\build\esp32dev\src\device.cpp.o
Compiling .pio\build\esp32dev\src\env.cpp.o
Compiling .pio\build\esp32dev\src\event.cpp.o
Compiling .pio\build\esp32dev\src\main.cpp.o
Compiling .pio\build\esp32dev\src\network.cpp.o
Compiling .pio\build\esp32dev\src\task.cpp.o
src\audio.cpp: In member function 'void AudioPlayer::PlayThread()':
src\audio.cpp:45:16: warning: variable 'xStatus' set but not used [-Wunused-but-set-variable]
     BaseType_t xStatus;
                ^
src\card.cpp: In function 'void vCardTask1(void*)':
src\card.cpp:39:17: warning: unused variable 'pcTaskName' [-Wunused-variable]
     const char *pcTaskName = (char*)pvParameters;
                 ^
src\env.cpp: In function 'void env_save(env_t*, env_hdr_t*)':
src\env.cpp:91:9: warning: unused variable 'err' [-Wunused-variable]
     int err= 0;
         ^
src\env.cpp:92:14: warning: unused variable 'crc' [-Wunused-variable]
     uint8_t  crc;
              ^
src\env.cpp:93:14: warning: unused variable 'size' [-Wunused-variable]
     uint32_t size = sizeof(env_t) + sizeof(env_hdr_t);
              ^
src\env.cpp: In function 'void env_default(env_t*)':
src\env.cpp:313:53: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
         memcpy(sensor->name,mStrInitSensor[i],sizeof(mStrInitSensor[i]));
                                                     ^
src\env.cpp:382:46: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
   memcpy(sensor->name,mStrInitTampa[i],sizeof(mStrInitTampa[i]));
                                              ^
src\env.cpp:425:54: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
         memcpy(sensor->name,mStrInitMulti[i%4],sizeof(mStrInitMulti[i%4]));
                                                      ^
src\env.cpp:467:47: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
   memcpy(sensor->name,mStrInitWire[i%2],sizeof(mStrInitWire[i%2]));
                                               ^
In file included from C:/users/kmaeh/.platformio/lib/lv_examples-master/src/lv_examples.h:17:0,
                 from src\main.cpp:8:
c:\users\kmaeh\.platformio\lib\lv_examples-master\lv_examples.h:34:0: warning: "LV_USE_DEMO_PRINTER" redefined
 #define LV_USE_DEMO_PRINTER 1
 ^
In file included from c:\users\kmaeh\.platformio\lib\lv_examples-master\lv_examples.h:31:0,
                 from C:/users/kmaeh/.platformio/lib/lv_examples-master/src/lv_examples.h:17,
                 from src\main.cpp:8:
c:\users\kmaeh\.platformio\lib\lv_examples-master\lv_ex_conf.h:33:0: note: this is the location of the previous definition
 #define LV_USE_DEMO_PRINTER     0
 ^
src\network.cpp: In function 'void down_process(WiFiClient*, PL_CONFIG_RELAY*)':
src\network.cpp:228:24: warning: unused variable 'pFirm' [-Wunused-variable]
     volatile uint8_t * pFirm;
                        ^
src\network.cpp:229:14: warning: unused variable 'crc' [-Wunused-variable]
     uint8_t  crc;
              ^
src\network.cpp: In function 'void upload_process(WiFiClient*, PL_CONFIG_RELAY*)':
src\network.cpp:297:10: warning: unused variable 'id' [-Wunused-variable]
  uint8_t id;
          ^
src\network.cpp:298:11: warning: unused variable 'offset' [-Wunused-variable]
  uint32_t offset;
           ^
src\network.cpp:301:11: warning: unused variable 'crc' [-Wunused-variable]
  uint16_t crc;
           ^
Archiving .pio\build\esp32dev\liba04\liblv_arduino.a
Linking .pio\build\esp32dev\firmware.elf
Building .pio\build\esp32dev\firmware.bin
Retrieving maximum program size .pio\build\esp32dev\firmware.elf
Checking size .pio\build\esp32dev\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  20.2% (used 66036 bytes from 327680 bytes)
Flash: [===       ]  27.7% (used 871479 bytes from 3145728 bytes)
esptool.py v3.0
========================= [SUCCESS] Took 11.23 seconds =========================
Reading symbols from d:\mywork\m20TestCode\MX01W_Hard_Test_Program\M20Wifi\.pio\build\esp32dev\firmware.elf...
done.
PlatformIO Unified Debugger -> http://bit.ly/pio-debug
PlatformIO: debug_tool = minimodule
PlatformIO: Initializing remote target...
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
WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
Info : FreeRTOS creation
adapter speed: 20000 kHz

Info : tcl server disabled
Info : telnet server disabled
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description 'FT2232H MiniModule', serial '*' at bus location '*'
![debugError.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/190290/e03dc535-ed94-6a5f-3c71-1c9a66aa2024.png)

Assertion failed!

Program: C:\Users\kmaeh\.platformio\packages\tool-openocd-esp32\bin\openocd.exe
File: ../src/jtag/core.c, Line 343

Expression: jtag_trst == 0
.pioinit:11: Error in sourced command file:
Remote communication error.  Target disconnected.: No error.

または、問題・エラーが起きている画像をここにドラッグアンドドロップ。

debugError.png

自分で試したこと

ここに問題・エラーに対して試したことを記載してください。

2

1Answer

機材を持ち合わせていないので確実なことは言えませんが、

Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description 'FT2232H MiniModule', serial '' at bus location ''

から推測すると、おそらくOCDの設定ファイルを未修正のまま使用されているのではないかと思います。

pid は '6010' → '6014'
description は 'FT2232H MiniModule' → 'Single RS232-HS'

が、AE-FT232HL 用の設定値になるのかな?

詳細は下記リンクの「minimoduleの設定変更」項が参考になるかと思います。

1Like

Comments

  1. @KenjiMaehara

    Questioner

    回答頂きありがとうございます。
    解決できました。助かりました。

Your answer might help someone💌