New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jira 714 CurieBLE: Adding more than 6 characteristics to a service causes device to crash when attempting to advertise #446
Comments
In this example I have commented out the line PrimaryService.addCharacteristic(Function6Characteristic); If you uncomment it then this project will no longer run, and the Arduino101 won't advertise. |
Please note that the current memory arrangement can only provided 8 KB of HEAP for the entire system. In addition, the malloc() does not maximize the usage of the HEAP. This issue is under investigation and proposed solutions are under testing. At the mean time, the number of Characteristic is limited. |
Is there anyway to configure the heap to have more than 8KB allocated for a project? |
The allocation of ARC memory is controlled by the firmware running on the x86 core. To re-arrange the allocation needs an upgrade to the firmware. |
@SidLeung is there are way to prevent the hanging? |
There is no solution to prevent the hanging at this time, but can be considered for future investigation/improvements. |
I have a sketch arranged like this:
That was working on 1.0.7 Now I can see only the services 0x1800 and 0x1801 and not mine. Tested on 2.0.1 |
Seeing this same problem.. Sample script that fails:
Removing one of the attributes, it works, but with the script as above advertise hangs... Serial log shows: //BLE advertise hangs, never gets to log message... int bleStatus = BLE.advertise(); This was working in 1.0.7.. |
I wouldn't say this is an "Enhancement" but rather a bug.. |
We are going to investigate the limits of characteristics when we have V4.2 stabilized. |
Great, thanks. Let me know if you need help testing
…Sent from my iPhone
On May 2, 2017, at 3:38 PM, russmcinnis ***@***.***> wrote:
We are going to investigate the limits of characteristics when we have V4.2 stabilized.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I cannot advertise more than 7 characteristics even in separate services. I think there is a memory limitation. |
It appears there is an issue when you add more than 6 characteristics to a single service in the CurieBLE driver with version 2.0.0 RC4.
The device never begins to advertise and appears to hang when calling BLE.advertise();
Removing the 7th characteristic from service will allow the device to continue to work.
Using Arduino101 board and version 2.0.0 RC4 of the Intel Curie Arduino SDK libs.
The text was updated successfully, but these errors were encountered: