Skip to content

Conversation

@raul-klg
Copy link
Contributor

@raul-klg raul-klg commented Jun 2, 2022

Backport #41326 because #41074 affects v2.7-branch

More background:

  • mcan driver used to work in zephyr 2.6
  • This commit landed into 2.7
  • MINIMAL_LIBC_OPTIMIZE_STRING_FOR_SIZE is set to yes when SIZE_OPTIMIZATIONS are enabled
  • memcpy and memset versions used are not fit for unaligned memory access.

Fixes #41074

Make sure that all access to the msg_sram
is 32 bit aligned.

Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
@henrikbrixandersen henrikbrixandersen changed the title drivers: can: m_can: fix alignmed issues [Backport v2.7-branch] drivers: can: m_can: fix alignmed issues Jun 2, 2022
@henrikbrixandersen henrikbrixandersen added the bug The issue is a bug, or the PR is fixing a bug label Jun 2, 2022
@cfriedt cfriedt merged commit 7aa38b4 into zephyrproject-rtos:v2.7-branch Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: CAN bug The issue is a bug, or the PR is fixing a bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants