<?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>Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/128500/modem-crash-with-0x4-while-using-dect-nr-mac-dlc-apis</link><description>Hi everyone, 
 I&amp;#39;m developing a star-topology network using DECT NR+ on nRF9161 DK nodes, running modem firmware mfw-nr+_nrf91x1_2.0.0 (nRF Connect SDK 3.3.0). 
 My issue is a modem crash with error 0x4 on the FT side when it receives a PDU of ~3200 bytes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jul 2026 12:22:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/128500/modem-crash-with-0x4-while-using-dect-nr-mac-dlc-apis" /><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/569632?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2026 12:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d279ff84-7264-4267-8c4d-f066fd3bc901</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for not mentioning it before, our internal 4KB test that succeeded was using the socket-based path with DECT_MTU set to 4096. The direct DLC API (nrf_modem_dect_dlc_data_tx()) is currently not optimized for large SDUs and the modem memory configuration does not support it well. This has been noted internally, however we cannot confirm if or when this will be optimized.&lt;/p&gt;
&lt;p&gt;In the meantime, we would suggest switching to the socket-based approach or continuing with your current workaround of reducing the PDU size. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/569555?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2026 09:20:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ccab0ba-c89f-475e-a6b2-148a4660f393</guid><dc:creator>0x41</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve changed DECT_MTU as suggested. I have same crash, with non-socket based communication.&lt;br /&gt;&lt;br /&gt;nrf_modem: Modem has crashed, reason 0x4, PC: 0x561bc&lt;br /&gt;&lt;br /&gt;Kind Regards,&lt;br /&gt;Alessandro&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/569493?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2026 07:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f25d2fd8-58a7-4748-8a93-26797bdf571e</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;I would like to update that&amp;nbsp;our team managed to send 4KB with the&amp;nbsp;modified ncs dect nr+ stack&amp;nbsp;by changing DECT_MTU to 4096. Can you try changing it and see if it helps. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/569244?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2026 12:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1e9831b-f0cb-41de-9d97-6d6f17ef58cd</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Thanks for confirming. We will surely get back to you on our findings soon. Appreciate your cooperation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/569243?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2026 12:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3b7dc8e-57fd-4040-b77a-eae459853571</guid><dc:creator>0x41</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Holidays are holidays, and they&amp;#39;re saints.&lt;br /&gt;&lt;br /&gt;However in my application I proceeded to reduce the single data pdu length and continue the development, but I will available to test different configuration if this can help you and future developers.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;&amp;quot;In the meantime can you confirm that&amp;nbsp;in your original setup (using nrf_modem_dect_dlc_data_tx() with ~3200 bytes) you have also tried it with disabling modem trace as well. As till now we identified that the modem runs out of internal memory blocks during tracing of the large received SDU. &amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Yes, initially I&amp;#39;ve encountered the crash without modem trace enabled.&lt;br /&gt;&lt;br /&gt;Kind Regards,&lt;br /&gt;Alessandro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/569239?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2026 10:44:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68d55a11-5730-439e-8739-454711473cac</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for trying that out and for the detailed feedback.&lt;/p&gt;
&lt;p&gt;You&amp;#39;re right that NCS samples (dect_shell, hello_dect) are limited to 1280 bytes (DECT_MTU), so they can&amp;#39;t reproduce the issue. I believe our internal 4KB test used some modifications, so I have reached out to&amp;nbsp;internal team and will share more details on that after receiving their response. However just to inform that it could take some time as some of our resources are out of office due to summer break.&lt;/p&gt;
&lt;p&gt;In the meantime can you confirm that&amp;nbsp;in your original setup (using nrf_modem_dect_dlc_data_tx() with ~3200 bytes) you have also tried it with disabling modem trace as well. As till now we identified that the modem runs out of internal memory blocks during tracing of the large received SDU.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/569189?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2026 10:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b629b5f4-60a4-4239-ba7f-e3697e67d908</guid><dc:creator>0x41</dc:creator><description>&lt;p&gt;Hi, sorry for the response delay.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;First of all, thanks for keeping me updated.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried with nordic samples, the first tried is dect_shell, in which I&amp;#39;m not able to send and succesfully receive data higher than 1280 bytes, so nothing bigger than DECT_MTU.&lt;br /&gt;After inspecting l2_shell source code, it&amp;#39;s clear that maximum data to send/receive is equal to DECT_MTU. Same for hello_dect sample.&lt;br /&gt;&lt;br /&gt;In&amp;nbsp;&amp;lt;skd_home&amp;gt;/nrf/subsys/net/lib/dect/l2_shell/src/dect_l2_shell.c&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;

