<?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>Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114489/migrating-mqtt-sample-to-a-custom-board</link><description>Hi, 
 I have successfully built and ran the MQTT sample ( /opt/nordic/ncs/v2.7.0/nrf/samples/net/mqtt) on the nRF9160-DK. I did have a few problems with SIM coverage and firmware versions which was sorted in this ticket. 
 
 I would now like to move this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Nov 2024 13:53:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114489/migrating-mqtt-sample-to-a-custom-board" /><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/512150?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 13:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ccfac38-5e0f-476d-8092-94466f167ce5</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;I have tried building with and without TLS&lt;/p&gt;
&lt;p&gt;I have tried this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build --pristine -b nrf9160dk_nrf9160_ns -- -DEXTRA_CONF_FILE=overlay-tls-nrf91.conf -DDTC_OVERLAY_FILE=./boards/my_board.overlay&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build --pristine -b nrf9160dk_nrf9160_ns -- -DDTC_OVERLAY_FILE=./boards/my_board.overlay&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am using vs2.8.0 and have tried both version 1.3.6 and 1.3.7 firmware.&lt;/p&gt;
&lt;p&gt;I have gone back to 1.3.6 and rebuilt. and it appears to be working! Here is my trace file.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Test_2D00_26_5F00_11_5F00_24.pcapng"&gt;devzone.nordicsemi.com/.../Test_2D00_26_5F00_11_5F00_24.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/511974?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 17:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19ada4bc-de95-411b-b077-2867daca68b2</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Rod,&lt;br /&gt;&lt;br /&gt;Is provided log from working board?&lt;br /&gt;&lt;br /&gt;I have tested unmodified MQTT sample in NCS v2.8.0 on the nrf9160-dk without additional overlay files and I got the log shown below.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
*** Using Zephyr OS v3.7.99-0bc3393fb112 ***
[00:00:00.293,273] &amp;lt;inf&amp;gt; network: Bringing network interface up and connecting to the network
[00:00:00.529,693] &amp;lt;inf&amp;gt; nrf_modem_lib_trace: Trace thread ready
[00:00:00.537,322] &amp;lt;inf&amp;gt; nrf_modem_lib_trace: Trace level override: 2
+CEREG: 2,&amp;quot;816C&amp;quot;,&amp;quot;03138801&amp;quot;,7
+CSCON: 1
+CGEV: ME PDN ACT 0
%MDMEV: SEARCH STATUS 2
+CEREG: 1,&amp;quot;816C&amp;quot;,&amp;quot;03138801&amp;quot;,7,,,&amp;quot;00001010&amp;quot;,&amp;quot;11000001&amp;quot;
[00:00:02.594,238] &amp;lt;inf&amp;gt; network: Network connectivity established
+CGEV: IPV6 0
[00:00:08.326,416] &amp;lt;inf&amp;gt; transport: Connected to MQTT broker
[00:00:08.326,477] &amp;lt;inf&amp;gt; transport: Hostname: test.mosquitto.org
[00:00:08.326,507] &amp;lt;inf&amp;gt; transport: Client ID: 351358811129656
[00:00:08.326,538] &amp;lt;inf&amp;gt; transport: Port: 1883
[00:00:08.326,568] &amp;lt;inf&amp;gt; transport: TLS: No
[00:00:08.326,599] &amp;lt;inf&amp;gt; transport: Subscribing to: 351358811129656/my/subscribe/topic
[00:00:08.593,536] &amp;lt;inf&amp;gt; transport: Subscribed to topic 351358811129656/my/subscribe/topic
+CSCON: 0
[00:01:00.303,436] &amp;lt;inf&amp;gt; transport: Published message: &amp;quot;Hello MQTT! Current uptime is: 60294&amp;quot; on topic: &amp;quot;351358811129656/my/publish/topic&amp;quot;
%MDMEV: SEARCH STATUS 2
+CSCON: 1
+CSCON: 0
[00:02:00.303,680] &amp;lt;inf&amp;gt; transport: Published message: &amp;quot;Hello MQTT! Current uptime is: 120294&amp;quot; on topic: &amp;quot;351358811129656/my/publish/topic&amp;quot;
%MDMEV: SEARCH STATUS 2
+CSCON: 1
+CSCON: 0
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;There is a difference in our logs regarding TLS. Your log shows &amp;quot;&amp;lt;inf&amp;gt; transport: TLS: Yes&amp;quot;. Which NCS version did you use for the latest testing and how did you build the sample&lt;span&gt;?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="RodWatt"]I have flashed both boards with the latest modem firmware.[/quote]
&lt;p&gt;You mentioned previously that you used modem firmware v1.3.6. However, the most recent version is &lt;a href="https://www.nordicsemi.com/Products/nRF9160/Download#infotabs"&gt;v1.3.7&lt;/a&gt;. Are your boards&amp;nbsp;flashed with modem firmware v1.3.6 or v1.3.7?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/511682?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2024 14:10:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb722e81-44d5-4684-984b-e7fd8a06f2c5</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;I am running the &amp;quot;standard mqtt sample&amp;quot;, (nrf/samples/net/mqtt) unmodified; so have not touched the code. It runs fine on the nRF9160DK board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried another one of my boards and it seems to work, although I cant see any traces on the UART on the second board. This is what I see on the serial terminal.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.721,435] &amp;lt;inf&amp;gt; nrf_modem_lib_trace: Trace thread ready
[00:00:00.722,595] &amp;lt;inf&amp;gt; nrf_modem_lib_trace: Trace level override: 2
[00:00:00.724,426] &amp;lt;err&amp;gt; lte_lc: Could not send AT command, error: 65536
[00:00:00.724,456] &amp;lt;err&amp;gt; lte_lc: Failed to set system mode and mode preference, err -14
[00:00:02.118,682] &amp;lt;wrn&amp;gt; nrf_modem_lib_netif: lte_lc_modem_events_enable, error: -14
+CEREG: 2,&amp;quot;01B0&amp;quot;,&amp;quot;0928D982&amp;quot;,7,0,0,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;
[00:00:16.853,210] &amp;lt;wrn&amp;gt; lte_lc: Registration rejected, EMM cause: 0, Cell ID: 153672066, Tracking area: 432, LTE mode: 7
+CSCON: 1
+CGEV: ME PDN ACT 0,0
+CNEC_ESM: 50,0
+CEREG: 1,&amp;quot;01B0&amp;quot;,&amp;quot;0928D982&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;
[00:00:19.289,672] &amp;lt;inf&amp;gt; network: Network connectivity established
+CSCON: 0
+CSCON: 1
+CSCON: 0
+CSCON: 1
[00:00:45.602,630] &amp;lt;inf&amp;gt; transport: Connected to MQTT broker
[00:00:45.602,691] &amp;lt;inf&amp;gt; transport: Hostname: test.mosquitto.org
[00:00:45.602,722] &amp;lt;inf&amp;gt; transport: Client ID: 352656100493439
[00:00:45.602,722] &amp;lt;inf&amp;gt; transport: Port: 8883
[00:00:45.602,752] &amp;lt;inf&amp;gt; transport: TLS: Yes
[00:00:45.602,813] &amp;lt;inf&amp;gt; transport: Subscribing to: 352656100493439/my/subscribe/topic
[00:00:46.262,634] &amp;lt;inf&amp;gt; transport: Subscribed to topic 352656100493439/my/subscribe/topic
[00:00:46.606,658] &amp;lt;inf&amp;gt; transport: Published message: &amp;quot;Hello MQTT! Current uptime is: 46605&amp;quot; on topic: &amp;quot;352656100493439/my/publish/topic&amp;quot;
[00:00:46.627,716] &amp;lt;inf&amp;gt; transport: Published message: &amp;quot;Hello MQTT! Current uptime is: 46626&amp;quot; on topic: &amp;quot;352656100493439/my/publish/topic&amp;quot;
[00:00:46.640,441] &amp;lt;inf&amp;gt; transport: Published message: &amp;quot;Hello MQTT! Current uptime is: 46639&amp;quot; on topic: &amp;quot;352656100493439/my/publish/topic&amp;quot;
[00:00:46.653,015] &amp;lt;inf&amp;gt; transport: Published message: &amp;quot;Hello MQTT! Current uptime is: 46651&amp;quot; on topic: &amp;quot;352656100493439/my/publish/topic&amp;quot;
[00:00:46.664,398] &amp;lt;inf&amp;gt; transport: Published message: &amp;quot;Hello MQTT! Current uptime is: 46663&amp;quot; on topic: &amp;quot;352656100493439/my/publish/topic&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, summarise.&lt;/p&gt;
&lt;p&gt;When i run the code on one of my boards, i get a trace on UART0 but the board does not connect to the network.&lt;/p&gt;
&lt;p&gt;When i run the same code on another board, (exact same hardware, same code, same SIM card etc). It does connect but I do not see a trace.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have flashed both boards with the latest modem firmware.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Apart from the possibility of a hardware fault, is there anything else i am missing?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/510280?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 12:27:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7dacd7c-a2a6-4fd5-9c0a-30e175757786</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Rod,&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/mob_termination_ctrl_status/xsystemmode_set.html"&gt;AT%XSYSTEMMODE&lt;/a&gt;&amp;nbsp;command is allowed only before activating the modem using AT+CFUN=1. Before changing the system mode, you could try to put the modem in a required state using AT+CFUN=0 (or AT+CFUN=4).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/509734?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2024 18:41:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b09d2998-228f-437a-9210-2d78d0135511</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Rod,&lt;br /&gt;&lt;br /&gt;I will look into this during next week.&lt;br /&gt;I expect to get back to you by the end of next week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/509499?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 15:14:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7ce2d8a-fc9e-4c7c-96e7-fd502cc4b120</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;I am running the latest, 1.3.6.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Test_2D00_nov7.pcapng"&gt;devzone.nordicsemi.com/.../Test_2D00_nov7.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/509496?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 15:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e347689-9c28-4f8f-b8ea-5f4b2c50d365</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Rod,&lt;br /&gt;&lt;br /&gt;What is your current modem firmware version?&lt;br /&gt;&lt;br /&gt;When I compare your trace file with the trace file for nrf9160-dk, there seem to be no connection procedure or attachment attempt in your log. Can you take a longer modem trace which would potentially show that?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/509419?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 11:08:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dd0bb70-1b15-4471-b887-833a41ae3b0c</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;Yes, still getting the same error.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using ZK OS v3.6.99-100befc70c74 ***
[00:00:00.404,541] &amp;lt;ifrݽɭ: Bringing network interface up and connecting to the Sݽɭm[0m
[00:00:00.405,151] &amp;lt;dbg&amp;gt; mqtt_helper: mqtt_stae5: State transition: MQTT_STATE_UNINIT --&amp;gt; MQTT_STATE_DISCONECTED
[00:00:00.435,607] &amp;lt;dbg&amp;gt; mqtt_helper: mqtt_helper_poll_loop:aiting for connection_poll_sem
[00:00:00.633,056] &amp;lt;i&amp;gt; nrf_modem_lib_trace: Trace thread ready
[00:00:00.640,3NW&amp;lt;inf&amp;gt; nrf_modem_lib_trace: Trace level override: 2
A҂҂r41,937] &amp;lt;err&amp;gt; lte_lc: Could not send AT command, error: 65536
[00:00:00.641,967] &amp;lt;err&amp;gt; lte_lc: Failed to set system mode and mode preference, err -14&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards, Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/509044?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2024 08:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf6fc704-ae46-4e1b-a577-ecd9d84aff7c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Rod,&lt;br /&gt;&lt;br /&gt;Do you still get the same error in the application log (shown below)?&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;err&amp;gt; lte_lc: Could not send AT command, error: 65536
&amp;lt;err&amp;gt; lte_lc: Failed to set system mode and mode preference, err -14
&lt;/pre&gt;&lt;br /&gt;If there is any difference, please provide new application log.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/508982?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2024 14:58:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64892466-29fc-4e6e-b746-b5f68731cdaa</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I started again with a clean build, refreshed modem firmware etc. I also enabled&amp;nbsp;the RTS/CTS signals on the trace port and am now seeing some traces.&lt;/p&gt;
&lt;p&gt;&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/pastedimage1730732001625v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&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/pastedimage1730732232241v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6811.test.pcapng"&gt;devzone.nordicsemi.com/.../6811.test.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/507880?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2024 09:13:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c916f8e-86c6-48df-b5c8-ea858cf126f8</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Rod,&lt;br /&gt;&lt;br /&gt;Here are some discussions related to the same/similar problem:&lt;br /&gt;-&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/103452/00-00-00-572-937-lte_lc-could-not-send-at-command-error-65536-00-00-00-572-967-lte_lc-could-not-set-system-mode-error--14"&gt;LTE LC cannot send AT commands&lt;/a&gt;&lt;br /&gt;-&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107998/error-switching-lte-to-lte-gps-nrf9160"&gt;error switching LTE to LTE GPS&lt;/a&gt;&lt;br /&gt;-&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110430/lte_lc_func_mode_set-lte_lc_func_mode_activate_gnss-fails"&gt;lte_lc_func_mode_set() fails&lt;/a&gt;&lt;br /&gt;-&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110589/fatal-error-when-using-nb-iot-and-initialization-gnss"&gt;fatal error using NB-IoT with GNSS&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;Regarding modem trace, you can find more information in&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/lessons/lesson-7-cellular-fundamentals/"&gt;Debugging with modem trace&lt;/a&gt;. Sending traces over RTT needs to be enabled using&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_RTT"&gt;CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_RTT&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I hope that at least some of above-mentioned links can be helpful to you.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/507696?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 09:06:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f9011bc-4e58-4845-953f-11075299b1f7</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;I tried RTT previously and could get that to work either, Do I need to use the RTS/CTS signals for flow control?&lt;/p&gt;
&lt;p&gt;We started down this route to address the initial error of&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;lte_lc: Could not send AT command, error: 65536&lt;/p&gt;
&lt;p&gt;Failed to set system mode and mode preference, err -14&lt;/p&gt;
&lt;p&gt;Do you have any suggestions on how i can address these, without having the trace files?&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/507692?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 08:47:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:302008fe-7772-471c-99cc-c2a40c79dc1e</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Rod,&lt;br /&gt;&lt;br /&gt;Your trace file seems to be empty. As I mentioned previously, you could try to use RTT instead of UART and do&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html#modem_tracing_with_rtt"&gt;tracing with RTT&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/507619?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 15:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:178f64d7-785c-4632-b22f-ac0f39054720</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;To answer your questions.&lt;/p&gt;
&lt;p&gt;Can you send your latest trace file so that I can also try to open it?&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; Attatched below.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2024_2D00_10_2D00_23T14_2D00_53_2D00_28.874Z.mtrace"&gt;devzone.nordicsemi.com/.../trace_2D00_2024_2D00_10_2D00_23T14_2D00_53_2D00_28.874Z.mtrace&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;What happens when you switch to some older NCS version? Is tracing successful?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; I get the same error/lack of packets&lt;br /&gt;&lt;br /&gt;&lt;span&gt;You could try choosing &amp;quot;Autoselect&amp;quot; for modem trace database.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; The window pops up and sits for ages&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/pastedimage1729695659359v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Can you double check that you tried to open correct mtrace file?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt; Yes, I am using the correct file.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Have you tried to use snippets to enable traces as it was suggested by Charlie previously?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt;&amp;gt;&amp;gt; Yes, I tried that too.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Rod&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/507299?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 09:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b986042e-3ab8-4452-9c57-93b8c2f358e0</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Rod,&lt;br /&gt;&lt;br /&gt;Can you send your latest trace file so that I can also try to open it?&lt;br /&gt;&lt;br /&gt;What happens when you switch to some older NCS version? Is tracing successful?&lt;br /&gt;&lt;br /&gt;You could try choosing &amp;quot;Autoselect&amp;quot; for modem trace database.&lt;br /&gt;&lt;br /&gt;Can you double check that you tried to open correct mtrace file?&lt;br /&gt;&lt;br /&gt;Have you tried to use snippets to enable traces as it was suggested by Charlie previously?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/507192?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 15:56:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5e00cdc-089e-4105-8552-60fa58d7ffc1</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;In the process of moving to UART0, I noticed an error in my overlay file which I have now corrected. (I labeled the pins a xx_default_alt and listed the names as xxx_default, without the _alt)&lt;/p&gt;
&lt;p&gt;I am now able to generate a .mtrace file.&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/pastedimage1729524690462v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, it doesn&amp;#39;t open in waveshark which reports no packets&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/pastedimage1729524768608v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;my prj.conf file is as follows&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# General
CONFIG_HW_ID_LIBRARY=y
CONFIG_ASSERT=y

# Logging
CONFIG_LOG=y
CONFIG_MQTT_HELPER_LOG_LEVEL_DBG=y

# Networking
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_NET_SOCKETS=y
CONFIG_POSIX_API=y
CONFIG_NET_IPV4=y
CONFIG_NET_TCP=y
CONFIG_NET_NATIVE=y
CONFIG_NET_CONNECTION_MANAGER=y

# ZBus
CONFIG_ZBUS=y

# Zephyr state framework
CONFIG_SMF=y

# MQTT
CONFIG_MQTT_HELPER=y
CONFIG_MQTT_CLEAN_SESSION=y

CONFIG_MQTT_SAMPLE_TRANSPORT_BROKER_HOSTNAME=&amp;quot;test.mosquitto.org&amp;quot;
#CONFIG_MQTT_SAMPLE_TRANSPORT_BROKER_HOSTNAME=&amp;quot;192.168.1.124&amp;quot;

CONFIG_MQTT_SAMPLE_TRANSPORT_CLIENT_ID=&amp;quot;SeaHorse_Test_Data&amp;quot;
CONFIG_MQTT_SAMPLE_TRANSPORT_PUBLISH_TOPIC=&amp;quot;publish/topic&amp;quot;
CONFIG_MQTT_SAMPLE_TRANSPORT_SUBSCRIBE_TOPIC=&amp;quot;subscribe/topic&amp;quot;

#Modem Trace
#CONFIG_NRF_MODEM_LIB_TRACE=y
#CONFIG_AT_HOST_LIBRARY=y

CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_UART_ZEPHYR=y

CONFIG_UART_ASYNC_API=y
CONFIG_SERIAL=y

#UART Trace
CONFIG_USE_SEGGER_RTT=n
CONFIG_RTT_CONSOLE=n
CONFIG_UART_CONSOLE=y
CONFIG_LOG_BACKEND_RTT=n
CONFIG_LOG_BACKEND_UART=y

# UART configuration
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_UART_1_ASYNC=y
CONFIG_UART_1_INTERRUPT_DRIVEN=n

# Power management
CONFIG_PM_DEVICE=y

# TFM logging over uart1
CONFIG_TFM_LOG_LEVEL_SILENCE=n
CONFIG_TFM_SECURE_UART1=y
CONFIG_TFM_SECURE_UART_SHARE_INSTANCE=y
CONFIG_TFM_EXCEPTION_INFO_DUMP=y
CONFIG_TFM_SPM_LOG_LEVEL_DEBUG=y

# General
CONFIG_HW_STACK_PROTECTION=y
CONFIG_HW_ID_LIBRARY_SOURCE_IMEI=y
CONFIG_PICOLIBC=y
CONFIG_DK_LIBRARY=y
CONFIG_AT_HOST_LIBRARY=y

# Modem trace
CONFIG_NRF_MODEM_LIB_TRACE=y
CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_UART=y
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y

CONFIG_UART_0_ASYNC=y
CONFIG_UART_0_INTERRUPT_DRIVEN=n

# Disable Duplicate Address Detection (DAD)
# due to not being properly implemented for offloaded interfaces.
CONFIG_NET_IPV6_NBR_CACHE=n
CONFIG_NET_IPV6_MLD=n

# Zephyr NET Connection Manager and Connectivity layer.
CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=1024
CONFIG_NRF_MODEM_LIB_NET_IF=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/506946?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2024 13:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4b33730-cfaa-4373-861d-ac3e54a2ed3b</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Rod,&lt;br /&gt;&lt;br /&gt;You could try to redirect your traces to UART0 and see if this has any effect. If you choose to do so, you need to replace instances of uart1 (as it is shown in the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html#sending_traces_over_uart_on_a_custom_board"&gt;sending traces over UART&lt;/a&gt; section) with uart0. Then your&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-1.3.2/page/nrf/applications/serial_lte_modem/README.html#terminal_connection"&gt;terminal connection&lt;/a&gt;&amp;nbsp;could go to uart1. If UART tracing is for some reason not possible or you have only one UART available on your custom board, you can try to do&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html#modem_tracing_with_rtt"&gt;tracing with RTT&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/506733?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 13:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca53d1ce-2574-4ff1-8460-143751083d83</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;I started by trying this process using the nRF9169DK board&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/pastedimage1729169274727v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I produced this trace file&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2024_2D00_10_2D00_17T12_2D00_47_2D00_05.939Z.mtrace"&gt;devzone.nordicsemi.com/.../trace_2D00_2024_2D00_10_2D00_17T12_2D00_47_2D00_05.939Z.mtrace&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;which opened automatically in Waveshark.&lt;/p&gt;
&lt;p&gt;&lt;img height="292" src="https://devzone.nordicsemi.com/resized-image/__size/704x584/__key/communityserver-discussions-components-files/4/pastedimage1729169295640v2.png" width="352" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I noticed that I was unable to subsequently open the same file in Waveshark but had to open the file that had been saved in Waveshark.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf9160_5F00_WS.pcapng"&gt;devzone.nordicsemi.com/.../nrf9160_5F00_WS.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Anyway, this seems to work OK.&lt;/p&gt;
&lt;p&gt;I then tried this on my own board using the same process and this is where i see problems.&lt;/p&gt;
&lt;p&gt;Although I seem to be generating a .mtrace file, Waveshark reports no data.&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/pastedimage1729170799843v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Im guessing I have something wrong with my UART set up?&lt;/p&gt;
&lt;p&gt;This is my overlay file&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
   chosen {
      nordic,modem-trace-uart = &amp;amp;uart1;
   };
};

&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt; 115200 &amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
   	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
   	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	/delete-property/ rts-pin;
	/delete-property/ cts-pin;
};

