-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
demo sample fails on U585 board, which seem to not enough RAM.
*** Booting Zephyr OS build v4.3.0 ***
I: Ocre version 0.7.0
I: Commit ID: 8b806c61b466affa8f8e438685827ec37da0ddd2
I: Build information: krisztian @ Linux k-dell 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
I: Build date: 2026-01-16 14:40:55 CET
I: OCRE common initialized successfully
I: Registered cleanup handler for type 0
I: Timer system initialized
I: Initialized 'wamr/wasip1'
I: Using default working directory: /lfs/ocre
I: Directory '/lfs/ocre' already exists
I: Directory '/lfs/ocre/containers' already exists
I: Directory '/lfs/ocre/images' already exists
I: File size to load: 18550
I: File '/lfs/ocre/images/hello-world.wasm' (size=18550) loaded successfully
I: Buffer loaded successfully: 0x200167e0
I: Created container 'b898643' with runtime 'wamr/wasip1' (path '/lfs/ocre/images/hello-world.wasm')
I: Waiting for container 'b898643' to start
I: Module registered: 0x2001c540
_ _________ ___ ________I: Started container 'b898643' on runtime 'wamr/wasip1'
I: Container 'b898643' is running
______ ______ ____ __
| | /| / / __/ _ )/ _ | / __/ __/ __/ |/ / _ )/ /\ \/ /
| |/ |/ / _// _ / __ |_\ \_\ \/ _// /|_/ / _ / /__\ /
|__/|__/___/____/_/ |_/___/___/___/_/ /_/____/____//_/
powered by Ocre I: Cleaning up module resources
I: Module unregistered: 0x2001c540
I: Context 0x200166f0 completed successfully
I: Container 'b898643' exited. Result is = 0
I: Container 'b898643' was exited
I: Container 'b898643' was stopped
I: Removed container 'b898643'
I: File size to load: 22682
I: File '/lfs/ocre/images/blinky.wasm' (size=22682) loaded successfully
I: Buffer loaded successfully: 0x2001b2a0
I: Created container 'a5d16e5' with runtime 'wamr/wasip1' (path '/lfs/ocre/images/blinky.wasm')
I: Module registered: 0x200182205' to start
=== Generic Blinky Example (Printf Only) ===
This example demonstrates software blinking with
I: Started container 'a5d16e5' on runtime 'wamr/wasip1'
out physical hardware.
I: Registered dispatcher for type 0: timer_callback
I: Incremented resource count: type=0, count=1
I: Created timer 1 for module 0x20018220
Timer created. ID: 1, Interval: 1000ms
I: Started timer 1 with interval 1000ms, periodic=1
Generic blinking started. You should see 'blink' messages every 1000ms.
Press Ctrl+C to stop.
blink (count: 1, state: -)
I: Sent kill signal to container 'a5d16e5'
I: Container 'a5d16e5' is running
W: Main function returned error in context 0x200166e0 exception: None
E: Container 0x200166e0 exception: Exception: terminated by user
I: Cleaning up module resources
I: Decremented resource count: type=0, count=0
I: Module unregistered: 0x20018220
I: Context 0x200166e0 completed successfully
I: Container 'a5d16e5' exited. Result is = 0
I: Container 'a5d16e5' was exited
I: Container 'a5d16e5' was stopped
Container exited with status 0
I: Removed container 'a5d16e5'
I: File size to load: 22854
I: File '/lfs/ocre/images/subscriber.wasm' (size=22854) loaded successfully
I: Buffer loaded successfully: 0x2001b2a0
I: Created container 'f1e1e8d' with runtime 'wamr/wasip1' (path '/lfs/ocre/images/subscriber.wasm')
E: Failed to initialize mutex: rc=12
E: Failed to create container 5b850d1: errno=0
Failed to create container
@casaroli suggests that it shall work even with the internal amount of memory (512K). Understand, whether it fails due to config or simply inefficient amount of memory. In first case, fix the values, in second, add PSRAM support/config for this demo for this board.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels