Problems with ESP32-s3

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
totemspirithousecat
Posts: 1
Joined: Thu May 26, 2022 3:47 am

Re: Problems with ESP32-s3

Post by totemspirithousecat » Thu May 26, 2022 3:54 am

@rira's solution worked for me after many many tries. Finally, I think the problem for me was trying to get the REPL on the 'USB' port on the ESP32-S3-DevkitC. The REPL is on the 'UART' port.

Does anyone know how to automatically configure the sdkconfig options for 16MiB/Octal SPIRAM etc.? I'd like to make these changes and help fix the public codebase.

I also added menuconfig and monitor to the Makefile as this makes working with only Make much easier.

Code: Select all

all:
	idf.py $(IDFPY_FLAGS) build
	@$(PYTHON) makeimg.py \
		$(BUILD)/sdkconfig \
		$(BUILD)/bootloader/bootloader.bin \
		$(BUILD)/partition_table/partition-table.bin \
		$(BUILD)/micropython.bin \
		$(BUILD)/firmware.bin \
		$(BUILD)/micropython.uf2

$(BUILD)/bootloader/bootloader.bin $(BUILD)/partition_table/partition-table.bin $(BUILD)/micropython.bin: FORCE

clean:
	idf.py $(IDFPY_FLAGS) fullclean

menuconfig:
	idf.py $(IDFPY_FLAGS) menuconfig

deploy:
	idf.py $(IDFPY_FLAGS) -p $(PORT) -b $(BAUD) flash

erase:
	idf.py $(IDFPY_FLAGS) -p $(PORT) -b $(BAUD) erase-flash

monitor:
	idf.py $(IDFPY_FLAGS) -p $(PORT) -b $(BAUD) monitor

submodules:
	git submodule update --init $(addprefix ../../,$(GIT_SUBMODULES))

matthiasheng
Posts: 13
Joined: Sat Oct 06, 2018 1:57 pm

Re: Problems with ESP32-s3

Post by matthiasheng » Tue Jul 26, 2022 2:14 pm

I'm glad that i found @rira solution! This is very helpful!
I have a ESP32S3 N8R8 board, edit sdkconfig.spiram_sx Change CONFIG_SPIRAM_MODE_QUAD=y -> CONFIG_SPIRAM_MODE_OCT=y works!
when i edit mpconfigboard.cmake comment out: boards/sdkconfig.usb -> # boards/sdkconfig.usb, the USB is not working, only output from the UART.
i tried to uncomment # boards/sdkconfig.usb, now it works with both UART and USB except that when we do reset, the USB disconnect and you need to re-connect again.
This can be reproduce with v1.19.1, self build firmware.
####################################
import machine

machine.reset()
####################################
And it only happen with GENERIC_S3_SPIRAM build, i tried with GENERIC_S3 build, both UART and USB works without the mentioned reset() issue but can't use the 8MB RAM.

Post Reply