Hello nRF world,
We have custom peripheral board based on the nRF51822 and need to be able to pair it with a host. Does anyone have a well documented example of code for doing so?
Thank you kindly,
Robin@TL
Hello nRF world,
We have custom peripheral board based on the nRF51822 and need to be able to pair it with a host. Does anyone have a well documented example of code for doing so?
Thank you kindly,
Robin@TL
An update: I have taken the advice of a related ticket and merged our code into the ble_app_gls example to attempt pairing.
However, although all modules compile independently, there appears to be a memory segmentation problem when linking. It appears to be associated with the fstorage for fds code, but I cannot determine the fix. The initial error messages are as follows:
Output/Debug/Exe/iDrink.elf section `.fs_data' will not fit in region `UNPLACED_SECTIONS'
Subsequently several errors ensue...
region `UNPLACED_SECTIONS' overflowed by 16 bytes
Output/iDrink Debug/Obj/fstorage.o: In function `check_config':
undefined reference to `__start_fs_data'
undefined reference to `__stop_fs_data'
... and on ad-nauseam...
What file might I be missing to define this unplaced section in memory?
Thanks again, in advance,
Robin@TL
You just needed to add one line in flash_placement.xml file in your project
<MemorySegment name="$(FLASH_NAME:FLASH)">
....
....
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".fs_data" address_symbol="__start_fs_data" end_symbol="__stop_fs_data" />
</MemorySegment>
After that your project compiles fine.
...
Hello Susheel,
I believe peer manager is in the code. Do you not see it in the uploaded project?
Robin
I missed to see that, I will see if there is any initialization of peer manager in that project tomorrow, Its late here in Norway now.
Hello Susheel,
I am closing this case I have changed the scope and added a new case for adding secure pairing/bonding to a ble_uart based application. Please remove all attached files and make this case public.
Thanks
Robin@TL
Most of us on holidays until New year. We will get back to you once we are back to office after 2nd January. I will clean up this case and make it public as soon as i am back to work.
Hello Susheel,
I am closing this case. Most of the question have been resolve and we are on to the next set of concerns. I have generalized where we are and what needs to be done next and the help we could use in case # 220048.
Thank you for your continued assistance. I look forward to your responses in the mentioned case.
Robin@TL
Hello Susheel,
I am closing this case. Most of the question have been resolve and we are on to the next set of concerns. I have generalized where we are and what needs to be done next and the help we could use in case # 220048.
Thank you for your continued assistance. I look forward to your responses in the mentioned case.
Robin@TL