Skip to content

Conversation

nordic-segl
Copy link
Contributor

Extend sample with possibility to use PPR core instead of Radio core.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, there are two sample configurations: APP+Radio and APP+PPR.
I moved common DTS part on APP to a separate file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Include common and delete references to led1. Otherwise Radio core will not be able to take ownership of the led1.

Copy link
Contributor Author

@nordic-segl nordic-segl Oct 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PPR inherits permissions from its owner (APP). Therefore, APP must take ownership of led1 (so PPR could use it). Moreover, APP must claim ownership of other resources that PPR will use (spi131, uart135, route interrupts to PPR interrupt handler).

Copy link
Contributor Author

@nordic-segl nordic-segl Oct 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only to limit code size. Otherwise, sample doesn't fit in available ROM.

Extend sample with possibility to use PPR core instead of Radio core.

Signed-off-by: Sebastian Głąb <[email protected]>
@nordic-segl nordic-segl force-pushed the samples-boards-nordic-spis_wakeup-run-on-PPR-XIP branch from 7d7c3e4 to 74a8bde Compare October 7, 2025 13:16
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move common part for "remote" core to a separate file.

Copy link

sonarqubecloud bot commented Oct 7, 2025

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed from remote core prj.conf because PPR doesn't support CONFIG_PM and binary file is too big when ASSERTS are enabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Common file plus set memory-regions property in spi131.

@nordic-segl
Copy link
Contributor Author

Works in internal CI:

15:52:25  INFO    - 3/4 [email protected]/nrf54h20/cpuapp samples/boards/nordic/spis_wakeup/sample.drivers.spis.wakeup PASSED (device: 1051164192, 8.346s <zephyr>)
15:52:25  INFO    - 4/4 [email protected]/nrf54h20/cpuapp samples/boards/nordic/spis_wakeup/sample.drivers.spis.wakeup.ppr PASSED (device: 1051164192, 7.405s <zephyr>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants