Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
How to adding support FT232H for debug ESP32 ? (Read 107 times)
zqxc9061
Newbies
*
Offline



Posts: 2
How to adding support FT232H for debug ESP32 ?
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?
Back to top
« Last Edit: Nov 6th, 2019 at 7:50pm by zqxc9061 »  
 
IP Logged
 
Simon Hopkinson
Administrator
*****
Offline



Posts: 52
Re: How to adding support FT232H for debug ESP32 ?
Reply #1 - 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.
Back to top
 
 
IP Logged
 
zqxc9061
Newbies
*
Offline



Posts: 2
Re: How to adding support FT232H for debug ESP32 ?
Reply #2 - 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
Back to top
 
 
IP Logged
 
Simon Hopkinson
Administrator
*****
Offline



Posts: 52
Re: How to adding support FT232H for debug ESP32 ?
Reply #3 - 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.
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print