Skip to content

USB-JTAG pin19 and pin20 to be used as GPIO #10587

@muzahid13

Description

@muzahid13

Board

esp32-s3

Device Description

i am using esp32-s3 based LVGL 7 inch display. I need to use the USB-JTAG pin19 and pin20 as gpio. i already prepared the PCB. i just made high and low pin20 at regular interval, then i noticed that it impacted on other code, i am using visual studio code platformio and framework: arduino.how can i disbale usb-jtag in platformio and framework arduino. my code is completed, i stuck on pin19 and pin20 to be gpio. thanks

Hardware Configuration

GPIO pin19 and pin20 are connected to max485 D-enable and R-enable pin. so those pin shoudl be used as GPIO pin

Version

latest master (checkout manually)

IDE Name

PlatformIO

Operating System

Windows11

Flash frequency

40Mhz

PSRAM enabled

yes

Upload speed

115200

Description

pin19 and pin20 must be used as GPIO. when i enable PIN19 and 20 as GPIO, the code impact on other portion like the mcu is hanged

Sketch

void loop()
{
  lv_timer_handler(); /* let the GUI do its work */
  delay(5);

  pinMode(20,OUTPUT);
  digitalWrite(20,LOW);
 if (Serial1.available()>0)
  {
  digitalWrite(20,HIGH);
  Serial1.write(Serial1.read());
  delay(2);
  digitalWrite(20,LOW);
  }

}

Debug Message

no error found on debug

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions