<?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>Changing UART0 pins for Custom nrf9160 board?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64677/changing-uart0-pins-for-custom-nrf9160-board</link><description>Hello, 
 I have recently used the new toolchain manager to upgrade to ncs v1.3.0. Now I am using Segger Embedded Studio to flash an nRF9160 with the at_client sample. My issue is that I am not able to use pins 0 and 1 as UART0 on my custom nRF9160 board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Aug 2020 09:41:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64677/changing-uart0-pins-for-custom-nrf9160-board" /><item><title>RE: Changing UART0 pins for Custom nrf9160 board?</title><link>https://devzone.nordicsemi.com/thread/264588?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 09:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ce4c36a-3294-4900-8da5-c1382bd91623</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello!&lt;br /&gt;&lt;br /&gt;My apologies, I provided the wrong link to documentation. Let&amp;#39;s try a different approach.&amp;nbsp;&lt;br /&gt;Could you try to remove the overlay files, and add the following line to your prj.conf:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_AT_HOST_UART_1=y&lt;/pre&gt;&lt;br /&gt;I managed to communicate with the modem over &lt;span&gt;P0.00 and P0.01&amp;nbsp;&lt;/span&gt;this way. It might not be the ideal solution as it only routs the AT_HOST to UART_1, not anything else.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing UART0 pins for Custom nrf9160 board?</title><link>https://devzone.nordicsemi.com/thread/264525?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 16:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ab98ca4-16bb-4842-9aa6-2b4e46e81e2a</guid><dc:creator>JWizard</dc:creator><description>&lt;p&gt;I&amp;#39;m not seeing that in the documentation for the nrf9160DK which I found using the contents bar on the left side of the page you linked. I looked over at the schematic and saw P0.00 and P0.01 were labeled as UART_2.&lt;br /&gt;&lt;br /&gt;I tried disabling UART_1 and UART_2 using this method here but nothing happened. I&lt;br /&gt;&lt;br /&gt;I also tried to use the project configurations for &amp;quot;Device Name for UART&amp;nbsp;device of UART Console&amp;quot; to set that to UART_2 because I don&amp;#39;t actually care which UART it is I just want it to use P0.00 and P0.01. But that didn&amp;#39;t work either.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Perhaps I need to rephrase what I want to do:&lt;br /&gt;&lt;br /&gt;If I go back to default configuration then I can do this in any serial program on my laptop:&lt;br /&gt;&lt;br /&gt;&lt;span class="tx"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CFUN?

+CFUN: 0

OK&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m looking to make this interaction occur over pins P0.00 and P0.01. Regardless of UART number.&lt;/p&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span class="rx"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;br /&gt;&lt;br /&gt;Actually disabling UART1 does make a difference. On my PC this DK always connects to COM6, COM7, and COM8.&lt;br /&gt;&lt;br /&gt;COM7 is usually where I get SPM messages at reset and can communicate with the AT Client app. This appears to be the one used by LTE Link Monitor.&lt;br /&gt;&lt;br /&gt;After disabling UART_1 the LTE Link Monitor shows no communication but I can get that functionality now on COM6 with other terminal applications.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing UART0 pins for Custom nrf9160 board?</title><link>https://devzone.nordicsemi.com/thread/264493?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 13:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c39ba6cd-f550-4198-8da3-8a2082e731a3</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello again!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It seems that UART2 are bound to P0.00 and P0.01 on the DK, as stated in the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf91_dk%2FUG%2Fnrf91_DK%2Fmcu_virtual_com_port.html&amp;amp;cp=2_0_5_3_0_1"&gt;documentation&lt;/a&gt;.&amp;nbsp;Could you try to disable UART1 by the following to both application and spm overlays?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart2 {
status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Carl Richard&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit:&lt;br /&gt;The documentation link was wrong. It is updated now. In addition I corrected the UART number, it was supposed to be UART2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing UART0 pins for Custom nrf9160 board?</title><link>https://devzone.nordicsemi.com/thread/264340?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 19:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c750f74-631f-4cb0-9248-472693142a2b</guid><dc:creator>JWizard</dc:creator><description>&lt;p&gt;I renamed the files as specified, and reloaded the project in SES. &lt;br /&gt;&lt;br /&gt;Now,&amp;nbsp;&lt;strong&gt;ncs\v1.3.0\nrf\samples\nrf9160\at_client\build_nrf9160_pca10090ns\zephyr\include\generated\devicetree_unfixed.h&amp;nbsp;&lt;/strong&gt;does show the correct pin numbers:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* Generic property macros: */
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_reg {32768 /* 0x8000 */, 4096 /* 0x1000 */}
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_reg_IDX_0 32768
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_reg_IDX_1 4096
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_reg_EXISTS 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_interrupts {8 /* 0x8 */, 1 /* 0x1 */}
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_interrupts_IDX_0 8
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_interrupts_IDX_1 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_interrupts_EXISTS 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_hw_flow_control 0
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_hw_flow_control_EXISTS 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_tx_pin 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_tx_pin_EXISTS 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_rx_pin 0
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_rx_pin_EXISTS 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_rts_pin 4294967295
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_rts_pin_EXISTS 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_cts_pin 4294967295
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_cts_pin_EXISTS 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_current_speed 115200
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_current_speed_EXISTS 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_label &amp;quot;UART_0&amp;quot;
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_label_EXISTS 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_status &amp;quot;okay&amp;quot;
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_status_ENUM_IDX 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_status_EXISTS 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_compatible {&amp;quot;nordic,nrf-uarte&amp;quot;}
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_compatible_IDX_0 &amp;quot;nordic,nrf-uarte&amp;quot;
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_compatible_LEN 1
#define DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_compatible_EXISTS 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, I am getting no activity on P0.01 on either the DK board or my custom board at reset or in response to &amp;quot;AT+CFUN?\r\n&amp;quot; on P0.00.&lt;br /&gt;&lt;br /&gt;One thing that has changed is if I load the .hex onto the DK board then I no longer get any of the SPM messages or any output in the LTE Link Monitor. Which I think is correct behavior with the UART0 pins changed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing UART0 pins for Custom nrf9160 board?</title><link>https://devzone.nordicsemi.com/thread/264184?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 08:40:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09155c1a-5454-43af-8083-653a6c7e0edd</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SES requires that you reload the project if you add/edit a .overlay file. I recommend trying that! Furthermore, see that you are using the pca10090 overlay file. Could you try to change the names to respectively &lt;strong&gt;nrf9160dk_nrf9160ns.overlay&lt;/strong&gt; and&amp;nbsp;&lt;strong&gt;nrf9160dk_nrf9160.overlay&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>