esp32s2-cookbook
esp32s2-cookbook copied to clipboard
Looks like this might be S2 Mini friendly?
Just took a glance, at the source and found PIN defs for the S2 Mini? Would make it easy to try :).
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!
Good start indeed!
LMK how it goes!
Does this mean we are head-to-head trying to write the bit-banged stack?
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?
- Make sure to unplug and replug the S2 completely after flashing it, USB does not reliably reset without a fully unplug/replug.
- Does anything show up in in
dmesgwhen plugging the S2 back in? - Please post the output from
esptool.py
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.
Close issue now?