wiced_bt_create_pool() failed on cyw20719

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JiZh_4619191
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

Hi,

I used wiced_bt_create_pool() to create a pool in

static wiced_bt_buffer_pool_t *pbuffer_pool;

void hello_sensor_application_init( void )

{

...

    pbuffer_pool = wiced_bt_create_pool(512, 1);

    if(pbuffer_pool==NULL)

    {

        WICED_BT_TRACE( "wiced_bt_create_pool failed!\r\n" );

    }

    else

    {

        WICED_BT_TRACE( "wiced_bt_create_pool success!\r\n" );

    }

...

}

Output

wiced_bt_create_pool failed!

What's wrong with wiced_bt_create_pool()?

Best regards!

0 Likes
1 Solution
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi JiZh_4619191​,

Can you please try creating buffer pool of small size, lets say less than 200 or 256? Also, reduce the no. of default buffer pools in wiced_bt_cfg.c file.

Try printing the pool value after you creation:

WICED_BT_TRACE( "wiced_bt_create_pool %x\n", pbuffer_pool);

Lets see if this works for you.

View solution in original post

0 Likes
1 Reply
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi JiZh_4619191​,

Can you please try creating buffer pool of small size, lets say less than 200 or 256? Also, reduce the no. of default buffer pools in wiced_bt_cfg.c file.

Try printing the pool value after you creation:

WICED_BT_TRACE( "wiced_bt_create_pool %x\n", pbuffer_pool);

Lets see if this works for you.

0 Likes