-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
samples: benchmarks: coremark: add FLPR support for nRF54H20 DK #20614
Conversation
After documentation is built, you will find the preview for this PR here. Preview links for modified nRF Connect SDK documents: https://ncsdoc.z6.web.core.windows.net/PR-20614/nrf/releases_and_maturity/releases/release-notes-changelog.html |
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 690e47963885221804f46c864545a6abc876edce more detailssdk-nrf:
Github labels
List of changed files detected by CI (13)
Outputs:ToolchainVersion: aedb4c0245 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
@@ -577,7 +577,7 @@ Other samples | |||
* Added: | |||
|
|||
* Support for the nRF54L05 and nRF54L10 SoCs (emulated on nRF54L15 DK). | |||
* FLPR core support for the :ref:`zephyr:nrf54l15dk_nrf54l15` board target. | |||
* FLPR core support for the :ref:`zephyr:nrf54l15dk_nrf54l15` and the :ref:`zephyr:nrf54h20dk_nrf54h20` board target. |
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.
* FLPR core support for the :ref:`zephyr:nrf54l15dk_nrf54l15` and the :ref:`zephyr:nrf54h20dk_nrf54h20` board target. | |
* FLPR core support for the :ref:`zephyr:nrf54l15dk_nrf54l15` and :ref:`zephyr:nrf54h20dk_nrf54h20` board targets. |
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.
fixed
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.
LGTM
samples/benchmarks/coremark/boards/nrf54h20dk_nrf54h20_cpuflpr.conf
Outdated
Show resolved
Hide resolved
|
||
# Reduce speed optimizations to fit the sample into the TCM of the FLPR core. | ||
# Removed the following options from the default configuration (prj.conf): | ||
# -funroll-loops |
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.
I wonder if we could add another optimizations to allow using -funroll-loops
(we need to optimize RAM usage by ~10 kbytes). @zycz do you think we should open a follow-up ticket for it? Would it be worth to optimize it further?
c2bb431
to
5d61f36
Compare
5d61f36
to
a3b3a70
Compare
Rebase on top of the main branch to include the fix for double logs from the nRF54H20 cpuapp target. No file diff has changed. |
You can find the documentation preview for this PR here. Preview links for modified nRF Connect SDK documents: https://ncsdoc.z6.web.core.windows.net/PR-20614/nrf/releases_and_maturity/releases/release-notes-changelog.html |
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.
Looking fine, just an observation to be clarified.
# Reduce speed optimizations to fit the sample into the TCM of the FLPR core. | ||
# Removed the following options from the default configuration (prj.conf): | ||
# -funroll-loops | ||
CONFIG_COMPILER_OPT="-O3 -fno-lto -fno-pie -fno-pic -ffunction-sections -fdata-sections" |
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.
-fno-pie -fno-pic
are default in Zephyr, sop why are they added here ?
-ffunction-sections -fdata-sections"
are default in Zephyr, sop why are they added here ?
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 is a copy-paste of the original options from prj.conf (minus -funroll-loops). @zycz, why did you add them?
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.
I got them from SAG experiments.
We also wanted to mention them explicitly to show them in output logs - we use this variable here:
#define COMPILER_FLAGS CONFIG_COMPILER_OPT " + see compiler flags added by Zephyr"
but I guess we don't have to add it as we already mention that we use default zephyr flags
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.
okay, so I will clean up these flags
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.
done
Corrected comments in the Radio, PPR and FLPR configurations regarding the consistency between the DTS and Kconfig configurations for the UART functionality. Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
Removed compiler options in the CoreMark sample that are already included by default in Zephyr. Ref: NCSDK-30327 Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
Added the FLPR core support for the nRF54H20 DK board target in the CoreMark sample. Ref: NCSDK-30327 Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
a3b3a70
to
690e479
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.
Approved with a nit.
* ``-ffunction-sections`` | ||
* ``-fdata-sections`` | ||
|
||
These options are enabled by default in Zephyr and do not need to be set with the dedicated Kconfig option. |
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.
These options are enabled by default in Zephyr and do not need to be set with the dedicated Kconfig option. | |
These options are enabled by default in Zephyr. | |
You do not need to set them with a dedicated Kconfig option. |
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.
discussed in the other comm channel, decide to keep it as it is
Added the FLPR core support for the nRF54H20 DK board target in the CoreMark sample.
Ref: NCSDK-30327