OpenThread fails on nRF52840 Dongle (nrf52840_pca10059) #21780
Labels
bug
The issue is a bug, or the PR is fixing a bug
platform: nRF
Nordic nRFx
priority: low
Low impact/importance bug
Describe the bug
Enabling OpenThread L2 on nrf52840_pca10059 doesn't work. Crashes with a bus error.
zephyr/subsys/net/lib/openthread/platform/flash.c
wants to use the last two pages of flash for OpenThread. On this board the stock boot-loader occupies the end of flash, and also configures the ACL peripheral to prevent flash writes to this address region. This causes a bus error when OpenThread tries to setup flash.To Reproduce
Steps to reproduce the behavior:
0x0000d690 is within nrf nvm erase code.
~/opt/zephyr/sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-addr2line -e build/zephyr/zephyr.elf 0x0000d690
/home/braiden/opt/zephyr/zephyr/modules/hal/nordic/nrfx/drivers/src/nrfx_nvmc.c:223
Expected behavior
Add some KConfig for OpenThread flash partition or address?
Impact
Minor?
My work-around was to use "storage" flash partition configured in device tree:
Replace
ot_flash_offset = info.start_offset;
inzephyr/subsys/net/lib/openthread/platform/flash.c
withot_flash_offset = FLASH_AREA_STORAGE_OFFSET
.Screenshots or console output
See To Reproduce.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: