Skip to main content
aqib riaz
Associate
Jan 12, 2018 8:15 AM UTC
Solved

adding service return 0x1f error

Posted on January 12, 2018 at 09:15

The original post was too long to process during our migration. Please click on the attachment to read the original post.
This topic has been closed for replies.
Winfred LU
Winfred LUBest answer
ST Employee
Jan 19, 2018 6:06 AM UTC
Posted on January 19, 2018 at 07:06

Hi Aqib,

Return value 0x1F means 'Out of memory'.

Possibly you need to increase the memory size to be allocated (mblockCount) in 

BlueNRG_Stack_Init_params structure.

The size should be increased according to the number of services and attributes you'd like to add.

Regards,

Winfred

4 replies

Winfred LU
Winfred LUBest answer
ST Employee
Jan 19, 2018 6:06 AM UTC
Posted on January 19, 2018 at 07:06

Hi Aqib,

Return value 0x1F means 'Out of memory'.

Possibly you need to increase the memory size to be allocated (mblockCount) in 

BlueNRG_Stack_Init_params structure.

The size should be increased according to the number of services and attributes you'd like to add.

Regards,

Winfred

aqib riaz
aqib riazAuthor
Associate
Feb 21, 2018 12:18 AM UTC
Posted on February 21, 2018 at 00:18

how to find out the correct size of mblock to be initialized for adding services?

Antonio Vilei
ST Employee
Feb 21, 2018 5:16 PM UTC
Posted on February 21, 2018 at 17:16

Dear Aqib Riaz,

for additional information, this thread about the

https://community.st.com/0D50X00009XkYAvSAN

may be useful for you.

Best regards,

Antonio