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

bonding and mitm

Hi everyone

I was testing the bonding with MITM settings. I used the code from the following link: github.com/.../nRF51-ble-peripheral-bond-handling. I tested the bonding on the nrf51822 chip with SDK 10 via a mobile application nrf Connect. I came across the following strange observations:

  • When I would like to establish only the bond with the phone and nrf51 chip everything works fine, a phone asks for a static password and the bonding is successfully done. After that in the Scanner tab of the phone application, the nrf chip is not visible anymore. If I would like to be nrf visible I have to reset the chip.
  • If I bond and delete bond a few times via a nrf connect and then reset the nrf chip, it is not visible anymore. I have to upload a new program on nrf chip.

I am using the nrf chip with 16kB RAM and 128kB ROM. If I execute the same program on PCA10028 board I do not get the second problem mentioned earlier, but the first problem still occurs. Due to this fact, I checked the sizes of RAM and ROM and I find the following values:

      Code (inc. data)   RO Data    RW Data    ZI Data      Debug   

     29096       2066        444        284       5308     522541   Grand Totals
     29096       2066        444        284       5308     522541   ELF Image Totals
     29096       2066        444        284          0          0   ROM Totals

==============================================================================

    Total RO  Size (Code + RO Data)                29540 (  28.85kB)
    Total RW  Size (RW Data + ZI Data)              5592 (   5.46kB)
    Total ROM Size (Code + RO Data + RW Data)      29824 (  29.13kB)

==============================================================================

Thus the size of RAM is approximately 5.46kB and ROM equal to 29.13kB + 96kB (softdevice) < 128kB. In this calculation of ROM, the application vector table is not included because I did not find any information about its size, please see Figure 12 at infocenter.nordicsemi.com/.../S110_SDS_v2.0.pdf. I am wondering if the sizes of ROM and RAM from Keil are really correct or it can be changed during the code execution. I really do not know where is the problem in my code and I will be grateful for any advice regarding my problem.

Best regards

Samo

Parents Reply Children
No Data
Related