platformio / platform-espressif32

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

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

Open terrafirma2021 opened 4 months ago

terrafirma2021 commented 4 months ago

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

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

Thanks

valeros commented 4 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 3 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 3 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 3 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 3 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 1 month ago

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

dzalf commented 1 month 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