Marco Bouchard

Memeory leak in 802.15.4 MAC/PHY?

Discussion created by Marco Bouchard on Mar 23, 2006
Latest reply on Oct 5, 2006 by Stephen Howard
Hi,

We're using the Freescale 802.15.4 MAC/PHY for a USB to wireless bridge. This runs on our custom PCB built with the MC9S08GT60 IC.

Sometimes we hit a case where no new message can be allocated from the MAC private pool. Ie. MSG_Alloc((sizeof(nwkToMcpsMessage_t) - 1 )+ 102) always returns NULL. Even if we call Mlme_Main repeatedly between attempts to allocate the message, the allocation still fails. This basically stalls the library completely.

We've checked and double checked that all mlme, asp and mcps message we receive are freed.

Any ideas why this is hapenning? Is there a way to manually reinitialize the entire private pool?

Thanks
Marc

Outcomes