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

Setting the BLE Public Address on nRF5340

I am trying to set the public ble mac address from the application core of a nRF5340, I understand that I need to use bt_ctlr_set_public_addr() but I can't seem to get my project to compile when I include bluetooth/controller.h, due to the source file that defines bt_ctlr_set_public_addr() not being added to the project. I am using the SoftDevice currently that is CONFIG_BT_LL_SOFTDEVICE. So my question is what configurations do I need to set to make this work? I have also been thinking that it might be that it is only possible to use the function from the network core, if this is the case then where do I find the source so that I can make the changes that I need or should I instead of change the source use rpc?

If I forgot to mention something important then I apologise in advance.

Parents Reply
  • Hi,

    I have asked our developers for a clarification about this. Since the function bt_ctlr_set_public_addr() is part of the controller API, it should be called in the application running on the network core, HCI RPMsg, and not the application core. So unfortunately you cannot use this from the application core. They are going to check if there are other ways to change the public address on nRF5340. I will let you know when I hear back from them.

    Best regards,

    Marte

Children
Related