Open
Description
I'm trying to build a minimal (non-WASI, for esp32s3) example using the code you display, but it doesn't work, do you have an idea?
Reproduction on this branch: https://github.com/maelp/espidftemplate-with-wamr/tree/feature/add-simple-wasm-plugin/
./build_plugins.sh && ./build_flash_monitor.sh
it shows this
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40379f72
SPIWP:0xee
mode:DIO, clock div:2
load:0x3fce3818,len:0x16f8
load:0x403c9700,len:0x4
load:0x403c9704,len:0xc00
load:0x403cc700,len:0x2eb0
entry 0x403c9908
I (27) boot: ESP-IDF v5.1-beta1-378-gea5e0ff298-dirt 2nd stage bootloader
I (27) boot: compile time Jun 7 2023 08:07:32
I (28) boot: Multicore bootloader
I (33) boot: chip revision: v0.2
I (36) boot.esp32s3: Boot SPI Speed : 40MHz
I (41) boot.esp32s3: SPI Mode : DIO
I (46) boot.esp32s3: SPI Flash Size : 4MB
I (51) boot: Enabling RNG early entropy source...
I (56) boot: Partition Table:
I (60) boot: ## Label Usage Type ST Offset Length
I (67) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (74) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (82) boot: 2 factory factory app 00 00 00010000 00100000
I (89) boot: End of partition table
I (94) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=1932ch (103212) map
I (128) esp_image: segment 1: paddr=00029354 vaddr=3fc91100 size=03ee4h ( 16100) load
I (133) esp_image: segment 2: paddr=0002d240 vaddr=40374000 size=02dd8h ( 11736) load
I (137) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=758c0h (481472) map
I (261) esp_image: segment 4: paddr=000a58e8 vaddr=40376dd8 size=0a244h ( 41540) load
I (274) esp_image: segment 5: paddr=000afb34 vaddr=600fe100 size=0001ch ( 28) load
I (280) boot: Loaded app from partition at offset 0x10000
I (280) boot: Disabling RNG early entropy source...
I (295) cpu_start: Multicore app
I (304) cpu_start: Pro cpu start user code
I (304) cpu_start: cpu freq: 160000000 Hz
I (304) app_init: Application information:
I (304) app_init: Project name: libespidf
I (308) app_init: App version: 0a67fe7-dirty
I (313) app_init: Compile time: Feb 27 2025 18:03:30
I (318) app_init: ELF file SHA256: 000000000...
I (322) app_init: ESP-IDF: v5.4
I (326) efuse_init: Min chip rev: v0.0
I (330) efuse_init: Max chip rev: v0.99
I (334) efuse_init: Chip rev: v0.2
I (338) heap_init: Initializing. RAM available for dynamic allocation:
I (344) heap_init: At 3FC96658 len 000530B8 (332 KiB): RAM
I (349) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (354) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (359) heap_init: At 600FE11C len 00001ECC (7 KiB): RTCRAM
I (366) spi_flash: detected chip: gd
I (368) spi_flash: flash io: dio
W (371) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
I (383) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (389) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (396) main_task: Started on CPU0
I (406) main_task: Calling app_main()
I (406) espidftemplate: ----- Starting WAMR ESP32 example
I (406) espidftemplate: ----- Parsing WASM module!
I (416) espidftemplate: ----- WASM module parsed successfully
I (416) espidftemplate: ----- Creating runtime with fixed memory
Error: InstantiationFailure("WASM module instantiate failed: allocate linear memory failed")
I (436) main_task: Returned from app_main()
Metadata
Metadata
Assignees
Labels
No labels