nRF5340 - setting public bt address

Hello,

Still on my custom nRF5340 board for a Bluetooth LE peripheral application (building environment: NCS 2.2.0, Zephyr 3.2.99).
The net core is populated with the Zephyr HCI RPMsg sample LE Controller as it is.
I don't want to change it if possible.

The problem is how to move from working random address to public address for advertising ?
I've found a couple of functions around, namely bt_ctlr_set_public_addr() and sdc_hci_cmd_vs_zephyr_write_bd_addr(). However, for a reason or another things mess up.

To start clean, and depending on my case of use, can anyone pass a recipe in terms of

1. API name
2. prj.conf configs
3. include file(s)

Thank you very much

Related