Skip to content
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

Nrfx none cherry pick latest stm #2098

Merged

Conversation

nordic-segl
Copy link
Contributor

@nordic-segl nordic-segl commented Oct 11, 2024

Cherry pick from the upstream Zephyr changes related to STM, FLPR and serial port.

manifest-pr-skip

nordic-segl and others added 7 commits October 9, 2024 14:50
Add node with STMESP registers.

Signed-off-by: Krzysztof Chruściński <[email protected]>

Signed-off-by: Sebastian Głąb <[email protected]>
(cherry picked from commit 8e22222)
…not needed

Currently we can assume that flpr and ppr cores are always owned by
cpuapp. In that case, cpuapp (which processes ETR buffer content) has
access to the memory where logging strings from ppr and flpr are
located. Those strings do not need to be appended to the message
which is written to the STM (in case of standalone configuration).
This approach reduced logging time, e.g. logging a message with
one argument takes 1.8us on cpuapp and 6.3us on cpurad.

This setting applies only to the case when cpuapp is the owner
of those co-oprocessors and shall be updated if that becomes
configurable but currently there are no means to detect core
owner.

Signed-off-by: Krzysztof Chruściński <[email protected]>

Signed-off-by: Sebastian Głąb <[email protected]>
(cherry picked from commit c2454f2)
Add interrupt locking during test to ensure that main thread is not
interrupts which would impact the test.

Add longer sleep time between tests to ensure that all logs are
processed on time and not dropped.

Signed-off-by: Krzysztof Chruściński <[email protected]>
(cherry picked from commit c61e92a)
…pr support

Add flpr and ppr core to the sample.

Since there are only 2 UARTs available on DK, local UART configuration
is using only cpuapp and cpurad.

Signed-off-by: Krzysztof Chruściński <[email protected]>
(cherry picked from commit d11997d)
Asserts are by default enabled for tests but flpr and ppr are
small cores (<64k) and many tests does not fit in memory with
asserts enabled.

Signed-off-by: Krzysztof Chruściński <[email protected]>

Signed-off-by: Sebastian Głąb <[email protected]>
(cherry picked from commit 3786b61)
…ous API

UART asynchronous API will ensure highest throughput but it is not
necessary as polling API is also supported as a fallback. Do not
enforce use of asynchronous API as there might be cases when polling
might be used (e.g. to reduce memory footprint).

Signed-off-by: Krzysztof Chruściński <[email protected]>

Signed-off-by: Sebastian Głąb <[email protected]>
(cherry picked from commit c6f4e71)
…nous API

Asynchronous API is recommended to be used by ETR buffer handler but
polling is also supported. Imply UART_ASYNC_API so that it is possible
to disable it in project config and fall back to polling if needed. For
example to reduce memory footprint.

Signed-off-by: Krzysztof Chruściński <[email protected]>

Signed-off-by: Sebastian Głąb <[email protected]>
(cherry picked from commit 2423312)
@nordicjm nordicjm merged commit 187d590 into nrfconnect:main Oct 14, 2024
29 checks passed
@nordic-segl nordic-segl deleted the NRFX-NONE_Cherry-pick-latest-STM branch October 14, 2024 06:58
nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Oct 14, 2024
Include latest changes to STM, FLPR and serial port.
nrfconnect/sdk-zephyr#2098

Signed-off-by: Sebastian Głąb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants