-
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
import wifi crashes on ESP32-S3 DevKitC N8R2, with CP 8.2.0. #8141
Comments
the current content seems to be:
which is different than either side of #5858. It may have been changed by
and/or
it's a bit hard to tell from git history when submodules are involved. |
96dd11a seems to have caused ESP_PHY_ENABLE_USB to start being defined when building for BOARD=espressif_esp32c3_devkitm_1_n4 |
The current submodule choice for ESP-IDF is Lines 143 to 146 in fad86bf
|
According to https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-reference/kconfig.html#config-esp-phy-enable-usb, it is correct to have |
@casainho Getting back to the original problem with ESP32-S3 DevKitC N8R2: I loaded the 8.2.0 .bin from https://circuitpython.org/board/espressif_esp32s3_devkitc_1_n8r2/ I am unable to cause a crash by a simple Adafruit CircuitPython 8.2.0 on 2023-07-05; ESP32-S3-DevKitC-1-N8R2 with ESP32S3
>>>
>>>
>>> import wifi
>>> Please describe what you did in more detail, and confirm that you are using the N8R2 S3 board, and that you have the right .bin or .uf2 (and if .uf2, that you have the right UF2 bootloader loaded). |
@dhalbert , it resets here (not that my safemode.py is resetting the board): But with the modified CP as I told: |
The code with the issue is here: https://github.com/OpenSourceEBike/EBike_EScooter_modular_DIY/tree/issue_wifi/diy_main_board/firmware And here the CP binary where the issue do not happen: https://github.com/OpenSourceEBike/EBike_EScooter_modular_DIY/blob/issue_wifi/diy_main_board/firmware/circuitpython_binary/adafruit-circuitpython-espressif_esp32s3_devkitc_1_n8r2-en_US-8.2.x-built_issue_import_wifi.bin |
I'm sorry for creating confusion by referring to a board with esp32-c3 when this is about a board with an s3 microcontroller (that just happens to have a c in product name too) |
@casainho I have both the N32R8 board and the N8R2 board. If you look on the tin case of the module in the lower left, there is a stamping that includes either N32R8 or N8R2. Mine identify properly in I am not sure which line is causing the issue from the screen shots. Could you give me a source link to the line in the repo? Click on the line number to get a "...", then click on that and choose "Copy Permalink". Are you building 8.2.0, or did you try the download version? The submodules have changed a bunch of times, both in terms of URL and branch used. |
lsusb says "303a:7003 Espressif ESP32-S3-DevKitC-1-N8R2", so I guess that plugin for Visual Code Studio is showing the wrong data.
But I think the issue seems to be about something that is happening in parallel, and after some time, it resets the board - and not a issue on some specific line of code. I found this issue when I tried to change the board MAC Address with this code:
I am using that same code on ESP32-S2, and it works as expected.
I was using the 8.2.0 from the CP download page. Just now I did built my own version to add the previously mentioned changes. |
That photo does not look at all like https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html or the photos here: https://www.adafruit.com/product/5310. The buttons are in a completely different place. Could you give a link to the board that you purchased? |
This is the board, I bought on Aliexpress: |
@casainho Are you using a |
Closing for now as this is old. Please reopen if you have new info. |
I did apply this PR #5858 on CP 8.2.x and it solved my issue!!
Originally posted by @casainho in #5662 (comment)
The text was updated successfully, but these errors were encountered: