Hi Andy,
On 04/24/2017 11:55 PM, Andy Rosete wrote:
> After fill the code with debug lines i saw that the line that fail is
> *thread_t *me = (thread_t*) sched_active_thread;*
That line basically cannot fail(tm). What do you mean by "the line fails"?
>
> this code segment for example
>
> emcute.c
> static int syncsend(uint8_t resp, size_t len, bool unlock)
> {
> [...]
> * t**hread_flags_t flags = thread_flags_wait_any(TFLAGS_ANY);*
> [...]
> because it try to inittialize the thread pointer but the flag is always
> different
> if (flags & TFLAGS_RESP)
>
> The values are:
> The flag = 0x00000002 (This mean TIMEOUT) and TFLAGS_RESP = 0x00000001
What do you mean by "the flag is always different"? Does it have a value
other than TIMEOUT or TFLAGS_RESP?
Could you please check the output of the "ps" command after "con" fails?
Just to rule out a stack overflow.
Kaspar
_______________________________________________
users mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/users