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 Robin,
You need to add peer manager to your code in SDK12.3. Please look at its usage documentation to be able to include it in your project.
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.
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.