<?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>Issue in building the network core hex file for BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127609/issue-in-building-the-network-core-hex-file-for-ble</link><description>I am getting issue in building the network core hex file for BLE. I am performing peripheral NUS example with MTU 247 max payload with data length extention. But I am getting error in data length update. Also after erasing nrf5340 in programmer bt enable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Mar 2026 14:26:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127609/issue-in-building-the-network-core-hex-file-for-ble" /><item><title>RE: Issue in building the network core hex file for BLE</title><link>https://devzone.nordicsemi.com/thread/564202?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2026 14:26:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08a602d3-db7e-4f1c-89cc-e96f6f21170c</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;Also I tried to flashed the code in nrf but i am getting error in flashing. Error: One or more batch tasks failed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;1050036731: Device error: NVMC erase page failed: Memory access error at 0x01001800. Probably a memory protection issue. Probe access is Secure (Generic)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;FATAL ERROR: command exited with status 1: nrfutil --json device x-execute-batch --batch-path &amp;#39;C:\nordic_projects\bap_unicast_server\build\hci_ipc\zephyr\generated_nrfutil_batch.json&amp;#39; --serial-number 1050036731&lt;/p&gt;[/quote]
&lt;p&gt;What is logged before this error? Have you tried to recover your device? &amp;quot;Probe access is Secure&amp;quot; usually means that APPROTECT is enabled for the device.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;I am getting issue in building the network core hex file for BLE. I am performing peripheral NUS example with MTU 247 max payload with data length extention. But I am getting error in data length update. Also after erasing nrf5340 in programmer bt enable error is occurred ie. -11.&lt;/p&gt;
&lt;p&gt;err = bt_enable(NULL); if (err) { printk(&amp;quot;Bluetooth init failed (%d)\n&amp;quot;, err); return err; }&lt;/p&gt;[/quote]
&lt;p&gt;You are mentioning peripheral NUS example, but in the project path above you are using bap_unicast_server. Could you share how you added NUS to the bap_unicast_server sample?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As a possible starting point you could check if you are calling any of the Bluetooth APIs before Bluetooth is ready. -EAGAIN is a common return value for APIs to use to signal that Bluetooth is not ready.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;My final purpose is to enable data length extention to 251 max payload in network core for high speed.&lt;/p&gt;
&lt;p&gt;struct bt_conn_le_phy_param phy = { .options = BT_CONN_LE_PHY_OPT_NONE, .pref_rx_phy = BT_GAP_LE_PHY_2M, .pref_tx_phy = BT_GAP_LE_PHY_2M, }; ret = bt_conn_le_phy_update(conn, &amp;amp;phy); printk(&amp;quot;PHY update ret=%d\n&amp;quot;, ret);&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;code&gt;struct bt_conn_le_data_len_param data_len = {
    .tx_max_len = 251,
    .tx_max_time = 2120,
};
ret = bt_conn_le_data_len_update(conn, &amp;amp;data_len);
printk(&amp;quot;Data len update ret=%d\n&amp;quot;, ret);&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;But I am getting error in Data len update ret=-5.&lt;/p&gt;[/quote]
&lt;p&gt;Here I am not quite sure where to start. But you could maybe try to select the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_BT_USER_DATA_LEN_UPDATE"&gt;CONFIG_BT_USER_DATA_LEN_UPDATE&lt;/a&gt; symbol for your application (and the network image).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>