esp32s2-cookbook icon indicating copy to clipboard operation
esp32s2-cookbook copied to clipboard

Looks like this might be S2 Mini friendly?

Open RandoSY opened this issue 2 years ago • 7 comments

Just took a glance, at the source and found PIN defs for the S2 Mini? Would make it easy to try :).

S2 Mini

RandoSY avatar May 15 '23 14:05 RandoSY

Just took a second to use this command line to flash CNlohr's programmer image on to my cheapest MINI S2, the one with no PSRAM on chip (ESP32-S2FH4) Make sure to have S2 in bootloader mode, and correct serial port id'd.

esptool.py -p COM7 -b 460800 --before=no_reset --after=no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 build/bootloader/bootloader.bin 0x10000 build/usb_sandbox.bin 0x8000 build/partition_table/partition-table.bin

`PS C:\Users\randa\Desktop\Trying to write a Bit-Banged USB Stack from Scratch\ch32v003fun-master\minichlink>

.\minichlink

Found ESP32S2 Programmer Error: Setup chip failed. Got code ffffffff Could not setup interface.`

Next step would be to try and interface to the 1-wire SWIO interface with the CH32V003F4P6 test board, and see what's what... good start however!

RandoSY avatar May 15 '23 21:05 RandoSY

Good start indeed!

cnlohr avatar May 16 '23 09:05 cnlohr

LMK how it goes!

Does this mean we are head-to-head trying to write the bit-banged stack?

cnlohr avatar May 16 '23 09:05 cnlohr

Hi, I am also trying to use the S2 Mini board as a programmer, but with the S2FN4R2 chip. After successfully flashing the programming firmware using this command: esptool.py -p /dev/ttyACM1 -b 460800 --before=no_reset --after=no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 build/bootloader/bootloader.bin 0x10000 build/usb_sandbox.bin 0x8000 build/partition_table/partition-table.bin if i do ./minichlink I just get: Error: Could not initialize any supported programmers

Any ideas on why that might be?

c3am avatar Jun 24 '23 17:06 c3am

  1. Make sure to unplug and replug the S2 completely after flashing it, USB does not reliably reset without a fully unplug/replug.
  2. Does anything show up in in dmesg when plugging the S2 back in?
  3. Please post the output from esptool.py

cnlohr avatar Jun 26 '23 07:06 cnlohr

I just tried putting sudo in front of ./minichlink and it worked... : ) but thanks anyways. I have got a nano ch32v003 board which I was able to program using the S2 Mini.

c3am avatar Jun 26 '23 20:06 c3am

Close issue now?

cnlohr avatar Jun 28 '23 20:06 cnlohr