I am using Platform IO as my IDE and I am trying to debug my ESP32 by running a simple hello world program.
I have successfully run it and seen the output in PIO's serial monitor on an Uno, however, I am not seeing the same result with the ESP32.
The ESP32 says it has successfully compiled and uploaded the code (same code as on the Arduino Uno) however I am not seeing any output from the ESP32.
The code I am using is:
Code: Select all
#include <Arduino.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Hello World!");
}
Code: Select all
Looking for upload port...
Auto-detected: COM10
Forcing reset using 1200bps open/close on port COM10
Waiting for the new upload port...
Uploading .pio\build\adafruit_feather_esp32s3_tft\firmware.bin
esptool.py v4.5.1
Serial port COM9
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:59:a9:e0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x002d0000 to 0x002fdfff...
Flash will be erased from 0x00010000 to 0x00053fff...
Compressed 22656 bytes to 14254...
Writing at 0x00000000... (100 %)
Wrote 22656 bytes (14254 compressed) at 0x00000000 in 0.5 seconds (effective 385.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 136...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (136 compressed) at 0x00008000 in 0.1 seconds (effective 412.5 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 562.0 kbit/s)...
Hash of data verified.
Compressed 185328 bytes to 119268...
Writing at 0x002d0000... (12 %)
Writing at 0x002d7894... (25 %)
Writing at 0x002de62b... (37 %)
Writing at 0x002e5223... (50 %)
Writing at 0x002eadb8... (62 %)
Writing at 0x002f07bf... (75 %)
Writing at 0x002f5829... (87 %)
Writing at 0x002fb81e... (100 %)
Wrote 185328 bytes (119268 compressed) at 0x002d0000 in 2.5 seconds (effective 585.8 kbit/s)...
Hash of data verified.
Compressed 274880 bytes to 156595...
Writing at 0x00010000... (10 %)
Writing at 0x0001c4fd... (20 %)
Writing at 0x000246ca... (30 %)
Writing at 0x00029cd6... (40 %)
Writing at 0x0002f029... (50 %)
Writing at 0x000342ad... (60 %)
Writing at 0x0003a5f1... (70 %)
Writing at 0x00044c81... (80 %)
Writing at 0x0004a2a2... (90 %)
Writing at 0x0004fe0f... (100 %)
Wrote 274880 bytes (156595 compressed) at 0x00010000 in 3.3 seconds (effective 658.8 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
================================================================================================= [SUCCESS] Took 39.41 seconds =================================================================================================
* Terminal will be reused by tasks, press any key to close it.
Code: Select all
Executing task in folder Test Project: C:\Users\n\.platformio\penv\Scripts\platformio.exe device monitor
--- Terminal on COM9 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://BANNED/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H