Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to adding support FT232H for debug ESP32 ? (Read 2686 times)
zqxc9061
Newbies
*
Offline


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


Posts: 2174
Joined: Feb 13th, 2019
Re: How to adding support FT232H for debug ESP32 ?
Reply #1 - Nov 7th, 2019 at 11:39am
Print Post  
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:
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
Joined: Nov 6th, 2019
Re: How to adding support FT232H for debug ESP32 ?
Reply #2 - Nov 7th, 2019 at 8:23pm
Print Post  
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@Visual Micro
Administrator
*****
Online


Posts: 2174
Joined: Feb 13th, 2019
Re: How to adding support FT232H for debug ESP32 ?
Reply #3 - Nov 8th, 2019 at 2:41pm
Print Post  
Thanks for the detailed information.

If you paste this into the minimodule file:

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 TopicPrint