Seems to program but won't run code
Posted: Mon Mar 25, 2024 7:49 pm
Using Arduino 1.8.16, I'm trying to program this ESP32S3-Mini-1:
I've simplified my setup code to simply:
My output during compile and programming starts out strange (I don't understand the "Forcing reset"), then seems to program OK:
Any ideas as to what I might be doing wrong or might try would be greatly appreciated.
My tools setup is:
***NOTE: I've also tried this with Flash mode set to QIO 80MHz & QIO 120 MHzI've simplified my setup code to simply:
Code: Select all
void setup(void) {
pinMode(IO_BUZZER, OUTPUT);
digitalWrite(IO_BUZZER, LOW);
Serial.begin(115200);
delay(5000);
Serial.println("Waking up");
while (1) {
beep();
delay(1000);
}
}
Pin 1 is strapped low for programming, and the board seems to program OK, then I remove the strap and reboot. But I am unable to achieve serial or audio output. I've tried many (perhaps all) combinations of tool settings to no avail.Sketch uses 1203753 bytes (61%) of program storage space. Maximum is 1966080 bytes.
Global variables use 67344 bytes (20%) of dynamic memory, leaving 260336 bytes for local variables. Maximum is 327680 bytes.
Forcing reset using 1200bps open/close on port COM7
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
Uploading using selected port: COM7
C:\Users\nancy\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.5.1/esptool.exe --chip esp32s3 --port COM7 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dout --flash_freq 80m --flash_size 8MB 0x0 C:\Users\nancy\AppData\Local\Temp\arduino_build_846577/RRC300.ino.bootloader.bin 0x8000 C:\Users\nancy\AppData\Local\Temp\arduino_build_846577/RRC300.ino.partitions.bin 0xe000 C:\Users\nancy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/partitions/boot_app0.bin 0x10000 C:\Users\nancy\AppData\Local\Temp\arduino_build_846577/RRC300.ino.bin
esptool.py v4.5.1
Serial port COM7
Connecting...
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: c0:4e:30:11:ce:20
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
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 0x00135fff...
Compressed 14064 bytes to 9792...
Writing at 0x00000000... (100 %)
Wrote 14064 bytes (9792 compressed) at 0x00000000 in 0.2 seconds (effective 474.0 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 535.7 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 738.6 kbit/s)...
Hash of data verified.
Compressed 1204112 bytes to 774527...
Writing at 0x00010000... (2 %)
Any ideas as to what I might be doing wrong or might try would be greatly appreciated.