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

esp32p4 via spi connect to esp32c5 can't not work when enable esp_psram (IDFGH-14249) #15045

Open
3 tasks done
skylin008 opened this issue Dec 17, 2024 · 2 comments
Open
3 tasks done
Assignees
Labels
Status: Opened Issue is new Type: Bug bugs in IDF

Comments

@skylin008
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

ESP-IDF v5.5-dev-847-gcb3ac7429c

Espressif SoC revision.

esp32p4

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

PowerShell

Development Kit.

esp32p4 evb

Power Supply used.

External 5V

What is the expected behavior?

I expected to esp32p4 via spi connect to esp32c5 wifi can work when enable esp_psram

What is the actual behavior?

1、when disable the esp_psram at menuconfig ,esp32p4 via spi connect to esp32c5 wifi connect function can work;
2、when enable the esp_psram at menuconfig, esp32p4 via spi connect to esp32c5 wifi connect function can't work;

Steps to reproduce.

1、power on ;
2、from debug info can show the error information.

Debug Logs.

��.5-dev-847-gcb3ac7429c
I (266) efuse_init: Min chE (10588) transport: Not able to connect with ESP-Hosted slave device
I (10588) transport: Reset slave using GPIO[17]
I (10588) os_wrapper_esp: GPIO [17] configured
I (10588) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 

assert failed: verify_host_config_for_slave transport_drv.c:493 (0!=0)
Core  0 register dump:
MEPC    : 0x4ff00dda  RA      : 0x4ff07988  SP      : 0x4ff1b700  GP      : 0x4ff12480  
TP      : 0x4ff1b910  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130  
S0/FP   : 0x00000081  S1      : 0x00000001  A0      : 0x4ff1b73c  A1      : 0x4ff138f1  
A2      : 0x00000001  A3      : 0x00000029  A4      : 0x00000001  A5      : 0x4ff16000  
A6      : 0x0000000c  A7      : 0x76757473  S2      : 0x00000009  S3      : 0x4ff1b856  
S4      : 0x4ff138f0  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000  
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938  
MSTATUS : 0x00011880  MTVEC   : 0x4ff00003  MCAUSE  : 0x00000002  MTVAL   : 0x00000000  
MHARTID : 0x00000000  

Stack memory:
4ff1b700: 0xa5a5a5a5 0xa5a5a5a5 0x40077844 0x4ff10b64 0x4ff1331c 0x40077844 0x4ff1332c 0x40063f84
4ff1b720: 0x4ff13330 0x4ff1b734 0x4ff13334 0x400640f8 0x4ff138f0 0x00333934 0x4ff1b940 0x65737361
4ff1b740: 0x66207472 0x656c6961 0x76203a64 0x66697265 0x6f685f79 0x635f7473 0x69666e6f 0x6f665f67
4ff1b760: 0x6c735f72 0x20657661 0x6e617274 0x726f7073 0x72645f74 0x3a632e76 0x20333934 0x3d213028
4ff1b780: 0x7f002930 0x00000004 0x00000001 0x500e5000 0x9c400000 0x9c3c0000 0x0000000f 0x00000000
4ff1b7a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b7c0: 0x00000000 0x00000262 0x00000000 0x00000000 0x0000000f 0x00000001 0x00000001 0x4ff03ec6
4ff1b7e0: 0x00000000 0x00000000 0x00000000 0x4ff08ca0 0x0000000f 0x4ff1b84c 0x000003e8 0x4ff0b1a2
4ff1b800: 0x00000000 0x00000000 0x00000000 0x40000000 0x4ff1b85c 0x40064634 0x00000000 0x00000000
4ff1b820: 0x0000000f 0x4ff1b84c 0x4ff1b838 0x4000d37a 0x4ff1b87c 0x40064730 0x33707365 0x00356332
4ff1b840: 0x00000000 0x00000000 0x00000000 0x33707365 0x00366332 0x00000000 0x00000000 0x00000000
4ff1b860: 0x400778ec 0x4ff3e38e 0x00000001 0x4000db92 0x4ff08656 0x00000000 0x4ff3e38c 0x00000000
4ff1b880: 0x00000000 0x00000000 0x4ff3e38c 0x4000dcb8 0x00000000 0x00000000 0x00000000 0x4000dd00
4ff1b8a0: 0x4007fadc 0x00000198 0x00000000 0x400193b0 0x00000000 0x00000000 0x4ff3e380 0x00000005
4ff1b8c0: 0x4ff3e38c 0x00110000 0x00000000 0x400193e6 0x00000000 0x00000000 0x00000000 0x4ff08662
4ff1b8e0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b900: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000000 0x4ff1a53c 0x4ff1a53c 0x00000000
4ff1b920: 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000160
4ff1b940: 0x4ff1b750 0x00000466 0x4ff143bc 0x4ff143bc 0x4ff1b940 0x4ff143b4 0x00000002 0x4ff17c14
4ff1b960: 0x4ff17c14 0x4ff1b940 0x00000000 0x00000017 0x4ff1a53c 0x5f697073 0x00007872 0x00000000
4ff1b980: 0x00000000 0x7fffffff 0x4ff1b930 0x00000017 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b9a0: 0x4ff16bc0 0x4ff16c28 0x4ff16c90 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000
4ff1b9c0: 0x00000000 0x400080d2 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b9e0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1ba00: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1ba20: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1ba40: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1ba60: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1ba80: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xee1f23ed 0x625cf4f7 0x4ff1b938
4ff1baa0: 0x0000000c 0x4ff1bab4 0x4ff16584 0x4ff1ba9c 0x00000018 0x4ff1baa4 0x00000001 0x00000000
4ff1bac0: 0x4000cf14 0x4001adfe 0x00000000 0x0000000c 0x4ff1bae0 0x4ff16584 0x4ff1bac8 0x00000018
4ff1bae0: 0x4ff1bad0 0x00000002 0x00000000 0x4000ce5c 0x4001adfe 0x00000000 0x0000000c 0x4ff1bb0c



