cancel
Showing results for 
Search instead for 
Did you mean: 

adding service return 0x1f error

aqib riaz
Associate
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.
1 ACCEPTED SOLUTION

Accepted Solutions
Winfred LU
ST Employee
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

View solution in original post

4 REPLIES 4
Winfred LU
ST Employee
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

Posted on February 21, 2018 at 00:18

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

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

Posted on February 22, 2018 at 04:37

Hi Aqib,

Please try the BlueNRG-1 Radio Parameter Wizard, which comes with BlueNRG-1 DK.

In topic ''Service Configuration'', config the needed number of services, characteristics, and attributes,

the reference size will be exposed in ''Output'' topic.

0690X00000609m3QAA.png

The thread mentioned by Antonio will be a great reference.

Best Regards,

Winfred