Unknown messages coming to gnrc_netdev2

Hi all!

While debugging a driver for cc2420 I’m receiving unceasingly random messages from random PIDs.

The line where it happens is here[1] and the debug output is the following:

2016-06-30 18:00:52,119 - INFO # gnrc_netdev2: waiting for incoming messages 2016-06-30 18:00:52,120 - INFO # gnrc_netdev2: MSG from 512 2016-06-30 18:00:52,127 - INFO # gnrc_netdev2: Unknown command 16447 2016-06-30 18:00:52,129 - INFO # gnrc_netdev2: waiting for incoming messages 2016-06-30 18:00:52,129 - INFO # gnrc_netdev2: MSG from 512 2016-06-30 18:00:52,142 - INFO # gnrc_netdev2: Unknown command 16447 2016-06-30 18:00:52,142 - INFO # gnrc_netdev2: waiting for incoming messages 2016-06-30 18:00:52,143 - INFO # gnrc_netdev2: MSG from 4784 2016-06-30 18:00:52,147 - INFO # gnrc_netdev2: Unknown command 28564 2016-06-30 18:00:52,148 - INFO # gnrc_netdev2: waiting for incoming messages 2016-06-30 18:00:52,149 - INFO # gnrc_netdev2: MSG from 4784 2016-06-30 18:00:52,157 - INFO # gnrc_netdev2: Unknown command 28564

This is happening very fast and the device does not respond. After a reset it stops and can be stable for a while, but then suddenly the messages arrive and cannot stop.

Any thoughts?

Thanks in advance!

Cheers,

[1] https://github.com/RIOT-OS/RIOT/blob/master/sys/net/gnrc/link_layer/netdev2/gnrc_netdev2.c#L134

Hi!

Hi Oleg! Thanks for your answer.

Actually these messages are received only if dev->netdev.proto = GNRC_NETTYPE_SIXLOWPAN is enabled.

I’ll look into the stack overflow and get/set.

I’ve just made a PR[1] to support this board. Feel free to test it and review it, maybe I made a big mistake that is triggering this bug.

Cheers,

[1] https://github.com/RIOT-OS/RIOT/pull/5591