Turning on SystemView causes error #11244
Labels
area: Profiling
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Uh oh!
There was an error while loading. Please reload this page.
Starting SystemView in make menuconfig causes error - program is no longer working. Checked in gdb and noticed that execution does not even reach start of main function.
With SystemView turned on program receives signal SIGTRAP at
/zephyr/kernel/mutex.c:118 (function: _impl_k_mutex_lock (mutex=0x200041d8 <rtt_term_mutex>, timeout=timeout@entry=-1)).
Problem is caused by
sys_trace_void(SYS_TRACE_ID_MUTEX_LOCK)
(and SEGGER_SYSVIEW_RecordVoid) call in _impl_k_mutex_lock function . Currently sending data via RTT (for example in SystemView) requires locking mutex, locking mutex calls SEGGER_SYSVIEW_RecordVoid, which locks mutex, which calls SYSVIEW_Record_Void and so on.Detected on: nrf52_pca10040, hello_world sample
The text was updated successfully, but these errors were encountered: