This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Gazelle Pairing device not store system address and host id

Hi, 

I'm working on a project using the gazelle protocol with the gazelle pairing library. Due to the fact that I use the GNU GCC compiler, I created a Makefile from the example of gzp projects.
Both devices (host and device) communicate with each other, pair and transmit encrypted data. However, I have a problem with saving the pairing parameters (system address and host id) in the device application.
I was able to debug function gzp_init() and the gzp_params_restore() function is called which returns false (I understand it fails to read data from NVM). Additionally, after the correct pairing of devices, the gzp_params_store() function also returns false, so it fails to save the pairing parameters.
It seems to me that the linker script may be the problem (I borrowed mine from the sample ESB project).

Host - nrf52832 (devboard and in-production chip)

Device - nrf52840 dongle (devboard now), nrf52832 (in-production chip)

Could you please help me properly configure the .ld script for both host and device projects?

Parents Reply Children
  • Hi Kenneth, thank you for your response,

    I am working on Minew chip nrf52832 for host role and dongle nrf52840 for device role.
    I program nrf52832 with Black Magic Probe and nrf52840 via bootloader.


    I tried to upload the role of device on both nrf52832 and nrf52840.
    Erasing memory nrf52832 via BMP (mon erase_mass command) and calling gzp_erase_pairing_data() before gzp_init(), I still get gzp_index_db_full () returns true.
    In the case of nrf52840 dongle I am unable to clear the memory, and calling the gzp_erase_pairing_data() function the program hangs.

  • Hmmm. What SDK version are you using? Do you by any chance have an nRF52-DK that you can use for comparison?

    off-topic: Is there any reason you can't use SEGGER EMBEDDED STUDIO for development?

    Kenneth

Related