Skip to content

Conversation

@fgr-17
Copy link
Contributor

@fgr-17 fgr-17 commented Nov 5, 2025

Using nordic nRF5340-DK board for testing and leveraging Ocre containers.

Description

Adding minimal support to make it compile and run on the actual hardware. Will continue adding configs across with the functionalities

  • Fixes issue #

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)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code cleanup/refactoring
  • This change requires a documentation update
  • CI system update
  • Test Coverage update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration including the following required details.

Test Configuration (required):

  • Host OS type, version, and arch: Ubuntu 24.04.3 LTS (GNU/Linux 6.8.0-87-generic x86_64)
  • Developer Board make & model: nRF5340-DK
  • Board Tools Installed: nrfjprog

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

@fgr-17 fgr-17 changed the title Ocre containers: Adding support for NRF5340-DK board [DRAFT] Adding support for NRF5340-DK board Nov 5, 2025
@kr-t
Copy link
Collaborator

kr-t commented Nov 10, 2025

The DCO has to be setup.

@fgr-17 fgr-17 force-pushed the froux/add-support-nrf5340dk branch from 4610b12 to 63820f0 Compare November 18, 2025 22:13
@fgr-17 fgr-17 requested a review from kr-t November 18, 2025 22:19
@kr-t
Copy link
Collaborator

kr-t commented Nov 19, 2025

Hi, I've got an email to check this, but I can see that it's still in draft - don't forget to flip it so it's not ambiguous whether you are finished or not.
P.S. I can see that you are adding additional stuff beside new board support - I recommend having separate PRs for that. So adding support for new boards can be kept simple and the same files had to be changed. Please separate new stuff into another PR.
Please also include some logs that you have Ocre (at least the build-in hello-world) working on the new board - it's rare that anyone from maintainers would have it, so some proof that it works is needed.
Thanks for you contribution!

@fgr-17 fgr-17 force-pushed the froux/add-support-nrf5340dk branch 2 times, most recently from ccb0fc3 to 47c0a2e Compare November 19, 2025 12:03
@fgr-17 fgr-17 changed the title [DRAFT] Adding support for NRF5340-DK board Adding support for nRF5340-DK board Nov 19, 2025
@fgr-17
Copy link
Contributor Author

fgr-17 commented Nov 19, 2025

Running Ocre "Hello World" container on nRF5340-DK board. Showing the output of the serial port of the board:

image
*** Booting Zephyr OS build v4.2.0-32-g8d0d392f8cc7 ***
I: LittleFS version 2.11, disk version 2.1
I: FS at flash-controller@39000:0xe0000 is 32 0x1000-byte blocks with 512 cycle
I: partition sizes: rd 16 ; pr 16 ; ca 64 ; la 32
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:1386: Corrupted dir pair at {0x0, 0x1}
W: can\'t mount (LFS -84); formatting
I: /lfs mounted
I: /lfs mount: 0

I: OCRE common initialized successfully
I: Registered cleanup handler for type 0
I: Timer system initialized
I: Registered cleanup handler for type 3
I: Messaging system initialized
I: Container Supervisor started.



Ocre runtime started
I: Request to create new container in slot: 0
I: Request to run container in slot:0
I: EVENT_CREATE_CONTAINER
I: Allocating memory for container 0
I: File path: /lfs/ocre/images/hello-from-ocre.bin, size: 3850
I: Loaded binary to buffer for container 0
W: Created container:0
I: Created container in slot:0
I: EVENT_RUN_CONTAINER
I: Instantiating WASM runtime for container:0
I: Module registered: 0x200049f8
W: Running container:0 in dedicated thread
I: Started container in slot:0
I: Container thread 0 started


	Hello World from Ocre!


E: GPIO system not initialized or invalid module 0x200049f8
I: Container thread 0 exited cleanly

@fgr-17 fgr-17 changed the title Adding support for nRF5340-DK board Adding support for nRF5340-DK board Nov 19, 2025
@fgr-17 fgr-17 marked this pull request as ready for review November 19, 2025 12:09
@fgr-17 fgr-17 requested a review from srberard as a code owner November 19, 2025 12:09
@kr-t
Copy link
Collaborator

kr-t commented Nov 19, 2025

Hi, LGTM, but you need to have verified signatures:
https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits

WIP: Using nordic NRF5340DK board for testing and leveraging Ocre
containers.

Currently adding minimal support to make it compile and run on the
actual hardware. Will continue adding configs across with the
functionalities

Signed-off-by: Federico Roux <rouxfederico@gmail.com>
@fgr-17 fgr-17 force-pushed the froux/add-support-nrf5340dk branch from 47c0a2e to 9fad857 Compare November 19, 2025 17:23
@kr-t kr-t merged commit 4778e5c into project-ocre:main Nov 19, 2025
13 checks passed
PatrickRobbIOL pushed a commit to mgeeIOL/ocre-runtime that referenced this pull request Dec 1, 2025
WIP: Using nordic NRF5340DK board for testing and leveraging Ocre
containers.

Currently adding minimal support to make it compile and run on the
actual hardware. Will continue adding configs across with the
functionalities

Signed-off-by: Federico Roux <rouxfederico@gmail.com>
casaroli pushed a commit that referenced this pull request Dec 7, 2025
WIP: Using nordic NRF5340DK board for testing and leveraging Ocre
containers.

Currently adding minimal support to make it compile and run on the
actual hardware. Will continue adding configs across with the
functionalities

Signed-off-by: Federico Roux <rouxfederico@gmail.com>
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