使用外部spi ram后,wifi却用不了,请教这个咋搞

13302657252
Posts: 10
Joined: Thu Jun 01, 2023 10:58 am

使用外部spi ram后,wifi却用不了,请教这个咋搞

Postby 13302657252 » Wed Feb 28, 2024 8:23 am

我使用的ESP32S2模块有2M spi ram,这个我在menuconfig里激活,通过malloc使用,不使用这个外部spi ram还好,wifi运行起来没有问题,考虑到数量量大了所以把这个spi ram用起来,却在连上ap后就重启了。以下是log:最后面是menuconfig里的external spi ram 配置和wifi配置截图,请epressif的人提示如何处理这个情况,为啥外部内存还用不了?
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x1740
load:0x4004c000,len:0xa9c
load:0x40050000,len:0x2f24
entry 0x4004c214
I (21) boot: ESP-IDF v4.4.5-dirty 2nd stage bootloader
I (21) boot: compile time 16:05:40
I (21) boot: chip revision: v0.0
I (25) boot.esp32s2: SPI Speed : 80MHz
I (29) boot.esp32s2: SPI Mode : DIO
I (34) boot.esp32s2: SPI Flash Size : 4MB
I (39) boot: Enabling RNG early entropy source...
I (44) boot: Partition Table:
I (48) boot: ## Label Usage Type ST Offset Length
I (55) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (63) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (70) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (77) boot: 3 factory factory app 00 00 00010000 00100000
I (85) boot: 4 ota_0 OTA app 00 10 00110000 00100000
I (92) boot: 5 ota_1 OTA app 00 11 00210000 00100000
I (100) boot: End of partition table
I (104) boot: Defaulting to factory image
I (109) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=1cedch (118492) map
I (141) esp_image: segment 1: paddr=0002cf04 vaddr=3ffcb670 size=02e60h ( 11872) load
I (144) esp_image: segment 2: paddr=0002fd6c vaddr=40024000 size=002ach ( 684) load
I (147) esp_image: segment 3: paddr=00030020 vaddr=40080020 size=8b360h (570208) map
I (269) esp_image: segment 4: paddr=000bb388 vaddr=400242ac size=173c4h ( 95172) load
I (304) boot: Loaded app from partition at offset 0x10000
I (304) boot: Disabling RNG early entropy source...
I (316) cache: Instruction cache : size 8KB, 4Ways, cache line size 32Byte
I (316) cache: Data cache : size 8KB, 4Ways, cache line size 32Byte
I (321) spiram: Found 16MBit SPI RAM device
I (326) spiram: SPI RAM mode: sram 40m
I (331) spiram: PSRAM initialized, cache is in normal (1-core) mode.
I (338) cpu_start: Pro cpu up.
I (752) spiram: SPI SRAM memory test OK
I (764) cpu_start: Pro cpu start user code
I (764) cpu_start: cpu freq: 160000000
I (765) cpu_start: Application information:
I (767) cpu_start: Project name: hello-world
I (773) cpu_start: App version: 0.4.4.0
I (777) cpu_start: Compile time: Feb 28 2024 16:05:21
I (784) cpu_start: ELF file SHA256: 4e03166fa342af18...
I (790) cpu_start: ESP-IDF: v4.4.5-dirty
I (795) cpu_start: Min chip rev: v0.0
I (800) cpu_start: Max chip rev: v1.99
I (804) cpu_start: Chip rev: v0.0
I (809) heap_init: Initializing. RAM available for dynamic allocation:
I (816) heap_init: At 3FFD64F8 len 00025B08 (150 KiB): DRAM
I (823) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM
I (829) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAM
I (835) spiram: Adding pool of 2048K of external SPI memory to heap allocator
I (844) spi_flash: detected chip: generic
I (848) spi_flash: flash io: dio
I (852) cpu_start: Starting scheduler on PRO CPU.
I (857) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
--------------How are you!------------
I (3867) gpio: GPIO[38]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (3867) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (3867) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
static ip:192.168.1.250
I (4097) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| II (4117) reader BRAND: guoxin

