-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Circuitpython 9.2.1 fails to run on EPS32P4-Function-EV board #9915
Comments
I have successfully run esp's own examples for the board, so the hardware is OK. |
Did you erase the flash before loading the .bin? Try 9.2.0 from here: https://adafruit-circuit-python.s3.amazonaws.com/index.html?prefix=bin/espressif_esp32p4_function_ev/ |
Yes, I erased the flash first. I get the same result with 9.2.0. In Thonny it reports
but I get the same after pushing RST. |
The latest version does not work either. |
Further info - the web installer does not recognise the chip,
so I used e.g. |
@tannewt has this board and did the port. I don't, unfortunately, so I think we'll have to wait for his return from break in early January. |
I loaded 9.2.1 by connecting to the type C connector labeled: USB-UART and running this command:
After the firmware was flashed I was able to connect to the REPL using tio on the /dev/ttyUSB0 port. If after flashing the firmware I connected to the type C connector labeled USB-OTG no serial port was created and of course the CIRCUITPY drive didn't show up presumably because that PR hasn't been merged in to "stable" yet. I also loaded the "Absolute Newest" via the USB-UART type C connector using:
After which, the REPL was not available on the created /dev/ttyUSB0 port, but if I plugged into the type C connector labeled USB-OTG the port /dev/ttyACM0 was created and provided REPL access. Also the CIRCUITPY drive was mounted. Edit: I have the Camera and LCD disconnected so if you can't get the REPL using the connectors I was using, perhaps try disconnecting the peripherals. |
Before starting, I had the P4 on /dev/tty.usbserial-210 when plugged into the USB-UART. After again erasing flash, I tried doing the same again, but with the latest version This is all under MacOS 15.2, in case that matters. |
Furthermore, I am using esptool from esp-idf 5.5, in case that is relevant. |
My ESP-32 P4 board is version v1.4 |
I tried disconnecting the display, but it made no difference. (I didn't want to disconnect the camera as I dont want to risk mangling the fragile edge connector). I also tried adding external power on the usb-c POWER-IN port, but that did not help. |
So something is different. It sounds like you are using the same ports, but here's a picture -- maybe you can both describe exactly which ports you are using: What is the version number printed on the board? I don't see any jumpers to change. |
When flashing, I used the USB-to-UART port, as stated above. I get no REPL on either USB-to-UART or USB 2.0 Type C (USB-OTG) port in either case. When applying additional power I also connected a PD charger to the USB Power in Port. My Board is V1.4, as stated. My P4 chip says
My flash chip says
|
The port I was calling USB-UART is labeled as "USB-to-UART Port" on this diagram and is the only port I've had success flashing firmware through. With the 9.2.1 (stable) firmware that's also the port that I see the REPL on, it shows up on Ubuntu as /dev/ttyUSB0. My board is labeled as v1.4 and the flash is 'GigaDevice 25Q128ESIG UMB125 AM2425" Espressif: "ESP32-P4 NRW32 FB01 FEBF056" I am using esptool v4.8.1 and just to be sure I just loaded the GB version of 9.2.1 but it also worked fine for me. |
Another interesting difference is that I don't see the serial output you're original post describes on either port using the 9.2.1 firmware but it does show up on the USB-to-UART port after flashing the "absolute newest" firmware image. With that firmware the REPL and CIRCUITPY drive show up over the port labeled "USB 2.0 Type-C Port". |
@ralphrmartin you are seeing a boot loop, assuming you see that output over and over again no matter what. If anything, your chip looks later based on the version or date codes, but I haven't been able to find a discussion of the codes. |
I am also using esptool v4.8.1. I agree that I am stuck in a boot loop (watchdog reset) and I agree that my chip looks later. |
Could you each do:
so we can see if the chips are different revs? |
I also connected the camera to my board and it made no difference.... |
|
I get
Note that my chip is revision 1.0 not 0.1. |
OK, there we go! |
This page
|
Thanks for finding that. I did some looking: those changes are in ESP-IDF v5.3.2 -- we are at v5.3.1, so an upgrade would fix that. I tried just substituting the changed files from that commit but there are other changes that make it not compile. I opened issue #9917. |
Great thanks. I'll wait patiently... |
Well nevermind, looking again at .gitmodules, it's obvious that the branch I pointed at doesn't exist, so this couldn't have done what I was hoping for.... |
Yes - I tried it out but it ended up the same way as the other failures.... |
CircuitPython version
Code/REPL
Behavior
After successfully flashing circuitpython 9.2.1 (for esp32 p4) using esptool, I get no repl, and the serial monitor just shows
repeatedly.
Description
Using ESP32 P4 Function EV board with connected camera and lcd.
Additional information
I also cannot get a repl using thonny.
The text was updated successfully, but these errors were encountered: