Hi,
I have a problem with adding more than six services.
The program build is ok, but when running it, a GAPM_DEVICE_IS_IND dose not come from BLE Stack.
So I can not start adding services.
When adding service is less than or equal to six, I can add all of services normally.
Is there any restrictions for adding more than six services?
Best regards.
Keywords:
Device:
Hi shimochan,
The GAPM_DEVICE_IS_IND message isn’t implemented in the code ,maybe you mean GAPM_DEVICE_READY_IND? In case you mean this, it occurs before the databases of your services are initialized. The mass of services that you can add is defined by the size of the heap.
BR,
STS_Dialog
Hi STS_Dialog,
Thank you for your quick reply.
As you say, GAPM_DEVICE_IS_IND is mistake of GAP_DEVICE_READY_IND.
不管怎样,你能教我这堆size, I have to change specifically?
I have not changed SKD V5.0.4 about heap size.
What I want to do is to add seven services which are composed of six standard service one custom one.
Best regards.
Hi,
The initialization of this message implemented before the databases of your services. About the configuration of the heap size please check these links:
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/out-memory-error
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/purposemeaning-memory-related-macros
BR,
STS_Dialog.
Hi STS_Dialog,
Thank you for your reply.
I read above two links, but I still can't resolve the problem.
My six services are:
diss, bass, wass, bcss, udss, and cust1.
These six services are added as a trigger of GAPM_DEVICE_READY_IND event from BLE stack.
My seven serives are:
diss, bass, wass, bcss, udss, cust1 and ctss.
In this case, GAPM_DEVICE_READY_IND event dosen't from BLE stack.
As I attache two memory map(one is for six services, and the other is for seven services),
would you check them if there are something wrong with memory heaps?
Best regards.
Sorry I couldn't attach files correctly.
So, I try again.
Hi,
The indication of the GAPM_DEVICE_READY_IND message happens after a stack reset, before the implementation of your services' databases. If you think it's something wrong with the heap please try to remove one by one your services and check it, but in case of a problem in the heap there will be happened a platform reset.
BR,
STS_Dialog.