I (4117) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (4117) gpio: GPIO[5]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (4127) gpio: GPIO[6]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (4137) gpio: GPIO[7]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (4147) gpio: GPIO[8]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (4157) gpio: GPIO[9]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (4167) HID: Installing USB Host
I (4197) HID: Installing HOST HID driver
I (4197) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 1| Intr:0
I (4197) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 1| Intr:0
I (4207) gpio: GPIO[18]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (4247) wifi:wifi driver task: 3ffec924, prio:23, stack:6656, core=0
I (4247) system_api: Base MAC address is not set
I (4247) system_api: read default base MAC address from EFUSE
I (4257) wifi:wifi firmware version: 0f80fa0
I (4257) wifi:wifi certification version: v7.0
I (4257) wifi:config NVS flash: enabled
I (4257) wifi:config nano formating: disabled
I (4267) wifi:Init data frame dynamic rx buffer num: 32
I (4267) wifi:Init management frame dynamic rx buffer num: 32
I (4277) wifi:Init management short buffer num: 32
I (4277) wifi:Init static tx buffer num: 16
I (4287) wifi:Init tx cache buffer num: 32
I (4287) wifi:Init static rx buffer size: 1600
I (4297) wifi:Init static rx buffer num: 10
I (4297) wifi:Init dynamic rx buffer num: 32
I (4297) wifi_init: rx ba win: 6
I (4307) wifi_init: tcpip mbox: 32
I (4307) wifi_init: udp mbox: 6
I (4307) wifi_init: tcp mbox: 6
I (4317) wifi_init: tcp tx win: 5744
I (4317) wifi_init: tcp rx win: 5744
I (4327) wifi_init: tcp mss: 1440
I (4327) wifi_init: WiFi IRAM OP enabled
I (4337) wifi_init: WiFi RX IRAM OP enabled
I (4337) phy_init: phy_version 2300,d67cf06,Feb 10 2022,10:03:07
I (4397) wifi:mode : sta (a0:76:4e:97:25:8a)
I (4397) wifi:enable tsf
I (4397) wifi station: wifi_init_sta finished.
I (4397) tcp server: Socket created
I (4397) tcp server: Socket bound, port 8160
I (4407) tcp server: Socket listening
Minimum free heap size: 2089843 bytes
I (6817) wifi station: retry to connect to the AP
I (6817) wifi station: connect to the AP fail
I (9237) wifi station: retry to connect to the AP
I (9237) wifi station: connect to the AP fail
I (11647) wifi station: retry to connect to the AP
I (11647) wifi station: connect to the AP fail
I (14067) wifi station: retry to connect to the AP
I (14067) wifi station: connect to the AP fail
I (16487) wifi station: retry to connect to the AP
I (16487) wifi station: connect to the AP fail
I (18897) wifi station: retry to connect to the AP
I (18907) wifi station: connect to the AP fail
I (20117) wifi:new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
I (20117) wifi:state: init -> auth (b0)
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Core 0 register dump:
PC : 0x40033cd5 PS : 0x00060233 A0 : 0x80034091 A1 : 0x3ffec6c0
0x40033cd5: tlsf_block_size_max at F:/esp_v4/esp-idf/components/heap/heap_tlsf.c:718

A2 : 0xffffffff A3 : 0xffffffff A4 : 0x3ff9e038 A5 : 0x00000007
A6 : 0x00000000 A7 : 0x00004065 A8 : 0x3ffce69c A9 : 0x3ffce6a0
A10 : 0x00060220 A11 : 0x00000000 A12 : 0x00060220 A13 : 0x40029f8c
0x40029f8c: wifi_malloc at F:/esp_v4/esp-idf/components/esp_wifi/esp32s2/esp_adapter.c:58

A14 : 0x00000008 A15 : 0x00000000 SAR : 0x00000019 EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000000f LBEG : 0x00060220 LEND : 0x40029f8c LCOUNT : 0x400270c4
0x40029f8c: wifi_malloc at F:/esp_v4/esp-idf/components/esp_wifi/esp32s2/esp_adapter.c:58

0x400270c4: _xt_user_exc at F:/esp_v4/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:633



Backtrace: 0x40033cd2:0x3ffec6c0 0x4003408e:0x3ffec6e0 0x40035001:0x3ffec700 0x40025d89:0x3ffec720 0x40025e65:0x3ffec740 0x40036619:0x3ffec760 0x40029f91:0x3ffec780 0x40109421:0x3ffec7a0 0x40038dd9:0x3ffec7d0 0x40039b78:0x3ffec800 0x40039fb1:0x3ffec840 0x4003a059:0x3ffec880 0x40037de4:0x3ffec8c0 0x4003146d:0x3ffec8f0
0x40033cd2: tlsf_block_size_max at F:/esp_v4/esp-idf/components/heap/heap_tlsf.c:712

0x4003408e: adjust_request_size at F:/esp_v4/esp-idf/components/heap/heap_tlsf.c:125
(inlined by) tlsf_malloc at F:/esp_v4/esp-idf/components/heap/heap_tlsf.c:848

0x40035001: multi_heap_malloc_impl at F:/esp_v4/esp-idf/components/heap/multi_heap.c:187

0x40025d89: heap_caps_malloc_base at F:/esp_v4/esp-idf/components/heap/heap_caps.c:175

0x40025e65: heap_caps_malloc_default at F:/esp_v4/esp-idf/components/heap/heap_caps.c:234

0x40036619: malloc at F:/esp_v4/esp-idf/components/newlib/heap.c:24

0x40029f91: wifi_malloc at F:/esp_v4/esp-idf/components/esp_wifi/esp32s2/esp_adapter.c:62

0x40109421: esf_buf_alloc_dynamic at ??:?

0x40038dd9: esf_buf_alloc at ??:?

0x40039b78: wDev_IndicateFrame at ??:?

0x40039fb1: wDev_ProcessRxSucData at ??:?

0x4003a059: wdevProcessRxSucDataAll at ??:?

0x40037de4: ppTask at ??:?

0x4003146d: vPortTaskWrapper at F:/esp_v4/esp-idf/components/freertos/port/xtensa/port.c:142

放不了截图

Who is online

Users browsing this forum: No registered users and 171 guests