Skip to content
Commit abd90085 authored by Andrzej Kuroś's avatar Andrzej Kuroś Committed by Carles Cufi
Browse files

soc: arm: nrf53: workaround pop lr after wfi crash



On nRF5340 net core it was observed that when `wfi` instruction was
followed by `pop {r0, lr}` in the `arch_cpu_idle` function,
the value of `lr` sometimes got read as 0 from memory despite
having correct value stored in the memory.

This commit inserts additional `nop` instruction after waking up
to delay access to the memory.

Signed-off-by: default avatarAndrzej Kuroś <andrzej.kuros@nordicsemi.no>
parent 8e5673cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment