Skip to content

[nrf fromlist] debug: mipi_stp_decoder: Refactor to avoid unaligned 6…#4048

Merged
rlubos merged 1 commit into
nrfconnect:mainfrom
nordic-krch:ncs/stp_decoder_fix
May 26, 2026
Merged

[nrf fromlist] debug: mipi_stp_decoder: Refactor to avoid unaligned 6…#4048
rlubos merged 1 commit into
nrfconnect:mainfrom
nordic-krch:ncs/stp_decoder_fix

Conversation

@nordic-krch
Copy link
Copy Markdown
Contributor

…4 bit access

When optimized for speed it was possible that compiler for ARM Cortex-M used double word read for code that was reading two words from an array. However, it was possible that this array was not word-aligned and double word access was resulting in a bus fault. Refactored the function to ensure that only word access is used (word access on Cortex-M4 and later supports unaligned access).

Signed-off-by: Krzysztof Chruściński krzysztof.chruscinski@nordicsemi.no

Upstream PR #: 108644

…4 bit access

When optimized for speed it was possible that compiler for ARM Cortex-M
used double word read for code that was reading two words from an array.
However, it was possible that this array was not word-aligned and
double word access was resulting in a bus fault. Refactored the function
to ensure that only word access is used (word access on Cortex-M4 and
later supports unaligned access).

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>

Upstream PR #: 108644
@nordic-krch nordic-krch force-pushed the ncs/stp_decoder_fix branch from ee29b43 to 682d10f Compare May 8, 2026 06:26
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request May 8, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-zephyr#4048

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
Copy link
Copy Markdown

@shanthanordic shanthanordic left a comment

Choose a reason for hiding this comment

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

approved for scope

@rlubos rlubos merged commit d91f416 into nrfconnect:main May 26, 2026
11 of 13 checks passed
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request May 26, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-zephyr#4048

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
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.

4 participants