<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to Rename nRF5340 Device on Custom PCB with J-Link</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122994/how-to-rename-nrf5340-device-on-custom-pcb-with-j-link</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Jul 2025 06:52:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122994/how-to-rename-nrf5340-device-on-custom-pcb-with-j-link" /><item><title>RE: How to Rename nRF5340 Device on Custom PCB with J-Link</title><link>https://devzone.nordicsemi.com/thread/542707?ContentTypeID=1</link><pubDate>Thu, 17 Jul 2025 06:52:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6b8a83b-796c-40ab-9d61-fd744bafe64f</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Hailey,&lt;/p&gt;
&lt;p&gt;You&amp;nbsp;need to change the advertised Bluetooth name by modifying your firmware, then rebuild and reflash your board using J-Link.&lt;/p&gt;
&lt;p&gt;There is no supported method to change the name dynamically via J-Link or the nRF Connect Desktop app for custom boards.&lt;/p&gt;
&lt;p&gt;You could maybe try to update the device name in your application (&amp;nbsp;in your prj.conf ) or directly in the source code using the Zephyr Bluetooth API.&lt;/p&gt;
&lt;p&gt;Say, you can set the device name in prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_BT_DEVICE_NAME=&amp;quot;YourNewDeviceName&amp;quot;&lt;/p&gt;
&lt;p&gt;Or&amp;nbsp;&lt;span&gt;you can set it at runtime in your code using:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/zephyr-apis-latest/page/group_bt_gap.html#:~:text=was%20not%20updated.-,%E2%97%86%C2%A0bt_set_name(),-int%20bt_set_name"&gt;bt_set_name(&amp;quot;YourNewDeviceName&amp;quot;);&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;PLease keep in mind when using the bt_Set_name:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1752735154224v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>