ELF file SHA256: b99e2364f

Rebooting...
ESP-ROM:esp32p4-eco1-20240205
Build:Feb  5 2024
rst:0xc (SW_CPU_RESET),boot:0x10f (SPI_FAST_FLASH_BOOT)
Core0 Saved PC:0x4ff056fc
Core1 Saved PC:0x4ff05858
SPI mode:DIO, clock div:1
load:0x4ff33ce0,len:0x1650
load:0x4ff2abd0,len:0xd70
load:0x4ff2cbd0,len:0x3310
entry 0x4ff2abda
I (33) boot: ESP-IDF v5.5-dev-847-gcb3ac7429c 2nd stage bootloader
I (33) boot: compile time Dec 17 2024 19:28:28
I (33) boot: Multicore bootloader
I (35) boot: chip revision: v0.1
I (38) boot: efuse block revision: v0.1
I (41) boot.esp32p4: SPI Speed      : 80MHz
I (45) boot.esp32p4: SPI Mode       : DIO
I (49) boot.esp32p4: SPI Flash Size : 2MB
I (53) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (60) boot: ## Label            Usage          Type ST Offset   Length
I (66) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (72) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (79) boot:  2 factory          factory app      00 00 00010000 00100000
I (86) boot: End of partition table
I (89) esp_image: segment 0: paddr=00010020 vaddr=40060020 size=237f8h (145400) map
I (117) esp_image: segment 1: paddr=00033820 vaddr=30100000 size=0000ch (    12) load
I (118) esp_image: segment 2: paddr=00033834 vaddr=3010000c size=00038h (    56) load
I (122) esp_image: segment 3: paddr=00033874 vaddr=4ff00000 size=0c7a4h ( 51108) load
I (138) esp_image: segment 4: paddr=00040020 vaddr=40000020 size=58b64h (363364) map
I (189) esp_image: segment 5: paddr=00098b8c vaddr=4ff0c7a4 size=054dch ( 21724) load
I (194) esp_image: segment 6: paddr=0009e070 vaddr=4ff11c80 size=02368h (  9064) load
I (201) boot: Loaded app from partition at offset 0x10000
I (201) boot: Disabling RNG early entropy source...
I (215) cpu_start: Multicore app
I (224) cpu_start: Pro cpu start user code
I (225) cpu_start: cpu freq: 360000000 Hz
I (225) app_init: Application information:
I (227) app_init: Project name:     wifi_station
I (233) app_init: App version:      v5.5-dev-847-gcb3ac7429c
I (239) app_init: Compile time:     Dec 17 2024 19:28:10
I (245) app_init: ELF file SHA256:  b99e2364f...
I (250) app_init: ESP-IDF:          v5.5-dev-847-gcb3ac7429c
I (257) efuse_init: Min chip rev:     v0.1
I (261) efuse_init: Max chip rev:     v1.99 
I (266) efuse_init: Chip rev:         v0.1
I (271) heap_init: Initializing. RAM available for dynamic allocation:
I (278) heap_init: At 4FF16570 len 00024A50 (146 KiB): RAM
I (284) heap_init: At 4FF3AFC0 len 00004BF0 (18 KiB): RAM
I (291) heap_init: At 4FF40000 len 00060000 (384 KiB): RAM
I (297) heap_init: At 50108080 len 00007F80 (31 KiB): RTCRAM
I (303) heap_init: At 30100044 len 00001FBC (7 KiB): TCM
I (310) spi_flash: detected chip: generic
I (314) spi_flash: flash io: dio
W (318) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (331) host_init: ESP Hosted : Host chip_ip[18]
I (359) H_API: ESP-Hosted starting. Hosted_Tasks: prio:23, stack: 5120 RPC_task_stack: 5120
spi_mempool_create free:180332 min-free:180332 lfb-def:139264 lfb-8bit:139264

I (364) spi_wrapper: Transport: SPI, Mode:3 Freq:10MHz TxQ:20 RxQ:20
 GPIOs: MOSI:4 MISO:3 CLK:5 CS:6 HS:1 DR:2 SlaveReset:17
I (377) H_API: ** add_esp_wifi_remote_channels **
I (382) transport: Add ESP-Hosted channel IF[1]: S[0] Tx[0x4000cf14] Rx[0x4001adfe]
I (390) transport: Add ESP-Hosted channel IF[2]: S[0] Tx[0x4000ce5c] Rx[0x4001adfe]
I (399) os_wrapper_esp: GPIO [1] configuring as Interrupt
I (399) spi: No element in any queue found
I (409) gpio: GPIO[1]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1 
I (409) main_task: Started on CPU0
I (419) os_wrapper_esp: GPIO [2] configuring as Interrupt
I (429) gpio: GPIO[2]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1 
E (439) gpio: gpio_install_isr_service(502): GPIO isr service already installed
I (449) main_task: Calling app_main()
I (459) wifi station: ESP_WIFI_MODE_STA
I (459) transport: Attempt connection with slave: retry[0]
I (459) transport: Reset slave using GPIO[17]
I (469) os_wrapper_esp: GPIO [17] configured
I (469) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
E (10579) transport: Not able to connect with ESP-Hosted slave device
I (10579) transport: Reset slave using GPIO[17]
I (10579) os_wrapper_esp: GPIO [17] configured
I (10579) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
E (21689) transport: Not able to connect with ESP-Hosted slave device
I (21689) transport: Reset slave using GPIO[17]
I (21689) os_wrapper_esp: GPIO [17] configured
I (21689) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
E (32799) transport: Not able to connect with ESP-Hosted slave device
I (32799) transport: Reset slave using GPIO[17]
I (32799) os_wrapper_esp: GPIO [17] configured
I (32799) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
E (43909) transport: Not able to connect with ESP-Hosted slave device

More Information.

No response

@skylin008 skylin008 added the Type: Bug bugs in IDF label Dec 17, 2024
@github-actions github-actions bot changed the title esp32p4 via spi connect to esp32c5 can't not work when enable esp_psram esp32p4 via spi connect to esp32c5 can't not work when enable esp_psram (IDFGH-14249) Dec 17, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 17, 2024
@skylin008
Copy link
Author

SPI pin setting as follow:
1、HS: GPIO1;
2、DR: GPIO2;
3、MISO: GPIO3;
4、MOSI: GPIO4;
5、CS: GPIO6;
6、CLK: GPIO5;

@skylin008
Copy link
Author

running esp-idf/examples/wifi/getting_started/station example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants