Hi Then,
On Tue, Feb 14, 2017 at 06:35:35PM +0800, then yon wrote:
> Dear Support,
>
> I having issue with mqueue that the following code always return me
> error after i update myNewt to developer version.
>
> struct os_mbuf *om = os_msys_get_pkthdr(0, sizeof(some_struct));
>
> if(om == NULL)
> {
> console_printf("Spi err 02\n");
> return -2;
> }
I don't think this is the problem, but are you sure those arguments are
correct? Most calls to os_msys_get_pkthdr() should specify 0 for the
second argument (user header length).
You might just be out of mbufs. You could try increasing the count of
mbufs allocated to msys by adding this to your target's syscfg.yml file:
syscfg.vals:
MSYS_1_BLOCK_COUNT: 16
This overrides the default value of 12 with 16.
> By disabling nffs filesystem coding, it worked perfectly.
Hmm... I don't know of any connection between nffs and the behavior
you're seeing. I don't believe nffs uses any mbufs.
Chris