Esp32c serial screen works but serial commands wont work

whenever i reset the mcu i take response from serial monitor like the below.

I have tried Tera term to see messages. but result is same. Serial commands isn’t working

Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5810,len:0x438
load:0x403cc710,len:0x90c
load:0x403ce710,len:0x2624
entry 0x403cc710

#include <Arduino.h>

// put function declarations here:
int myFunction(int, int);

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  int result = myFunction(2, 3);
  pinMode(30,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  
  Serial.println("hebele");
  digitalWrite(30,HIGH);
  delay(500);
  digitalWrite(30,LOW);
  delay(500);
}

// put function definitions here:
int myFunction(int x, int y) {
  return x + y;
}

here is my code i have also changed monitor_speed to 115200 from platform.ini file

Please show the content of your platformio.ini and name the exact board you are using.

If the board has multiple ports (USB / UART), please specify which port you are using.

Sivar2311 is being modest. :slight_smile:

This question is frequently answered. Since you didn’t search, we can guess you’re using Arduino.

…contains the answer (the same answer, spelled two different ways) for platform={arduino,esp-idf}