Skip to content

Commit 6a9afe2

Browse files
[nrf noup] Increase Main thread priority to fix an app core crash
Currently, we have set 0 priority both to the main thread and the nrf53 cpuapp IPC0 priority. When we perform a long operation on the main thread we block IPC communication and get a crash on app core when it tries to send a packet through ieee820154 radio. To avoid that situation and the crash we can increase the main thread priority to 1.
1 parent 859fe97 commit 6a9afe2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

config/nrfconnect/chip-module/Kconfig.defaults

+7
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,13 @@ config BOOT_IMAGE_ACCESS_HOOKS
449449
config UPDATEABLE_IMAGE_NUMBER
450450
default 2
451451

452+
# Change the main thread priority to 1 to avoid setting the same thread
453+
# priority value as for IPC0 (which default value is set to 0).
454+
# If the priorities are equal long operations on the main thread can
455+
# block IPC communication to the network core and cause application crash.
456+
config MAIN_THREAD_PRIORITY
457+
default 1
458+
452459
# Generate random numbers using Xoroshiro algorithm instead of direct calls
453460
# to the cryptocell library to workaround firmware hangs.
454461
choice RNG_GENERATOR_CHOICE

0 commit comments

Comments
 (0)