Nano -> ESP32 a big leap

Hi All,

I have been using NANO’s for years as most projects are very simple, however I had a need to 3.3v logic levels so made the leap and bought 3 x ESP32-S3 (Amazon) and wow, lots of setup and not what I’m using to (simple load and go) I programmed all 3 of the ESP’s with the example “getchipid” code after installing the github board packages. all three keep rebooting (output below) so I am 99% it’s just a setting or me, any pointers would be much appreciated.

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4037bdc1
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0x10cc
load:0x403c8700,len:0xc2c
load:0x403cb700,len:0x30c0
entry 0x403c88b8
E (89) octal_psram: PSRAM chip is not connected, or wrong PSRAM line mode
E (89) esp_psram: PSRAM enabled but initialization failed. Bailing out.
E cpu_start: Failed to init external RAM; continuing without it.
E (96) octal_psram: PSRAM chip is not connected, or wrong PSRAM line mode
E (103) esp_psram: PSRAM enabled but initialization failed. Bailing out.
E (123) spi_flash: Detected size(4096k) smaller than the size in the binary image header(16384k). Probe failed.

assert failed: __esp_system_init_fn_init_flash startup_funcs.c:118 (flash_ret == ESP_OK)

Backtrace: 0x4037bc0d:0x3fceb120 0x4037bbd5:0x3fceb140 0x403829ba:0x3fceb160 0x420075e7:0x3fceb2a0 0x42008c37:0x3fceb2c0 0x42008c71:0x3fceb2e0 0x40375d8e:0x3fceb310 0x403ccd59:0x3fceb340 0x403cd115:0x3fceb380 0x403c8925:0x3fceb4b0 0x40045c01:0x3fceb570 0x40043ab6:0x3fceb6f0 0x40034c45:0x3fceb710

ELF file SHA256: d02bf0b85

E (159) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
E (167) esp_core_dump_elf: Elf write init failed!
E (172) esp_core_dump_common: Core dump write failed with error=-1
Rebooting...

There is only one package, exactly what did you install?
Did you use the board manager to install?
Which board do you have selected?

What does that mean, when I get a new esp32 I just selct the board type from the list and it works.

That is really confusing. The normal procedure is
NO additional URL is needed. Just go into the board manager and enter esp32 in the search box, click install as seen below.

Hi,

OK I probably got overwhelmed and tried to google too many things, I have gone back to basics and as you say I’m now using as you say the provided ESP32 board, there are lots of examples but I want a simple blinkled type example, whats the most basic example you know that will simple prove I have everything setup ok? I’m assuming I can’t use “blink” as when I tried it nothing happened. (p.s. if does seem to have stopped rebooting thx)

The basic Blink will work as long as you put an LED on the pin used by the sketch

As an alternative, how about printing a value every second that increases by one every time it is printed

From the Amazon link you posted, the led on that board is a WS2812 rgb on pin 21 . It will require using the Adafruit neopixel library to drive.

As @UKHeliBob suggests, some program with Serial output might be a better place to confirm your setup.

1 Like

Hi, I’ve checked the link and it goes to “diymore 3PCS ESP32-S3 WiFi Bluetooth Mini Development Board Module Dual-Core Processor Based on ESP32-S3” on amazon”

I have also uploaded this simple code and got no output in serial monitor set to correct speed.

void setup() 
{            
  Serial.begin(115200);
}

// void loop runs over and over again
void loop() 
{
  Serial.println("Hello world");
  delay(1000);
}


I selected the ESP32-S3 that’s what was in the Amazon advert. (see picture attached)

change your psram option to QSPI and your flash size down to 4MB..
from datasheet..
ESP32-S3FH4R2 4 MB (Quad SPI) 2 MB (Quad SPI)

good luck.. ~q

The esp32 s3 has native usb.

In the ide with tools, set "USB CDC On Boot" to "Enabled" before downloading the code.

1 Like

See Post #9.

Hi,

Is there a full list of all the chip setting I should use, I did change some after watching various video’s / google articles. so I want to make sure these are all OK as its still not working.

Select the Lolin S3 mini for your board.

Set USB CDC on Boot to Enabled

Go to Files->Examples->ESP->GPIO and select the BlinkRGB example.

Wrong setting in Arduino IDE. Disable octal PSRAM. If you have PSRAM it should be QIO. Or may be you don’t have any. Also wrong setting of the flash size. Arduino IDE→Tools→PSRAM and Arduino IDE→Tools→Flash Size

Looks like you bough low end version. Common s3 devboards are 16mb flash and 8mb octal psram. Yours is 4mb flash and I think, no PSRAM at all. Did you set you target to ESP32S3 Dev Module?

This is the clear indication of wrong flash setup

Has 2MB PSRAM

1 Like

See post #12

We have lift off :-) thanks everyone especially Jim, I did as you said in post #12 but as I din’t have a LED attached did the Hello world and it worked. thanks again, I’m sure I will be back lol.

Your board has an RGB led on it. It's between the two push buttons.

Try these settings:
Select the Waveshare ESP32-S3-Zero for your board.
Set USB CDC on Boot to Enabled
Set PSRAM to Enabled

Go to Files->Examples->ESP->GPIO and select the BlinkRGB example.

The onboard LED should blink

Worked a treat :-) I think coming from a simple Nano this is what is causing my confusion, the plethora of settings/board types. maybe I bought the wrong board for a beginner to ESP32! is there a board that’s much more widly used or even better, an Arduino version? as theoretically this would be popular well supported, I’m only looking for a simple board hence picking this little one I have as I’m trying to attached a RD-03D so only need Tx/Rx and a couple of other I/O.

Thanks

Arduino Nano ESP32, perhaps ?