-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nRF5340 external-xip DFU sample #13509
Conversation
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publishing GitHub Action. |
Test specificationCI/Jenkins/NRF
CI/Jenkins/integration
Detailed information of selected test modules Note: This message is automatically posted and updated by the CI |
ac54fd5
to
c901c34
Compare
|
||
project(smp_svr) | ||
|
||
target_sources(app PRIVATE src/main.c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[RFC]: Zephyr original source code might be included into that build instead of their copies.
Should that way be used?
target_sources(app PRIVATE $ENV{ZEPHYR_BASE}/samples/subsys/mgmt/mcumgr/smp_svr/src/main.c)
target_sources_ifdef(CONFIG_MCUMGR_TRANSPORT_BT app PRIVATE $ENV{ZEPHYR_BASE}/samples/subsys/mgmt/mcumgr/smp_svr/src/bluetooth.c)
# This places the application bluetooth.c file and some MCUmgr libraries into QSPI XIP
zephyr_code_relocate(FILES $ENV{ZEPHYR_BASE}/samples/subsys/mgmt/mcumgr/smp_svr/src/bluetooth.c LOCATION EXTFLASH_TEXT NOCOPY)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@de-nordic @nordicjm Your opinion?
c901c34
to
e4ab6dc
Compare
|
||
project(smp_svr) | ||
|
||
target_sources(app PRIVATE src/main.c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@de-nordic @nordicjm Your opinion?
e4ab6dc
to
b4d0614
Compare
I've said my opinions on this before |
013f97c
to
4f7b736
Compare
I know your opinion. For others:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sample is based on smp_svr
, but IMO it should have different name, something with xip
in it, because it is specific to XIP.
You can consider also moving it to tests
folder. You can find specific tests for mcuboot here:
https://github.com/nrfconnect/sdk-nrf/tree/main/tests/modules/mcuboot,
or for bootloader:
https://github.com/nrfconnect/sdk-nrf/tree/main/tests/subsys/bootloader/boot_chains
samples/nrf5340/smp_svr/sample.yaml
Outdated
description: Simple Management Protocol sample | ||
name: smp svr | ||
common: | ||
harness: bluetooth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider changing it to at least harness: console, to just verify if sample is booted,
you can use something like that:
harness: console
harness_config:
type: one_line
regex:
- "Hello World! (.*)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or I can later (in separate PR) extend it with a pytest scenario to test full upgrade with mcumgr
(like in https://github.com/zephyrproject-rtos/zephyr/tree/main/tests/boot/with_mcumgr)
samples/nrf5340/smp_svr/sample.yaml
Outdated
- thingy53_nrf5340_cpuapp | ||
integration_platforms: | ||
- nrf5340dk_nrf5340_cpuapp | ||
- thingy53_nrf5340_cpuapp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this sample works on thingy? with the same pm_static.yml?
samples/nrf5340/smp_svr/app.overlay
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that file used anywhere? I don't see extra_args: DTC_OVERLAY_FILE="app.overlay"
in sample.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
4f7b736
to
f826697
Compare
I do not know whether this is relevant here, but I have created some time ago PR for support of nrf5340, non-xip, to sdk-nrf but it has been denied because it was not upstreamed nrfconnect/sdk-zephyr#909 |
6626ae7
to
1ae7930
Compare
1ae7930
to
7073077
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kittydepa Applied.
7073077
to
43f40d3
Compare
36b3059
to
c04bdfc
Compare
modules/mcuboot/Kconfig
Outdated
help | ||
Allows for an image to be split into 2 parts where there is code executing from internal | ||
flash and code from QSPI via XIP. Requires specific project setup for projects to use | ||
this feature:: project's cmake which supports code dispatching, linker script for describe QSPI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nvlsianpu Are the double colons here intentional (::)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that a typo
61b9f4d
to
9a2bb53
Compare
Falling CI stage passed after re-run. |
Adds support for third image in the QSPI XIP space. This image is desired to be the part of cpuapp application executable relocated to the QSPI memory. Signed-off-by: Jamie McCrae <[email protected]> Signed-off-by: Torsten Rasmussen <[email protected]> Signed-off-by: Andrzej Puzdrowski <[email protected]>
Added sample whit configuration which allows to run part of the code form external QSPI flash, which shows the QSPI XIP feature. The sample C code is the same as zephr-rtos smp_svr sample (It Use zephy-rtos embedded source C code instead of copying it) Signed-off-by: Anna Wojdylo <[email protected]> Signed-off-by: Kitty Depa <[email protected]> Signed-off-by: Andrzej Puzdrowski <[email protected]>
Added release note on external XIP DFU sample for nrf5340. Signed-off-by: Andrzej Puzdrowski <[email protected]>
9a2bb53
to
0ee651f
Compare
This PR is for introducing support for external-xip sample and basic support for nRF5340.
This brings work which was hosted in https://github.com/NordicPlayground/ncs-nrf5340-xip-app/tree/main/smp_svr to the NCS.
external-xip documentation PR