/* Enable uart1 for tracing. */


&amp;amp;uart1 {
   	status = &amp;quot;okay&amp;quot;;
   	current-speed = &amp;lt;1000000&amp;gt;;
   	pinctrl-0 = &amp;lt;&amp;amp;uart1_default_alt&amp;gt;;
   	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep_alt&amp;gt;;
   	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	/delete-property/ rts-pin;
	/delete-property/ cts-pin;
};


&amp;amp;pinctrl {
	uart0_default: uart0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 6)&amp;gt;, &amp;lt;NRF_PSEL(UART_RX, 0, 7)&amp;gt;;
		};
	};

	uart0_sleep: uart0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 6)&amp;gt;, &amp;lt;NRF_PSEL(UART_RX, 0, 7)&amp;gt;;
			low-power-enable;
		};
	};
};

&amp;amp;pinctrl {
	uart1_default_alt: uart1_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 0, 14)&amp;gt;;
			bias-pull-up;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 13)&amp;gt;;
		};
	};

	uart1_sleep_alt: uart1_sleep_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 14)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 13)&amp;gt;;
			low-power-enable;
		};
	};
};

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/506037?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 09:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b168a7cf-6ac8-4d6a-a988-c1ea1114028a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Rod,&lt;br /&gt;&lt;br /&gt;You might not have taken traces correctly or somehow trace file got corrupted. Can you try to do it again?&amp;nbsp;Please have a look at instructions on&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/lessons/lesson-7-cellular-fundamentals/topic/lesson-7-exercise-1/"&gt;how to capture modem trace&lt;/a&gt;&amp;nbsp;in our Cellular IoT Fundamentals course. It should be possible to upload file in mtrace format.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/505867?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 10:47:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02a77737-24bd-4ca2-b2e3-e7d18f8a1cff</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;Sorry for the delay in getting back to you, i have been on holiday.&lt;/p&gt;
&lt;p&gt;I have tried to open the file in Wireshark and am unable too. To check, i had a look at other .mtrace files that others have uploaded and tried the trace file on this ticket.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110529/stuck-lte-connection/482538"&gt;RE: STUCK LTE Connection&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was unable to open that file.&lt;/p&gt;
&lt;p&gt;When i look at the types of files that Wireshark open, i dont see .mtrace ?&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/pastedimage1728643568486v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Do i need to create a different type of trace? How do &amp;nbsp;do that?&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/504206?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2024 14:25:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cd49cbe-85aa-4e4b-9a93-9d32305555b9</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Rod,&lt;br /&gt;&lt;br /&gt;I am not able to open your provided trace file. Are you able to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-cellularmonitor/page/wireshark.html#open-trace-file-in-wireshark"&gt;open trace file in Wireshark&lt;/a&gt;&amp;nbsp;on your end?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/502962?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 14:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e09f6dbf-d701-4031-8e35-1eda4239ea3d</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the pointers. I have updated my overlay file as below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
   chosen {
      nordic,modem-trace-uart = &amp;amp;uart1;
   };
};

&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt; 115200 &amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
   	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
   	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	/delete-property/ rts-pin;
	/delete-property/ cts-pin;
};

/* Enable uart1 for tracing. */


&amp;amp;uart1 {
   	status = &amp;quot;okay&amp;quot;;
   	current-speed = &amp;lt;1000000&amp;gt;;
   	pinctrl-0 = &amp;lt;&amp;amp;uart1_default_alt&amp;gt;;
   	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep_alt&amp;gt;;
   	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	/delete-property/ rts-pin;
	/delete-property/ cts-pin;
};


&amp;amp;pinctrl {
	uart0_default: uart0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 6)&amp;gt;, &amp;lt;NRF_PSEL(UART_RX, 0, 7)&amp;gt;;
		};
	};

	uart0_sleep: uart0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 6)&amp;gt;, &amp;lt;NRF_PSEL(UART_RX, 0, 7)&amp;gt;;
			low-power-enable;
		};
	};
};

&amp;amp;pinctrl {
	uart1_default_alt: uart1_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 0, 14)&amp;gt;;
			bias-pull-up;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 13)&amp;gt;;
		};
	};

	uart1_sleep_alt: uart1_sleep_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 14)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 13)&amp;gt;;
			low-power-enable;
		};
	};
};

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Which has enabled me to see output on my terminal,&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/pastedimage1726670212076v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;and looks like trace is working.&amp;nbsp;&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/pastedimage1726670291120v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is my trace file.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2024_2D00_09_2D00_18T14_2D00_24_2D00_19.592Z.mtrace"&gt;devzone.nordicsemi.com/.../trace_2D00_2024_2D00_09_2D00_18T14_2D00_24_2D00_19.592Z.mtrace&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/502753?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 12:07:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cba502b-76a5-4c55-915b-4e5a79d8d74c</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Rod,&lt;/p&gt;
&lt;p&gt;Let me explain the setup in the original sample to help you understand your custom board setting.&lt;/p&gt;
&lt;p&gt;nrf/snippets/nrf91-modem-trace-uart/modem-trace-uart.overlay is used when modem trace is enabled in the official sample. It uses &lt;strong&gt;uart1 for modem trace.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The default SLM sample use uart0 for terminal communication and uart1 for TF-M log output, so you need to use&amp;nbsp;nrf/snippets/tfm-enable-share-uart/overlay-tfm-enable-share-uart.conf to make TF-M use uart0 as well when modem trace through uart1 is enabled.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/device_guides/nrf91/nrf91_snippet.html#tfm-enable-share-uart"&gt;Snippets for an nRF91 Series device (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html#sending_traces_over_uart_on_a_custom_board"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html#sending_traces_over_uart_on_a_custom_board&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above overly you have shared is trying to switch uart1 and uart0 functions, you need to copy&amp;nbsp;&lt;span&gt;nrf/snippets/nrf91-modem-trace-uart/modem-trace-uart.overlay&amp;nbsp;here and replace uart1 with uart0 for modem trace collection.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/502658?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 20:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e5cf1cf-1b25-4207-8516-9b1c0968f2dc</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;No, I didn&amp;#39;t manage to get the trace to work.&lt;/p&gt;
&lt;p&gt;I tried the serial LTE example,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		ncs,slm-uart = &amp;amp;uart1;
	};
};

