mruby-esp32 / mruby-esp32-wifi

Wi-Fi library for mruby-esp32.
7 stars 5 forks source link

Follow esp idf v5.0 #4

Closed yuuu closed 1 year ago

yuuu commented 1 year ago

Changed network-related initialization functions and their call timing to work with ESP-IDF v5.0.

This PR is needed to build this PR for mruby-esp32.

pandax381 commented 1 year ago

Thanks!

ESP-IDF 5.x environment and verified that it works correctly.

--- 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:0x13 (SPI_FAST_FLASH_BOOT)
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (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:0x3fff0030,len:6972
ho 0 tail 12 room 4
load:0x40078000,len:15492
load:0x40080400,len:3844
0x40080400: _init at ??:?

entry 0x4008064c
I (29) boot: ESP-IDF v5.1-dev-2063-g593335578f 2nd stage bootloader
I (29) boot: compile time Jan 19 2023 16:10:38
I (31) boot: chip revision: v0.0
I (37) boot.esp32: SPI Speed      : 40MHz
I (39) boot.esp32: SPI Mode       : DIO
I (44) boot.esp32: SPI Flash Size : 2MB
I (48) boot: Enabling RNG early entropy source...
I (54) boot: Partition Table:
I (57) boot: ## Label            Usage          Type ST Offset   Length
I (65) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (72) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (80) boot:  2 factory          factory app      00 00 00010000 00177000
I (87) boot: End of partition table
I (91) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=3a468h (238696) map
I (186) esp_image: segment 1: paddr=0004a490 vaddr=3ff80063 size=00008h (     8) load
I (186) esp_image: segment 2: paddr=0004a4a0 vaddr=3ffb0000 size=0364ch ( 13900) load
I (197) esp_image: segment 3: paddr=0004daf4 vaddr=40080000 size=02524h (  9508) load
I (204) esp_image: segment 4: paddr=00050020 vaddr=400d0020 size=c2fd4h (798676) map
I (497) esp_image: segment 5: paddr=00112ffc vaddr=40082524 size=13260h ( 78432) load
I (530) esp_image: segment 6: paddr=00126264 vaddr=400c0000 size=00064h (   100) load
I (541) boot: Loaded app from partition at offset 0x10000
I (541) boot: Disabling RNG early entropy source...
I (553) cpu_start: Pro cpu up.
I (553) cpu_start: Starting app cpu, entry point is 0x400813f8
0x400813f8: call_start_cpu1 at /home/pandax381/LOCAL/src/esp-idf/components/esp_system/port/cpu_start.c:145

I (0) cpu_start: App cpu up.
I (569) cpu_start: Pro cpu start user code
I (569) cpu_start: cpu freq: 160000000 Hz
I (569) cpu_start: Application information:
I (574) cpu_start: Project name:     mruby-esp32
I (579) cpu_start: App version:      2153a36-dirty
I (585) cpu_start: Compile time:     Jan 19 2023 16:10:30
I (591) cpu_start: ELF file SHA256:  15468e66870026b4...
I (597) cpu_start: ESP-IDF:          v5.1-dev-2063-g593335578f
I (603) cpu_start: Min chip rev:     v0.0
I (608) cpu_start: Max chip rev:     v3.99 
I (613) cpu_start: Chip rev:         v0.0
I (618) heap_init: Initializing. RAM available for dynamic allocation:
I (625) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (631) heap_init: At 3FFB75C8 len 00028A38 (162 KiB): DRAM
I (637) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (643) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (650) heap_init: At 40095784 len 0000A87C (42 KiB): IRAM
I (657) spi_flash: detected chip: gd
I (660) spi_flash: flash io: dio
W (664) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (678) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (1013) mruby_task: Loading binary...
Getting ready to start wifi
Connecting to wifi
I (1033) wifi:wifi driver task: 3ffcb7bc, prio:23, stack:6656, core=0
I (1053) wifi:wifi firmware version: 267a51c
I (1053) wifi:wifi certification version: v7.0
I (1053) wifi:config NVS flash: enabled
I (1053) wifi:config nano formating: disabled
I (1053) wifi:Init data frame dynamic rx buffer num: 32
I (1063) wifi:Init management frame dynamic rx buffer num: 32
I (1063) wifi:Init management short buffer num: 32
I (1073) wifi:Init dynamic tx buffer num: 32
I (1073) wifi:Init static rx buffer size: 1600
I (1073) wifi:Init static rx buffer num: 10
I (1083) wifi:Init dynamic rx buffer num: 32
I (1083) wifi_init: rx ba win: 6
I (1093) wifi_init: tcpip mbox: 32
I (1093) wifi_init: udp mbox: 6
I (1093) wifi_init: tcp mbox: 6
I (1103) wifi_init: tcp tx win: 5744
I (1103) wifi_init: tcp rx win: 5744
I (1113) wifi_init: tcp mss: 1440
I (1113) wifi_init: WiFi IRAM OP enabled
I (1123) wifi_init: WiFi RX IRAM OP enabled
I (1123) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (1233) wifi:mode : sta (xx:xx:xx:xx:xx:xx)
I (1233) wifi:enable tsf
Free heap: 194K
Disconnected