#define DECT_TX_CMD_MAX_SEND_DATA_LEN DECT_MTU
...
recv_len = zsock_recvfrom(dect_shell_rx_sockfd, rx_data_buf, DECT_MTU, 0,
(struct sockaddr *)&amp;amp;src, &amp;amp;fromlen);

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see modem crash by the way.&lt;br /&gt;How do you manage to send 4KB with socket-based stack?&lt;br /&gt;&lt;br /&gt;Kind Regards,&lt;br /&gt;Alessandro.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/568918?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2026 15:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d23555ad-7e20-45ef-8935-2b890d11739f</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for waiting. We can see that the modem crashes when it runs out of large internal memory blocks while processing the received large SDU.&lt;/p&gt;
&lt;p&gt;On our side, data up to 4KB went through successfully using the NCS DECT NR+ stack. We understand you need DLC segmentation directly, but&amp;nbsp;is it possible for you to try NCS DECT NR+ socket-based stack to confirm the issue doesn&amp;#39;t occur there? It uses the same DLC layer internally.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/568442?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2026 17:24:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:146d0eff-4a1d-4e5a-b942-f2b644418e72</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Okay, We understand it. Thanks I will keep you updated on it.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/568436?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2026 14:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7943ca5b-b516-4358-9a2d-5e54ec231b93</guid><dc:creator>0x41</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thanks for the update.&lt;br /&gt;The reason is.. my application requirements.&lt;br /&gt;&lt;br /&gt;Since with only PHY (mfw-nr+_nrf91x1_1.1.0) layer it needs in someway to implement a &amp;quot;custom&amp;quot; pdu segmentation/re-assembly algorithm in order to fit data in subslot for bigger data, I was wondering that DLC layer will do this (and it does, as explained in&amp;nbsp;&lt;a href="https://www.etsi.org/deliver/etsi_ts/103600_103699/10363605/01.03.01_60/ts_10363605v010301p.pdf"&gt;DLC layer TS&lt;/a&gt;,&amp;nbsp;it&amp;#39;s also mentioned&amp;nbsp;in &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/hands-on-with-dect-nr-api-release-v2-0"&gt;Hands on with DECT NR+ API release v2.0&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;I know that a possible solution can be to segment data chunks but with this I&amp;#39;m loosing a service provided by the DLC layer.&lt;br /&gt;Also a strange behavior I&amp;#39;ve encountered is that ~2000 bytes chunk is received successfully.&lt;br /&gt;&lt;br /&gt;Kind Regards,&lt;br /&gt;Alessando.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/568432?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2026 14:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13fb9422-82d9-4938-a8cd-a8ccbdfe2409</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Our Team is looking into it, just a question that is there reason&amp;nbsp;for sending big data chunks (as a typical Ethernet MTU is 1500 bytes). Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/568265?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2026 16:52:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaf90430-e118-426a-b024-0e93a440305a</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks a lot for providing the modem trace. It has been forwarded to modem team for deeper investigation. We will respond back to you soon.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/568260?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2026 13:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceee259d-fa14-4382-a64f-c481539dbb97</guid><dc:creator>0x41</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I managed to get a full modem trace + coredump.&lt;br /&gt;I traced with&amp;nbsp;&lt;em&gt;CONFIG_NRF_MODEM_LIB_TRACE_LEVEL_IP_ONLY &lt;/em&gt;, using trace-db 2.2.0 (my mfw is&amp;nbsp;mfw-nr+_nrf91x1_2.0.0) with the help of cellular monitor desktop application with uart trace-backend.&lt;/p&gt;
&lt;p&gt;I attach&amp;nbsp;the full 65KB trace file for the FT device that receives 3300 bytes data, so the modem crash.&lt;br /&gt;The content of pdus are all A.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_5F00_ok.mtrace"&gt;devzone.nordicsemi.com/.../trace_5F00_ok.mtrace&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;King Regards,&lt;br /&gt;Alessandro.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/568180?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2026 10:52:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c29c563-0091-475c-8d43-f52bb0169668</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes you are correct, that&amp;nbsp;CONFIG_NRF_MODEM_LIB_SHMEM_CTRL_SIZE cannot be directly assigned by the user sorry for pointing it out before.&lt;/p&gt;
&lt;p&gt;It would be best if we could get a modem trace to analyze your issue properly, can you tell if you are facing any issues with&amp;nbsp;the trace so we may try to help you on it. Thanks&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/568151?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2026 14:49:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:717adc14-ac20-429c-b9c5-b2068dd0df52</guid><dc:creator>0x41</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thanks for your answer, but maybe is not the point of what I&amp;#39;m looking for,&amp;nbsp;&lt;em&gt;&amp;nbsp;&lt;span&gt;CONFIG_NRF_MODEM_LIB_SHMEM_CTRL_SIZE&amp;nbsp;&lt;/span&gt;&lt;/em&gt;is&amp;nbsp;not directly user assignable&lt;em&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;From .config in build directory it sets to 1832, value found&amp;nbsp;inside&amp;nbsp;&lt;em&gt;&amp;lt;sdk home&amp;gt;/nrfxlib/nrf_modem/Kconfig.&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;In my project I don&amp;#39;t re-define&amp;nbsp;&lt;span&gt;NRF_MODEM_DECT_SHMEM_CTRL_SIZE&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Alessandro.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem crash with 0x4 while using DECT nr+ MAC/DLC APIs</title><link>https://devzone.nordicsemi.com/thread/568148?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2026 14:05:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c9eedff-acae-44ee-b052-46e154541cf8</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes , the error 0x4 is a modem-internal memory management fault, the modem runs out of internal memory during PDU reassembly on the FT side. One thing I would like to mention that the define NRF_MODEM_DECT_PHY_SHMEM_CTRL_SIZE was renamed to NRF_MODEM_DECT_SHMEM_CTRL_SIZE in 3.3.0. If your project still uses the old name, the control region size may get silently ignored so can you please&amp;nbsp;look through all project files and if you find any old name then rename it to NRF_MODEM_DECT_SHMEM_CTRL_SIZE.&lt;/p&gt;
&lt;p&gt;Moreover also ensure&amp;nbsp;CONFIG_NRF_MODEM_LIB_SHMEM_CTRL_SIZE is set to at least 1832.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>