Lolin esp32 s3 mini pro

Hello
i can’t fix the parameters of a lolin S3 mini pro !
i use
[env:lolin_s3_mini]
platform = espressif32
board = lolin_s3
framework = arduino
build_flags =
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1

but i still have errors on download !

what i have missed ??

thanks

Please show the error message!

Use pre-formatted text when posting code or log-lines.

Writing at 0x000c3b0f… (96 %)
Writing at 0x000c98c9… (100 %)
Wrote 763312 bytes (493698 compressed) at 0x00010000 in 6.8 seconds (effective
894.5 kbit/s)…

A serial exception error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, ‘Le périphérique ne reconnaît pas la commande.’, None, 22)
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation
*** [upload] Error 1

thanks for your answer

Please show the complete upload log. It would be very kind if you would use pre-formatted text by using three backticks before and after your text:

```
Your Log here
```

Which board exactly do you use? In the environment name you have lolin_s3_mini but as board you’re using lolin_s3 !?

i begin with lolin_s3_mini but as i have pb i try with lolin_s3.
but the pb is the same.
my log

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin_s3.html
PLATFORM: Espressif 32 (6.9.0) > WEMOS LOLIN S3
HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, 
olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b
 - tool-esptoolpy @ 1.40501.0 (4.5.1)
 - tool-mkfatfs @ 2.0.1
 - tool-mklittlefs @ 1.203.210628 (2.3)
 - tool-mkspiffs @ 2.230.0 (2.30)
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
 - toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 40 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Adafruit GFX Library @ 1.12.1
|-- Adafruit ST7735 and ST7789 Library @ 1.11.0
|-- Adafruit NeoPixel @ 1.13.0
|-- arduino-timer @ 3.0.1
|-- ArduinoJson @ 7.4.1
|-- ESPmDNS @ 2.0.0
|-- HTTPClient @ 2.0.0
|-- LittleFS @ 2.0.0
|-- SPI @ 2.0.0
|-- WiFi @ 2.0.0
|-- Wire @ 2.0.0
Building in release mode
Retrieving maximum program size .pio\build\lolin_s3_mini\firmware.elf
Checking size .pio\build\lolin_s3_mini\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  13.8% (used 45216 bytes from 327680 bytes)
Flash: [=         ]  11.6% (used 762941 bytes from 6553600 bytes)
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM31
Uploading .pio\build\lolin_s3_mini\firmware.bin
esptool.py v4.5.1
Serial port COM31
Connecting...
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: f0:f5:bd:76:1e:c4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x000cafff...
Compressed 15104 bytes to 10429...
Writing at 0x00000000... (100 %)
Wrote 15104 bytes (10429 compressed) at 0x00000000 in 0.3 seconds (effective 423.1 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 409.0 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 584.2 
kbit/s)...
Hash of data verified.
Compressed 763312 bytes to 493698...
Writing at 0x00010000... (3 %)
Writing at 0x0001b645... (6 %)
Writing at 0x00025db9... (9 %)
Writing at 0x00033025... (12 %)
Writing at 0x000389cd... (16 %)
Writing at 0x0003e73f... (19 %)
Writing at 0x00043c15... (22 %)
Writing at 0x000490aa... (25 %)
Writing at 0x0004e18a... (29 %)
Writing at 0x00052f57... (32 %)
Writing at 0x00057f1d... (35 %)
Writing at 0x0005cd4f... (38 %)
Writing at 0x00061c89... (41 %)
Writing at 0x0006708f... (45 %)
Writing at 0x0006c1b4... (48 %)
Writing at 0x00071e66... (51 %)
Writing at 0x00076e97... (54 %)
Writing at 0x0007bdd1... (58 %)
Writing at 0x00080ee7... (61 %)
Writing at 0x000860c0... (64 %)
Writing at 0x0008b57a... (67 %)
Writing at 0x000908fe... (70 %)
Writing at 0x000967a4... (74 %)
Writing at 0x0009bccb... (77 %)
Writing at 0x000a1669... (80 %)
Writing at 0x000a9ba5... (83 %)
Writing at 0x000b2479... (87 %)
Writing at 0x000b7981... (90 %)
Writing at 0x000be1d5... (93 %)
Writing at 0x000c3b0f... (96 %)
Writing at 0x000c98c9... (100 %)
Wrote 763312 bytes (493698 compressed) at 0x00010000 in 6.8 seconds (effective 
894.5 kbit/s)...

A serial exception error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'Le périphérique ne reconnaît pas la commande.', None, 22)
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: 
*** [upload] Error 1
========================= [FAILED] Took 30.11 seconds =========================
 *  Arrêt du processus de terminal "C:\Users\annie\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload', '--target', 'monitor', '--environment', 'lolin_s3_mini'". Code de sortie : 1. 
 *  Le terminal sera réutilisé par les tâches, appuyez sur une touche pour le fermer.

It seems you’re using the “Upload an Monitor” button and Auto detecting the COM Port. You’re also using the ESP32-S3’s builtin USB port, which will disconnect when the MCU restarts. You’ll probably have different ports for Uploading and Serial monitoring.

Please reset your board manually after uploading and check the available COM Port.

You also should update to the latest official platform32 version which is 6.10.0 (platform = espressif32 @ 6.10.0) or better to the latest available version of Espressif Arduino 3.2.0 by using pioarduino:

platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.20/platform-espressif32.zip

you’re right : i use “Upload an Monitor”
ok,i try 6.10.0
and i tell you
thanks

It is more about resetting your board manually and checking the available COM port.

i keep with lolin_s3_mini ? or lolin_s3 ?

These are different boards with different amount of FLASH (and may be other differences I don’t know).

So use the board in the platformio.ini which you really (physical) have in use!

If you have a LOLIN-S3 MINI use lolin_s3_mini
If you have a LOLIN-S3 use lolin_s3

i have a lolin s3 mini pro but i don’t find it. so i use s3_mini.
ok it’s compile and upload with the command “upload”. i reset the board and when i want to monitor, i have this message. the code don’t works

: E (26) flash_parts: partition 2 invalid - offset 0x10000 size 0x640000 exceeds
flash chip size 0x400000
E (27) boot: Failed to verify partition table
E (28) boot: load partition table error!
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403ccf65
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0x118c
load:0x403c8700,len:0x4
load:0x403c8704,len:0xc20
load:0x403cb700,len:0x30e0
entry 0x403c88b8

is a pb with the Serial ?

This is a total different issue! You’re trying to upload a 6.4 MB sketch to a 4 MB Flash chip → this won’t work!

How much Flash does the Pro Mini have?

And what do you mean by “pb” ??

If I get the technical specs correctly it is using an ESP32-S3FH4R2 which have 4 MB Flash and 2 MB PSRAM.

So this configuration should work.

Of course you would also need the additional settings for USB-CDC:

build_flags = 
  -D ARDUINO_USB_MODE=1
  -D ARDUINO_USB_CDC_ON_BOOT=1

pb == problem !! sorry, i’m french !!

and ok for the memory size ! i don’t see it

Try the configuration I mentioned before. Also set the USB-CDC flag.
See my post before

thanks for all !
i try this

wonderfull, with your configuration the sketch is working !!

thanks very much !!