Skip to content

Features/u585 update#151

Merged
kr-t merged 2 commits intomainfrom
features/u585-update
Feb 3, 2026
Merged

Features/u585 update#151
kr-t merged 2 commits intomainfrom
features/u585-update

Conversation

@kr-t
Copy link
Collaborator

@kr-t kr-t commented Feb 2, 2026

Description

External memory support for the U585 board, both PSRAM and External Flash

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code cleanup/refactoring

How Has This Been Tested?

west build -p -b b_u585i_iot02a ocre-runtime/src/samples/supervisor/zephyr/ -- "-DOCRE_PRELOADED_IMAGES=ocre-sdk/generic/big-sample/build/big-sample.wasm" "-DOCRE_SDK_PRELOADED_IMAGES=webserver.wasm;filesystem.wasm;hello-world.wasm"
west flash --hex-file=build/zephyr/merged.hex 

Result:

ocre:~$ ocre run -d big-sample.wasm
[00:04:45.429,000] <inf> container: Selected runtime engine: wamr/wasip1
[00:04:45.436,000] <inf> file_alloc_read: File size to load: 1042352
[00:04:45.587,000] <inf> file_alloc_read: File '/lfs/ocre/images/big-sample.wasm' (size=1042352) loaded successfully
[00:04:45.598,000] <inf> wamr_runtime: Buffer loaded successfully: 0x900002a0
[00:04:45.792,000] <inf> container: Created container '1a370a6' with runtime 'wamr/wasip1' (path '/lfs/ocre/images/big-sample.wasm')
[00:04:45.805,000] <inf> container: Waiting for container '1a370a6' to start
=== OCRE BIG SAMPLE - LARGE BINARY WITH DATA ARRAYS ===
[00:04:46.552,000] <inf> container: Started container '1a370a6' on runtime 'wamr/wasip1'
1a370a6
Binary contains 1000000 bytes of static data arrays
Initializing large data processing...
Static array checksums: 1, 101, -55, 42, lookup: 1001
ocre:~$ ocre ps
ID      STATUS  IMAGE
1a370a6 RUNNING big-sample.wasm
Filling buffer with test data...
Starting data processing iterations...

--- ITERATION 1/100 ---
Chunk 0: sum=0x00, avg=0.00, sin_transform_applied
Chunk 100: sum=0x00, avg=0.00, sin_transform_applied
Chunk 200: sum=0x00, avg=0.00, sin_transform_applied
Chunk 300: sum=0x00, avg=0.00, sin_transform_applied
Chunk 400: sum=0x00, avg=0.00, sin_transform_applied
Chunk 500: sum=0x00, avg=0.00, sin_transform_applied

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

kr-t added 2 commits February 2, 2026 19:40
The syntax which was used is outdated. The commit mirrors the configs which will be delivered in zephyr v.4.4.
When that happens, this can be reduced to only container storage_partition node.

Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Enable PSRAM to be used by the WAMR and binary load.

Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
@kr-t kr-t merged commit 6f2c029 into main Feb 3, 2026
17 checks passed
@kr-t kr-t deleted the features/u585-update branch February 3, 2026 08:45
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