&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	hw-flow-control;
};

&amp;amp;uart1 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	status = &amp;quot;okay&amp;quot;;

	pinctrl-0 = &amp;lt;&amp;amp;uart1_default_alt&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep_alt&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};



&amp;amp;i2c2 {
	status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;pinctrl {
	uart1_default_alt: uart1_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 0, 7)&amp;gt;;
			bias-pull-up;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 6)&amp;gt;;
		};
	};

	uart1_sleep_alt: uart1_sleep_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 6)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 7)&amp;gt;;
			low-power-enable;
		};
	};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am using my own overlay file, above to redirect the serial. terminal.&lt;/p&gt;
&lt;p&gt;Im getting this as an output&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;All pins have been configured as non-secure
[Sec Thread] Secure image initializing!
TF-M Float ABI: Hard
Lazy stacking enabled
Booting TF-M v2.0.0-ncs2
Ready&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating MQTT Sample to a Custom Board</title><link>https://devzone.nordicsemi.com/thread/502587?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 11:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2780e98e-fa30-45d4-b2e2-3332f74216ae</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Rod,&lt;/p&gt;
&lt;p&gt;Did you manage to collect a modem trace through either uart1 or RTT terminal?&lt;/p&gt;
&lt;p&gt;I see you also play with link monitor before. If this is a new custom board, are you able to see it can successfully connect with network when you check with link monitor after programming&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/applications/serial_lte_modem/README.html"&gt;Serial LTE modem (nordicsemi.com)&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>