VS Arduino
Visual Micro >> Hardware Debugging (GDB, GDB WiFi, GDB Stub) >> How to adding support FT232H for debug ESP32 ?
https://www.visualmicro.com/forums/YaBB.pl?num=1573069655

Message started by zqxc9061 on Nov 6th, 2019 at 7:47pm

Title: How to adding support FT232H for debug ESP32 ?
Post by zqxc9061 on Nov 6th, 2019 at 7:47pm
Platformio needs easy changes for support this chip. But which changes needs this extension?

Error: unable to open ftdi device with vid 0403, pid 6010

The FT232H has pid 6014, how to midify?

Title: Re: How to adding support FT232H for debug ESP32 ?
Post by Simon Hopkinson on Nov 7th, 2019 at 11:39am
Is it possible to confirm which debugger model this is?
Also if they are known the PlatformIO changes?

The vMicro OpenOCD Cfg files for the interfaces are in the below location:
%PROGRAMDATA%\VMicro\tools\openocd-espressif-esp32-10.0.1\share\openocd\scripts\interface\ftdi

The quickest change is the vid_pid entry in the file MINIMODULE-LOWCOST.CFG (edit as needed). This matches debugger selection "F2232H Dual RS232" in the IDE at present.

Title: Re: How to adding support FT232H for debug ESP32 ?
Post by zqxc9061 on Nov 7th, 2019 at 8:23pm
Thank You for quick responding

Is it possible to confirm which debugger model this is?

CJMCU FT232H

Also if they are known the PlatformIO changes?

In the config of minimodule clear current text and past this text:

interface ftdi
#ftdi_vid_pid 0x0403 0x6010
ftdi_vid_pid 0x0403 0x6014

# interface 1 is the uart
ftdi_channel 0
# just TCK TDI TDO TMS, no reset
ftdi_layout_init 0x0008 0x000b
reset_config none


Now, I using this platformio.ini:

[env:esp32dev]
platform = espressif32
board = esp32dev
monitor_speed = 115200
upload_speed = 921600
debug_tool = minimodule
upload_protocol = minimodule


Upload and debug works correctly

Title: Re: How to adding support FT232H for debug ESP32 ?
Post by Simon Hopkinson on Nov 8th, 2019 at 2:41pm
Thanks for the detailed information.

If you paste this into the minimodule file:
%PROGRAMDATA%\VMicro\tools\openocd-espressif-esp32-10.0.1\share\openocd\scripts\
interface\ftdi\minimodule.cfg


And select the debugger F2232 MiniModule from the list of hardware debuggers, it should work as expected.

We will look at adding in a "FT232H RS232" option the the built in list, which would allow this to just be selected in the future.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.