tools: use built-in USB_SERIAL_JTAG for "idf.py openocd" on C3 and S3

Since both chips have built-in JTAG functionality, and there are no
official boards with FT2232H for these chips, use the built-in JTAG
by default.

To use them with esp-prog, set:
  OPENOCD_COMMANDS="-f board/esp32c3-ftdi.cfg"
or pass this via the --openocd-commands argument to idf.py.
This commit is contained in:
Ivan Grokhotkov 2022-08-05 18:22:30 +02:00
parent 74abb42053
commit d366664b0d
No known key found for this signature in database
GPG Key ID: 1E050E141B280628

View File

@ -159,6 +159,8 @@ def action_extensions(base_actions: Dict, project_path: str) -> Dict:
OPENOCD_TAGET_CONFIG = {
'esp32': '-f board/esp32-wrover-kit-3.3v.cfg',
'esp32s2': '-f board/esp32s2-kaluga-1.cfg',
'esp32c3': '-f board/esp32c3-builtin.cfg',
'esp32s3': '-f board/esp32s3-builtin.cfg',
}
if os.getenv('OPENOCD_SCRIPTS') is None:
raise FatalError('OPENOCD_SCRIPTS not found in the environment: Please run export.sh/export.bat', ctx)