-
Notifications
You must be signed in to change notification settings - Fork 1
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
esp32 p4 + esp32 c5 SPI function run error (EHM-4) #4
Comments
Can you please confirm if you have installed latest esp-hosted from https://components.espressif.com/components/espressif/esp_hosted/versions/0.0.22 Please use latest master esp-idf if you wish to use c5 as slave. |
Thanks @mantriyogesh. Yes, I had update to 0.0.22 , the error issue as follow: **I (33) boot: ESP-IDF v5.4-dev-3489-g6e5a178b31-dirty 2nd stage bootloader I (1592) spi_wrapper: Transport: SPI, Mode:3 Freq:5MHz TxQ:20 RxQ:20 --- 0x4ff05844: esp_cpu_wait_for_intr at D:/Espressif/frameworks/esp-idf-master/components/esp_hw_support/cpu.c:57 (discriminator 1) --- 0x4000d036: transport_drv_sta_tx at D:/esp32_app/station/managed_components/espressif__esp_hosted/host/drivers/transport/transport_drv.c:208 I (1618) transport: Add ESP-Hosted channel IF[2]: S[0] Tx[0x4000cf7e] Rx[0x4001adf4] I (1627) os_wrapper_esp: GPIO [32] configuring as Interrupt I (2897) transport: Base transport is set-up I (2897) transport: Slave chip Id[12] file: "./main/station_example_main.c" line 105 abort() was called at PC 0x4ff0947d on core 0 --- Stack dump detected TP : 0x4ff23300 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130 MHARTID : 0x00000000** How to solve this issue? |
Can you please confirm, if the slave is also using 0.0.22?
|
Yes, the slave is also using 0.0.22. Can you build the latest firmware for test, or ours build environment is other issue. |
I can test this tomorrow earliest. Let you know my test results. |
i am checking this now. let you update in while |
c5_p4_std_spi_0.0.22_idf_6e5a17.tgz We don't face this on idf commit you mentioned. No code change, I have used iperf example by the way, so that you can enter the ssid and password which you wish to connect to. |
I am getting the same error while trying to use C6 of ESP32-P4-Function-EV-Board via SDIO using esp_wifi_remote 0.4.1 and esp_hosted 0.0.22:
C6 contains factory firmware. Does it need to be updated? |
@dmartauz , this is different query. Can you please trigger different issue? I will check by the time. |
@dmartauz , the answer is P4 0.0.22 is still compatible with on-board C6 (based on 0.0.6) Original binaries on-board were flashed with: Current P4 binary: p4_0.0.22.tgz Slightly unrelated, but good to know. Although, it would be important to note that 0.0.6 based code base need some changes if latest IDF is used. However, if original IDF that time was used, it would still build fine. Nevertheless, P4 latest binaries are still compatible with on-board C6 binaries. |
@mantriyogesh I am testing with custom application using recent clone of esp-idf master branch. In this case do I need to update the C6? |
Despite of #4, I think it is better to setup slave with latest firmware changes. I would say it is recommended but not mandatory. |
Ok, I will build the slave with recent esp-idf and find out how to flash it to C6 locally without esp-prog according to https://github.com/espressif/esp-hosted/blob/feature/esp_as_mcu_host/docs/esp32_p4_function_ev_board.md#52-using-esp-prog In the meantime, could you please share some minimal application code for the P4 which tests C6's WiFi over SDIO, e.g. performs connection to an AP? |
I think it is better to open new issue. this issue was created by @skylin008 , so lets us try to keep it clean. |
@mantriyogesh you are right, I created new request here: #3 |
@mantriyogesh Thank you for your supported. From your firmware ,the same issue show. Can you had tested the firmware in ESP32P4 and esp32c5 board? |
I tested it myself, I did not observe any issues. |
I would wait ahead. |
I had reproduced the issue. The problem is memory. Easy workaround: If you are not using Bluetooth, disable using Else need to lower wifi buffers, to conserve the iram. |
Checklist
How often does this bug occurs?
always
Expected behavior
Used latest Esp-hosted IDF v5.4-dev-3489-g6e5a178b31 . I had used Esp32-p4-Function_EV_Board and ESP32-C5-DevkitC to development, Esp32-p4 chip used SPI host function, ESP32-C5 chip used SPI slave function.
Used \examples\wifi\getting_started\station to running,Esp32 p4 host show the error information as:
**file: "./main/station_example_main.c" line 106
func: wifi_init_sta
expression: esp_wifi_init(&cfg)
abort() was called at PC 0x4ff0947b on core 0**
the esp32c5 show as error information:
I (2048) wifi:Init management short buffer num: 32
I (2053) wifi:Init static tx buffer num: 16
I (2057) wifi:Init tx cache buffer num: 32
W (2060) wifi:esf_buf_setup_static: alloc eb fail(10)
I (2065) wifi:Deinit lldesc rx mblock:0
I (2069) wifi:Deinit lldesc rx mblock:0
I (2072) wifi:Deinit lldesc rx mblock:0
W (2077) wifi_init: Failed to unregister Rx callbacks
E (2082) wifi_init: Failed to deinit Wi-Fi driver (0x3001)
E (2088) wifi_init: Failed to deinit Wi-Fi (0x3001)
E (2093) slave_ctrl: req_wifi_init:730 failed [esp_wifi_init(&cfg)] = [257]
Actual behavior (suspected bug)
run the demo example show error information.
Error logs or terminal output
Steps to reproduce the behavior
Power on ,as show the error information.
Project release version
(25) boot: ESP-IDF v5.4-dev-3489-g6e5a178b31-dirty 2nd stage bootloader
System architecture
Intel/AMD 64-bit (modern PC, older Mac)
Operating system
Windows
Operating system version
windows 10
Shell
CMD
Additional context
No response
The text was updated successfully, but these errors were encountered: