You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
atomic_t test = ATOMIC_INIT(0);
void main(void)
{
atomic_val_t last = atomic_clear(test);
atomic_clear() takes a pointer to atomic - you seem to be passing by value instead of by reference, which would explain strange behaviour (probably nothing to do with logging)
Oh sorry,
that was a stupid error, I guess I was overwriting wrong memory. I should better watch the warnings in Eclipse :) Sorry once again for false alarm.
Describe the bug
Hi, I ty to use atomic_clear in my app, but it is crashing. I found out that it has something to do with CONFIG_BT_DEBUG_LOG
To Reproduce
Steps to reproduce the behavior:
Add this to prj.conf
and those lines to main.c
then I get
When I disable CONFIG_BT_DEBUG_LOG, there is no fault
Expected behavior
There should be no MPU FAULT
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: