-
Notifications
You must be signed in to change notification settings - Fork 118
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
chip_detect_error on ESP32-P4 #679
Comments
Addition: I got a different magic value, but only once? |
It seems the magic value detection is no longer working for the P4:
|
Thanks for sharing your findings! We are currently not very focused on P4, since its not yet on mass production. The P4 version that I have is quite old, and I was able to flash it with the magic value that we currently have. We would of course accept and appreciate any PR updating this! |
I'm still seeing this on the latest v3.2.0 release: mabez at mGentoo ➜ mabez RUST_LOG="info" espflash board-info
[2024-11-09T15:02:49Z INFO ] Serial port: '/dev/ttyUSB0'
[2024-11-09T15:02:49Z INFO ] Connecting...
[2024-11-09T15:02:50Z INFO ] Using flash stub
Error: espflash::chip_detect_error
× Unrecognized magic value: 0xffffffff
help: Supported chips are: esp32, esp32c2, esp32c3, esp32c6, esp32h2, esp32p4, esp32s2, esp32s3
If your chip is supported, try hard-resetting the device and try again
mabez at mGentoo ➜ mabez RUST_LOG="info" espflash board-info
[2024-11-09T15:02:52Z INFO ] Serial port: '/dev/ttyUSB0'
[2024-11-09T15:02:52Z INFO ] Connecting...
[2024-11-09T15:02:52Z INFO ] Using flash stub
Error: espflash::chip_detect_error
× Unrecognized magic value: 0xffffffff
help: Supported chips are: esp32, esp32c2, esp32c3, esp32c6, esp32h2, esp32p4, esp32s2, esp32s3
If your chip is supported, try hard-resetting the device and try again
mabez at mGentoo ➜ mabez RUST_LOG="info" espflash board-info
[2024-11-09T15:02:53Z INFO ] Serial port: '/dev/ttyUSB0'
[2024-11-09T15:02:53Z INFO ] Connecting...
[2024-11-09T15:02:54Z INFO ] Using flash stub
Chip type: esp32p4 (revision v0.0)
Crystal frequency: 40 MHz
Flash size: 4MB
Features: High-Performance MCU
MAC address: 60:55:f9:f8:81:2d Three runs in a row, two failed and one succeeded. I think the full solution (and what they use in esptool) is to use I only have a rev1 p4 board, so it's unclear to me if this is fixed in later revisions but if esptool are using this method as there primary chip detection tool, we probably should too? Reopening. |
When using espflash 3.1.1 on the P4 dev board, it fails to detect the chip:
Hard resetting results in the same error.
Flashing a C build with EPS-IDF works fine over the same ttyUSB0. Not sure which details can be provided that would help here.
The text was updated successfully, but these errors were encountered: