Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native USB board #8

Open
aaryavbehl opened this issue Jun 1, 2024 · 11 comments
Open

Native USB board #8

aaryavbehl opened this issue Jun 1, 2024 · 11 comments

Comments

@aaryavbehl
Copy link

Hi,
I bought a esp32 board which has no UART connection it only works on the native USB. It gets flashed easily but when I open putty with 115200 baud rate and the correct COM port it is stuck at the very first line "ESP-ROM:esp32s3-20210327". Can someone help me out please?

@jcmvbkbc
Copy link
Owner

jcmvbkbc commented Jun 1, 2024

it only works on the native USB

If you mean that USB serial you can assign a default console to it by placing file cmdline with the following text: earlycon=esp32s3acm,mmio32,0x60038000 console=ttyGS3 debug rw root=mtd:rootfs no_hash_pointers into build/build-buildroot-esp32s3/target/etc, running keep_buildroot=y keep_rootfs=y keep_bootloader=y keep_toolchain=y nice ./rebuild-esp32s3-linux-wifi.sh and letting it reflash the board including the etc partition.

@aaryavbehl
Copy link
Author

aaryavbehl commented Jun 1, 2024 via email

@aaryavbehl
Copy link
Author

aaryavbehl commented Jun 1, 2024 via email

@jcmvbkbc
Copy link
Owner

jcmvbkbc commented Jun 1, 2024

You can do it like that with your current directory where the build scripts are:

$ echo 'earlycon=esp32s3acm,mmio32,0x60038000 console=ttyGS3 debug rw root=mtd:rootfs no_hash_pointers' > build/build-buildroot-esp32s3/target/etc/cmdline
$ keep_buildroot=y keep_rootfs=y keep_bootloader=y keep_toolchain=y nice ./rebuild-esp32s3-linux-wifi.sh

It will run part of the build, prepare new file system images and prompt you to press enter when it's ready to flash the bootloader, kernel and rootfs and again for etc.

@aaryavbehl
Copy link
Author

aaryavbehl commented Jun 2, 2024 via email

@aaryavbehl
Copy link
Author

I did everything as instructed but it is getting stuck at a different output.
pp rom version: e7ae62f

@jcmvbkbc
Copy link
Owner

jcmvbkbc commented Jun 3, 2024

That looks odd. I only see

pp rom version: e7ae62f
net80211 rom version: e7ae62f

on the UART. On the USB serial the default build prints the following for me:

linux ptr = 0x42120000
vectors ptr = 0x4037c000

If you don't see that there's something wrong with the bootloader.
Are you able to get output from any other firmware flashed into your board? Can you point me to a spec for your board?

@aaryavbehl
Copy link
Author

aaryavbehl commented Jun 3, 2024 via email

@aaryavbehl
Copy link
Author

Okay so I get this exact output "linux ptr = 0x42120000
vectors ptr = 0x4037c000" from USB serial when I don't modify any cmdline file and gets stuck at that output only. Its a custom board so it is tough to find the specs for it but I can tell you the chip info. This is the output I get when I run the esptool.py chip_id
Connecting... Detecting chip type... ESP32-S3 Chip is ESP32-S3 (QFN56) (revision v0.2) Features: WiFi, BLE, Embedded PSRAM 8MB (AP_3v3) Crystal is 40MHz MAC: f0:f5:bd:4b:f4:0c Uploading stub... Running stub... Stub running... Warning: ESP32-S3 has no Chip ID. Reading MAC instead. MAC: f0:f5:bd:4b:f4:0c Hard resetting via RTS pin...

@jcmvbkbc
Copy link
Owner

I suspect that this is the same issue that was found here. Please rebuild your image with the updated bootloader and let me know if there's still no console output.

@aaryavbehl
Copy link
Author

aaryavbehl commented Jun 13, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants