Skip to content

Follow ESP-IDF 5.0 #27

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

Merged
merged 1 commit into from
Jan 19, 2023
Merged

Follow ESP-IDF 5.0 #27

merged 1 commit into from
Jan 19, 2023

Conversation

yuuu
Copy link
Contributor

@yuuu yuuu commented Jan 7, 2023

Fixed to build this project with ESP-IDF v5.0.

  • Build System was changed from Make to CMake , Ninja
  • mruby-espre-wifi , which depends on this project, also needed to be modified.
  • Expanded stack size of tasks in main/mruby_main.c
  • I have modified the sdkconfig created by ESP-IDF v5.0
    • Use CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE
    • Expand CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE

You must merge this PR to get main/examples/wifi_example_mrb.rb working

@pandax381
Copy link
Member

Sorry for the delay in reviewing.

It's a grate job!
ESP-IDF 5.x environment and verified that it works correctly.

Many thanks for your contribution.

--- 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 15:52:49
I (31) boot: chip revision: v0.0
I (37) boot.esp32: SPI Speed      : 40MHz
I (40) boot.esp32: SPI Mode       : DIO
I (44) boot.esp32: SPI Flash Size : 2MB
I (49) boot: Enabling RNG early entropy source...
I (54) boot: Partition Table:
I (58) 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 (92) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=25340h (152384) map
I (155) esp_image: segment 1: paddr=00035368 vaddr=3ff80063 size=00008h (     8) load
I (155) esp_image: segment 2: paddr=00035378 vaddr=3ffb0000 size=0212ch (  8492) load
I (164) esp_image: segment 3: paddr=000374ac vaddr=40080000 size=08b6ch ( 35692) load
I (184) esp_image: segment 4: paddr=00040020 vaddr=400d0020 size=61a64h (399972) map
I (329) esp_image: segment 5: paddr=000a1a8c vaddr=40088b6c size=0408ch ( 16524) load
I (336) esp_image: segment 6: paddr=000a5b20 vaddr=400c0000 size=00064h (   100) load
I (343) boot: Loaded app from partition at offset 0x10000
I (343) boot: Disabling RNG early entropy source...
I (357) cpu_start: Pro cpu up.
I (358) cpu_start: Starting app cpu, entry point is 0x40081300
0x40081300: 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 (372) cpu_start: Pro cpu start user code
I (372) cpu_start: cpu freq: 160000000 Hz
I (372) cpu_start: Application information:
I (377) cpu_start: Project name:     mruby-esp32
I (382) cpu_start: App version:      2153a36-dirty
I (387) cpu_start: Compile time:     Jan 19 2023 15:52:42
I (393) cpu_start: ELF file SHA256:  20236b0bd6720f6f...
I (399) cpu_start: ESP-IDF:          v5.1-dev-2063-g593335578f
I (406) cpu_start: Min chip rev:     v0.0
I (411) cpu_start: Max chip rev:     v3.99 
I (415) cpu_start: Chip rev:         v0.0
I (420) heap_init: Initializing. RAM available for dynamic allocation:
I (428) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (433) heap_init: At 3FFB2A48 len 0002D5B8 (181 KiB): DRAM
I (440) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (446) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (452) heap_init: At 4008CBF8 len 00013408 (77 KiB): IRAM
I (460) spi_flash: detected chip: gd
I (463) spi_flash: flash io: dio
W (467) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (481) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (793) mruby_task: Loading binary...
RUBY_VERSION: 3.0
RUBY_ENGINE: mruby
RUBY_ENGINE_VERSION: 3.0.0
MRUBY_VERSION: 3.0.0
MRUBY_RELEASE_NO: 30000
MRUBY_RELEASE_DATE: 2021-03-05
MRUBY_DESCRIPTION: mruby 3.0.0 (2021-03-05)
MRUBY_COPYRIGHT: mruby - Copyright (c) 2010-2021 mruby developers

ESP32 SDK Version: v5.1-dev-2063-g593335578f
Available Memory: 252K

Delaying 10 seconds...
Deep sleeping for 10 seconds...

@pandax381 pandax381 merged commit 83a80e4 into mruby-esp32:master Jan 19, 2023
@yuuu yuuu deleted the build_by_esp-idf_v5.0 branch January 19, 2023 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants