Serial monitor strange output when resetting ESP32

Hello,

I have cloned the arduino-ide repo (arduino 2.0) and ran it on my Mac (Ventura 13.0.1, M1 chip).

I'm using the ESP32 WROVER-KIT and I have a basic sketch that displays the "Hello World!" text every 10 seconds to the serial monitor and it works great.

However, I'm getting the following output when I'm resetting the board and it's not clear to me if it's the same behaviour for arduino boards, since I only have ESP boards.

The normal text represents the several characters I receive in the serial monitor when I'm resetting the board. I've tried to debug this behaviour and i noticed you are using TextDecoder with 'utf8', so before the decoder, the data array has the following values (represented by the italic text):

,t // [44,116]

4? // [52,63]

( // [40]

// [32, 184]

// [32, 236]

4- // [52,45]

I should mention that I work on the Espressif's VsCode extension and I'm trying to create an Exception Decoder prototype for supporting esp-idf on the arduino 2.0 IDE.

Thank you!

Getting strange characters when rebooting or resetting the ESP32 has not ever been an issue for me.

Why / how is it an issue for you?

I'm trying to understand how the serial monitor is decoding the serial output.

More information of what I'm running:

I'm running the code from the main branch of arduino-ide.
And this is my sketch:

void setup() {

Serial.begin(9600);

}

void loop() {

Serial.println("Hello world!");

delay(10000);

}

Output would look like this (the strange characters appear when I reset the board):

Hello world!
Hello world!
 tt�&lHello world!
Hello world!

Is the serial monitor really doing its thing during the time the ESP is resetting?

Good luck.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.