ESP_Sprite wrote:Can you see if the issue still remains if you set Component Config -> WiFi -> Type of WiFi TX buffers to 'static''? Will also do some tests here.
Issue still remains after setting WiFi TX buffers to 'static'.
Tested on ESP32-WROVER-KIT v3 with
http_request example from esp-idf.
Default configuration, only SPIRAM enabled, WiFi SSID and password set, WiFi TX buffers set to 'static':
Here is the log,
no wifi initialization started,
resets after ~10 seconds:
Code: Select all
MONITOR
--- idf_monitor on /dev/ttyUSB1 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3e (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0010,len:4
load:0x3fff0014,len:5400
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:13152
entry 0x40078fd0
I (46) boot: ESP-IDF v3.0-dev-509-g9da1bf1a 2nd stage bootloader
I (46) boot: compile time 09:47:19
I (89) boot: Enabling RNG early entropy source...
I (89) boot: SPI Speed : 40MHz
I (89) boot: SPI Mode : DIO
I (97) boot: SPI Flash Size : 4MB
I (110) boot: Partition Table:
I (121) boot: ## Label Usage Type ST Offset Length
I (144) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (167) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (190) boot: 2 factory factory app 00 00 00010000 00100000
I (214) boot: End of partition table
I (227) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1144c ( 70732) map
I (330) esp_image: segment 1: paddr=0x00021474 vaddr=0x3ffb0000 size=0x03034 ( 12340) load
I (346) esp_image: segment 2: paddr=0x000244b0 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _iram_start at ??:?
I (352) esp_image: segment 3: paddr=0x000248b8 vaddr=0x40080400 size=0x0b758 ( 46936) load
I (438) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x54790 (346000) map
0x400d0018: _flash_cache_start at ??:?
I (807) esp_image: segment 5: paddr=0x000847b0 vaddr=0x4008bb58 size=0x0a43c ( 42044) load
0x4008bb58: ram_gen_rx_gain_table at ??:?
I (861) esp_image: segment 6: paddr=0x0008ebf4 vaddr=0x400c0000 size=0x00000 ( 0) load
I (903) boot: Loaded app from partition at offset 0x10000
I (903) boot: Disabling RNG early entropy source...
I (909) spiram: SPI RAM mode: flash 40m sram 40m
I (920) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (943) cpu_start: Pro cpu up.
I (954) cpu_start: Starting app cpu, entry point is 0x400810dc
0x400810dc: call_start_cpu1 at /home/LoBo2_Razno/ESP32/esp-idf/components/esp32/./cpu_start.c:218
I (0) cpu_start: App cpu up.
I (3721) spiram: SPI SRAM memory test OK
I (3723) heap_init: Initializing. RAM available for dynamic allocation:
I (3723) heap_init: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM
I (3742) heap_init: At 3FFB8150 len 00027EB0 (159 KiB): DRAM
I (3761) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (3781) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (3801) heap_init: At 40095F94 len 0000A06C (40 KiB): IRAM
I (3820) cpu_start: Pro cpu start user code
I (3881) cpu_start: Starting scheduler on PRO CPU.
I (2916) cpu_start: Starting scheduler on APP CPU.
ets Jun 8 2016 00:22:57
rst:0x7 (TG0WDT_SYS_RESET),boot:0x3e (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0010,len:4
load:0x3fff0014,len:5400
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:13152
entry 0x40078fd0
W (95) boot: PRO CPU has been reset by WDT.
W (95) boot: WDT reset info: PRO CPU PC=0x40088229
0x40088229: _xt_context_save at ??:?
W (95) boot: WDT reset info: APP CPU PC=0x40084d93
0x40084d93: esp_cpu_stall at /home/LoBo2_Razno/ESP32/esp-idf/components/soc/esp32/cpu_util.c:32
.....
.....
After disabling
Support for external, SPI-connected RAM the code runs as expected:
Code: Select all
MONITOR
--- idf_monitor on /dev/ttyUSB1 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3e (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0010,len:4
load:0x3fff0014,len:5400
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:12112
entry 0x40078f48
I (46) boot: ESP-IDF v3.0-dev-509-g9da1bf1a 2nd stage bootloader
I (46) boot: compile time 09:59:20
I (88) boot: Enabling RNG early entropy source...
I (89) boot: SPI Speed : 40MHz
I (89) boot: SPI Mode : DIO
I (97) boot: SPI Flash Size : 4MB
I (109) boot: Partition Table:
I (121) boot: ## Label Usage Type ST Offset Length
I (144) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (167) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (190) boot: 2 factory factory app 00 00 00010000 00100000
I (213) boot: End of partition table
I (226) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0d4d8 ( 54488) map
I (312) esp_image: segment 1: paddr=0x0001d500 vaddr=0x3ffb0000 size=0x02b10 ( 11024) load
I (326) esp_image: segment 2: paddr=0x00020018 vaddr=0x400d0018 size=0x4bed4 (310996) map
0x400d0018: _flash_cache_start at ??:?
I (664) esp_image: segment 3: paddr=0x0006bef4 vaddr=0x3ffb2b10 size=0x00518 ( 1304) load
I (667) esp_image: segment 4: paddr=0x0006c414 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _iram_start at ??:?
I (686) esp_image: segment 5: paddr=0x0006c81c vaddr=0x40080400 size=0x1336c ( 78700) load
I (812) esp_image: segment 6: paddr=0x0007fb90 vaddr=0x400c0000 size=0x00000 ( 0) load
I (847) boot: Loaded app from partition at offset 0x10000
I (848) boot: Disabling RNG early entropy source...
I (849) cpu_start: Pro cpu up.
I (860) cpu_start: Starting app cpu, entry point is 0x40080f24
0x40080f24: call_start_cpu1 at /home/LoBo2_Razno/ESP32/esp-idf/components/esp32/./cpu_start.c:218
I (0) cpu_start: App cpu up.
I (893) heap_init: Initializing. RAM available for dynamic allocation:
I (913) heap_init: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM
I (932) heap_init: At 3FFB8108 len 00027EF8 (159 KiB): DRAM
I (951) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (971) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (990) heap_init: At 4009376C len 0000C894 (50 KiB): IRAM
I (1009) cpu_start: Pro cpu start user code
I (1069) cpu_start: Starting scheduler on PRO CPU.
I (195) cpu_start: Starting scheduler on APP CPU.
I (275) wifi: wifi firmware version: 8bd4b47
I (275) wifi: config NVS flash: enabled
I (275) wifi: config nano formating: disabled
I (275) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (285) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (325) wifi: Init dynamic tx buffer num: 32
I (325) wifi: Init data frame dynamic rx buffer num: 32
I (325) wifi: Init management frame dynamic rx buffer num: 32
I (325) wifi: Init static tx buffer num: 32
I (335) wifi: wifi driver task: 3ffccde8, prio:23, stack:4096
I (335) wifi: Init static rx buffer num: 10
I (345) wifi: Init dynamic rx buffer num: 32
I (345) wifi: Init rx ampdu len mblock:7
I (345) wifi: Init lldesc rx ampdu entry mblock:4
I (355) wifi: wifi power manager task: 0x3ffd2248 prio: 21 stack: 2560
I (355) example: Setting WiFi configuration SSID LoBoInternet...
I (385) phy: phy_version: 357.0, a6bf95b, Jul 25 2017, 12:28:06, 0, 0
I (395) wifi: Init Ampdu: 1 tx baw=6 rx baw=6
I (395) wifi: mode : sta (24:0a:c4:11:a4:0c)
I (1725) wifi: n:11 0, o:1 0, ap:255 255, sta:11 0, prof:1
I (2705) wifi: state: init -> auth (b0)
I (2705) wifi: state: auth -> assoc (0)
I (2715) wifi: state: assoc -> run (10)
I (2755) wifi: connected with LoBoInternet, channel 11
I (5745) event: ip: 192.168.0.21, mask: 255.255.255.0, gw: 192.168.0.1
I (5745) example: Connected to AP
I (5755) example: DNS lookup succeeded. IP=93.184.216.34
I (5755) example: ... allocated socket
I (5885) example: ... connected
I (5885) example: ... socket send success
HTTP/1.0 200 OK
Cache-Control: max-age=604800
Content-Type: text/html
Date: Thu, 07 Sep 2017 08:00:21 GMT
Etag: "359670651+gzip+ident"
Expires: Thu, 14 Sep 2017 08:00:21 GMT
Last-Modified: Fri, 09 Aug 2013 23:54:35 GMT
Server: ECS (dca/532C)
Vary: Accept-Encoding
X-Cache: HIT
Content-Length: 1270
Connection: close
<!doctype html>
<html>
<head>
<title>Example Domain</title>
....
....
....