Skip to content

Turning on SystemView causes error #11244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MarekPieta opened this issue Nov 9, 2018 · 1 comment
Closed

Turning on SystemView causes error #11244

MarekPieta opened this issue Nov 9, 2018 · 1 comment
Assignees
Labels
area: Profiling bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@MarekPieta
Copy link
Collaborator

MarekPieta commented Nov 9, 2018

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

@pdunaj pdunaj added bug The issue is a bug, or the PR is fixing a bug area: Profiling labels Nov 9, 2018
@galak galak added the priority: medium Medium impact/importance bug label Nov 20, 2018
@nashif
Copy link
Member

nashif commented Jan 30, 2019

fixed in #12149

@nashif nashif closed this as completed Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Profiling bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants