How to Rename nRF5340 Device on Custom PCB with J-Link

Hello,

I have a custom PCB with the nRF5340 chip. I’m able to flash the board using a J-Link. I’d like to rename the device so that it advertises a specific Bluetooth name, which I can then connect to using my Python code. Normally, I rename boards using the nRF Connect Desktop app, but when I try to do this for my board, it shows an error stating that J-Link is not supported for renaming.

How should I go about changing the name on a custom nRF5340 board when using J-Link?

Thanks for any help you can provide.

Parents
  • Hi Hailey,

    You need to change the advertised Bluetooth name by modifying your firmware, then rebuild and reflash your board using J-Link.

    There is no supported method to change the name dynamically via J-Link or the nRF Connect Desktop app for custom boards.

    You could maybe try to update the device name in your application ( in your prj.conf ) or directly in the source code using the Zephyr Bluetooth API.

    Say, you can set the device name in prj.conf:

    CONFIG_BT_DEVICE_NAME="YourNewDeviceName"

    Or you can set it at runtime in your code using:

    bt_set_name("YourNewDeviceName");

    PLease keep in mind when using the bt_Set_name:

    Regards,

    Priyanka

Reply
  • Hi Hailey,

    You need to change the advertised Bluetooth name by modifying your firmware, then rebuild and reflash your board using J-Link.

    There is no supported method to change the name dynamically via J-Link or the nRF Connect Desktop app for custom boards.

    You could maybe try to update the device name in your application ( in your prj.conf ) or directly in the source code using the Zephyr Bluetooth API.

    Say, you can set the device name in prj.conf:

    CONFIG_BT_DEVICE_NAME="YourNewDeviceName"

    Or you can set it at runtime in your code using:

    bt_set_name("YourNewDeviceName");

    PLease keep in mind when using the bt_Set_name:

    Regards,

    Priyanka

Children
No Data
Related