platformio / platform-espressif32

Espressif 32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif32
Apache License 2.0
932 stars 633 forks source link

Board request for Waveshare mini ESP32-S3FH4R2 (ESP32-S3-Zero Development Board) #1318

Open terrafirma2021 opened 9 months ago

terrafirma2021 commented 9 months ago

Hi, can you please add support for the waveshare mini.

URL: https://www.waveshare.com/esp32-s3-zero.htm

Thanks

valeros commented 9 months ago

Hi @terrafirma2021, usually a variant header file with proper pin definitions in the Arduino core is required to avoid frustrating issues when default pins (e.g. LED_BUILTIN) doesn't correspond to the real hardware.

coryking commented 8 months ago

In general, how do you know what sorts of things get added to that json file under ./boards? I purchased what looks to be this same board on aliexpress and I can't find much info about it beyond what was in the graphic on their product page.

S6feee47b32a14233a2f75f88ec49f074X

coryking commented 8 months ago

Could it be the same board as this one: https://www.wemos.cc/en/latest/s3/s3_mini.html ?

It looks different, but has the same S3FH4R2 in it and seems to have the same specs:

based ESP32-S3FH4R2
2.4 GHz Wi-Fi
Bluetooth LE
4MB Flash
2MB PSRAM
27x IO
1x RGB LED (IO47)
ADC, DAC, I2C, SPI, UART, USB OTG

Though the LED is on GP21

terrafirma2021 commented 8 months ago

Hi, can confirm that waveshare state to use on the IDE esp32s3.name=ESP32S3 Dev Module ( this is a generic board from what i understand, looking at the board info image

But platformio does not support this native board by searching.

I did look on the website and it was mentioned to use the https://community.platformio.org/t/booting-up-esp32-s3-zero-cpu-start-octal-flash-option-selected-but-efuse-not-configured/37936

However, For me, I had a partition issue when i booted the esp, so my board did not accept the settings recommended.

E (75) spi_flash: Detected size(4096k) smaller than the size in the binary image header(8192k). Probe failed.

assert failed: do_core_init startup.c:328 (flash_ret == ESP_OK)

I have tried a few different solutions, but i am unable to get my board working with the platformio.

Ardruino IDE is fine, which I resorted to using for now, as my project only needed to send basic uart frames to my feather s3

terrafirma2021 commented 8 months ago

@coryking Sorry i never reached back to you sooner, i decided to give the board another test on PIO. https://www.waveshare.com/esp32-s3-zero.htm You were spot on, thanks for replying, hopefully staff may add copy the config and add the name of the board, which will help out others who find this 5 usd board online and who want to use it without being limited to location of a pio file.

Can i suggest a name for the board as: waveshare_S3_Mini

PIO.ini: [env:lolin_s3_mini]

platform = espressif32

board = lolin_s3_mini

framework = arduino

monitor_speed = 115200

build_flags = -DARDUINO_USB_CDC_ON_BOOT=1

4piu commented 6 months ago

Note the built-in WS2812 pin on Waveshare S3 Zero is 21, while on Lolin it's 47

dzalf commented 6 months ago

+1 on this request. I am facing issues with the same chip ESP32-S3FH4R2 on a similar board, the WeAct Studio ESP32-S3-Mini and I would like to know what settings are appropriate. Nothing works with Platformio, only with the Arduino IDE as commented by @terrafirma2021

Cheers

dixonbg commented 2 months ago

+1 for ESP32-S3FH4R2 and Waveshare S3 Zero there are more boards around with this chip https://www.lilygo.cc/products/t-micro32-s3 image https://www.espressif.com/sites/default/files/documentation/esp32-s3_datasheet_en.pdf

sivar2311 commented 2 months ago

For the ESP32-S3 FH4R2 please see https://github.com/sivar2311/ESP32-S3-PlatformIO-Flash-and-PSRAM-configurations?tab=readme-ov-file#esp32-s3-fh4r2

Godeffroy commented 2 days ago

+1 for this one as well : ESP32-S3-Tiny (ESP32-S3FH4R2) RGB LED is on Pin 38

In PlatformIO i can make it work with this config :

[platformio]
name = ESP32-S3-Tiny
description = ESP32-S3-Tiny
default_envs = esp32

[env]
; Flash: 4MB QD, PSRAM: 2MB QD
platform = espressif32
board = dfrobot_firebeetle2_esp32s3
framework = arduino
board_build.arduino.memory_type = qio_qspi
board_build.flash_mode = qio
board_build.psram_type = qio
board_upload.flash_size = 4MB
board_upload.maximum_size = 4194304
board_build.extra_flags = 
    -DBOARD_HAS_PSRAM
    ;https://docs.espressif.com/projects/arduino-esp32/en/latest/api/usb_cdc.html
    ;DARDUINO_USB_CDC_ON_BOOT=1 : Serial used for USB CDC
    -D ARDUINO_USB_CDC_ON_BOOT=1
    ;ARDUINO_USB_MODE=1 : USB is in device mode
    -D ARDUINO_USB_MODE=1
build_type = debug
monitor_speed = 921600
monitor_filters = esp32_exception_decoder

[env:esp32]
upload_protocol = esptool
build_flags = -D NO_WIFI
lib_deps = adafruit/Adafruit NeoPixel@^1.12.3