We've been working with Atmel's new LightWeight Mesh stack for the past couple months. We're using the ATmega128RFA1 and decided to go with LightWeight Mesh over BitCloud because the footprint was so much smaller.
I have a pretty straight forward application level protocol for LightWeight Mesh, a master sends a request, a slave replies.
Right now the interface runs fine between the master/slave, but the master seems to get stuck in the LightWeight Mesh stack randomely. I connected an AVR Dragon to run the debugger and found the stack getting stuck in:
void nwkDataReqTaskHandler(void) in nwkDataReq.c.
I see that req and req->next point to the same address, so it gets stuck in the for loop that is checking the state. req->state is equal to 1. It appears the stack is waiting for a confirmation that doesn't come in, but there isn't a timeout for this condition. Also it just seems wrong that req->next is equal to req. HELP PLEASE, I've been stuck on this for a few days now.