<?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>NRF9160KD UART configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73768/nrf9160kd-uart-configuration</link><description>hello all, 
 nRF Connect SDK: 1.5.0 
 nRF Connect Toolchain: 1.5.0 
 Desktop OS: Windows 10 
 I&amp;#39;m currently using nrf9160dk to explore the GNSS features. I take a look at the sample example of gps and was able to read NMEA protocols out of the VCOM via</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Apr 2021 15:23:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73768/nrf9160kd-uart-configuration" /><item><title>RE: NRF9160KD UART configuration</title><link>https://devzone.nordicsemi.com/thread/305623?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 15:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f9c02d5-ae83-4fd5-8bd4-7e707aa76a10</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;It&amp;#39;s strange that it doesn&amp;#39;t build for you. I put &lt;span&gt;CONFIG_BOARD_NRF9160DK_UART0_ARDUINO&lt;/span&gt;=y in prj.conf, built from the command line for the nrf9160dk_nrf52840 board and it worked fine. I did not get the &amp;quot;warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol BOARD_NRF9160DK_UART0_ARDUINO&amp;quot; message. Can you try building with west/command line and see if you still get the error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160KD UART configuration</title><link>https://devzone.nordicsemi.com/thread/304683?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 00:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da8f29a5-782c-4a4e-afe0-93874c3e3ff7</guid><dc:creator>bc_metco</dc:creator><description>&lt;p&gt;It doesn&amp;#39;t work, syntax error.&lt;/p&gt;
&lt;p&gt;I tried to build&amp;nbsp; the hello_world project on board: nrf9160dk_nrf52840 with overlay file. I tried your code and the code I found in my build folder dts file.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;vcom0_pins_routing: switch-nrf91-uart1 {
   compatible = &amp;quot;nordic,nrf9160dk-optional-routing&amp;quot;;
   control-gpios = &amp;lt;&amp;amp;gpio1 14 (1 &amp;lt;&amp;lt; 0)&amp;gt;;
   status = &amp;quot;okay&amp;quot;;
  };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;full error log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Creating solution hello_world.emProject
  C:/ncs/v1.5.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf9160dk_nrf52840 -DBOARD_DIR=C:\ncs\v1.5.0\zephyr\boards\arm\nrf9160dk_nrf52840 -BC:\ncs\v1.5.0\zephyr\samples\hello_world\build_nrf9160dk_nrf52840 -SC:\ncs\v1.5.0\zephyr\samples\hello_world -DNCS_TOOLCHAIN_VERSION=1.5.0 -DDTC_OVERLAY_FILE=C:\ncs\v1.5.0\zephyr\samples\hello_world/nrf9160dk_nrf52840.overlay -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\ncs\v1.5.0\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
  -- Application: C:/ncs/v1.5.0/zephyr/samples/hello_world
  -- Zephyr version: 2.4.99 (C:/ncs/v1.5.0/zephyr)
  -- Found Python3: C:/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
  -- Found west (found suitable version &amp;quot;0.9.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
  -- Board: nrf9160dk_nrf52840, Revision: 0.7.0
  -- Cache files will be written to: C:/ncs/v1.5.0/zephyr/.cache
  -- Found dtc: C:/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
  -- Found toolchain: gnuarmemb (C:/ncs/v1.5.0/toolchain/opt)
  -- Found BOARD.dts: C:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf52840/nrf9160dk_nrf52840.dts
  -- Found devicetree overlay: C:/ncs/v1.5.0/zephyr/samples/hello_world/nrf9160dk_nrf52840.overlay
  -- Configuring incomplete, errors occurred!
  Including boilerplate (Zephyr base): C:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
  -- Using NCS Toolchain 1.5.0 for building. (C:/ncs/v1.5.0/toolchain/cmake)
  Error: nrf9160dk_nrf52840.dts.pre.tmp:528.21-39 syntax error
  FATAL ERROR: Unable to parse input tree
  CMake Error at C:/ncs/v1.5.0/zephyr/cmake/dts.cmake:205 (message):
    command failed with return code: 1
  Call Stack (most recent call first):
    C:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake:533 (include)
    C:/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    C:/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
    CMakeLists.txt:5 (find_package)
  
  
  
  error: cmake failed
  create_nordic_project.py failed (1)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160KD UART configuration</title><link>https://devzone.nordicsemi.com/thread/304680?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 00:24:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:601774f3-aef9-4e8f-8f6c-fbc114958144</guid><dc:creator>matt.heins</dc:creator><description>&lt;p&gt;I determined that this setting has been moved into the device tree. The setting for this can be seen in the nrf9160dk_52840.dts file and can be adjusted using a .overlay file to change the routing of the UART pins.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;vcom0_pins_routing: switch-nrf91-uart1 {&lt;br /&gt; compatible = &amp;quot;nordic,nrf9160dk-optional-routing&amp;quot;;&lt;br /&gt; control-gpios = &amp;lt;&amp;amp;gpio1 14 GPIO_ACTIVE_LOW&amp;gt;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; };&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160KD UART configuration</title><link>https://devzone.nordicsemi.com/thread/304657?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 16:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc9dad74-5c86-4879-af7c-a43d444ab0c5</guid><dc:creator>bc_metco</dc:creator><description>&lt;p&gt;I tried to build and flash the hello_world project from Zephyr/sample, but still no luck. Same error happened.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:/ncs/v1.5.0/zephyr/samples/hello_world/prj.conf:2: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol BOARD_NRF9160DK_UART0_ARDUINO&lt;/pre&gt;which component controls U7 (nRF91_UART1_CTRL)? I found limited info from&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a title="nRF9160_DK_HW_User_Guide_V1.0" href="https://infocenter.nordicsemi.com/pdf/nRF9160_DK_HW_User_Guide_v1.0.pdf"&gt;https://infocenter.nordicsemi.com/pdf/nRF9160_DK_HW_User_Guide_v1.0.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618332714720v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618332776942v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Full error log:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;Creating solution hello_world.emProject
  C:/ncs/v1.5.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf9160dk_nrf52840 -DBOARD_DIR=C:\ncs\v1.5.0\zephyr\boards\arm\nrf9160dk_nrf52840 -BC:\ncs\v1.5.0\zephyr\samples\hello_world\build_nrf9160dk_nrf52840 -SC:\ncs\v1.5.0\zephyr\samples\hello_world -DNCS_TOOLCHAIN_VERSION=1.5.0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\ncs\v1.5.0\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
  -- Application: C:/ncs/v1.5.0/zephyr/samples/hello_world
  -- Zephyr version: 2.4.99 (C:/ncs/v1.5.0/zephyr)
  -- Found Python3: C:/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
  -- Found west (found suitable version &amp;quot;0.9.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
  -- Board: nrf9160dk_nrf52840, Revision: 0.7.0
  -- Cache files will be written to: C:/ncs/v1.5.0/zephyr/.cache
  -- Found dtc: C:/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
  -- Found toolchain: gnuarmemb (C:/ncs/v1.5.0/toolchain/opt)
  -- Found BOARD.dts: C:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf52840/nrf9160dk_nrf52840.dts
  -- Generated zephyr.dts: C:/ncs/v1.5.0/zephyr/samples/hello_world/build_nrf9160dk_nrf52840/zephyr/zephyr.dts
  -- Generated devicetree_unfixed.h: C:/ncs/v1.5.0/zephyr/samples/hello_world/build_nrf9160dk_nrf52840/zephyr/include/generated/devicetree_unfixed.h
  -- Generated device_extern.h: C:/ncs/v1.5.0/zephyr/samples/hello_world/build_nrf9160dk_nrf52840/zephyr/include/generated/device_extern.h
  Parsing C:/ncs/v1.5.0/zephyr/Kconfig
  Loaded configuration &amp;#39;C:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf52840/nrf9160dk_nrf52840_defconfig&amp;#39;
  Merged configuration &amp;#39;C:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf52840/nrf9160dk_nrf52840_0_7_0.conf&amp;#39;
  Merged configuration &amp;#39;C:/ncs/v1.5.0/zephyr/samples/hello_world/prj.conf&amp;#39;
  -- Configuring incomplete, errors occurred!
  Including boilerplate (Zephyr base): C:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
  -- Using NCS Toolchain 1.5.0 for building. (C:/ncs/v1.5.0/toolchain/cmake)
  
  C:/ncs/v1.5.0/zephyr/samples/hello_world/prj.conf:2: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol BOARD_NRF9160DK_UART0_ARDUINO
  
  error: Aborting due to Kconfig warnings
  
  CMake Error at C:/ncs/v1.5.0/zephyr/cmake/kconfig.cmake:262 (message):
    command failed with return code: 1
  Call Stack (most recent call first):
    C:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake:534 (include)
    C:/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    C:/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
    CMakeLists.txt:5 (find_package)
  
  
  
  error: cmake failed
  create_nordic_project.py failed (1)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Dev kit info:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618333140475v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160KD UART configuration</title><link>https://devzone.nordicsemi.com/thread/304463?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 10:13:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9941d88f-fdb9-477d-bf56-ef0852a39068</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;You need to build the board controller for nrf9160dk_nrf52840, and put the &lt;span&gt;CONFIG_BOARD_NRF9160DK_UART0_ARDUINO&lt;/span&gt;=y in prj.conf. You can build the Zephyr &amp;quot;hello_world&amp;quot; sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160KD UART configuration</title><link>https://devzone.nordicsemi.com/thread/304351?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 16:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0071f157-7ba0-4b8a-9932-5132b7b4cdff</guid><dc:creator>bc_metco</dc:creator><description>&lt;p&gt;No, it doesn&amp;#39;t work. Here is the error I got.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:/ncs/v1.5.0/nrf/samples/nrf9160/gps_bc_test/prj.conf:13: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol BOARD_NRF9160DK_UART0_ARDUINO&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It looks like there is no such param named&amp;nbsp;&lt;span&gt;CONFIG_BOARD_NRF9160DK_UART0_ARDUINO, which is kind of what I expected because I can&amp;#39;t find it in the lib file, config.c.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With that been added to prj.conf file, the Segger Embedded Studio doesn&amp;#39;t allow me to create the solution. I got&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;create_nordic_project.py failed (1) error&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;here is the full log file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Creating solution gps_bc_test.emProject
  C:/ncs/v1.5.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf9160dk_nrf9160ns -DBOARD_DIR=C:\ncs\v1.5.0\zephyr\boards\arm\nrf9160dk_nrf9160 -BC:\ncs\v1.5.0\nrf\samples\nrf9160\gps_bc_test\build_nrf9160dk_nrf9160ns -SC:\ncs\v1.5.0\nrf\samples\nrf9160\gps_bc_test -DNCS_TOOLCHAIN_VERSION=1.5.0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\ncs\v1.5.0\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
  -- Application: C:/ncs/v1.5.0/nrf/samples/nrf9160/gps_bc_test
  -- Zephyr version: 2.4.99 (C:/ncs/v1.5.0/zephyr)
  -- Found Python3: C:/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
  -- Found west (found suitable version &amp;quot;0.9.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
  -- Board: nrf9160dk_nrf9160ns, Revision: 0.7.0
  -- Cache files will be written to: C:/ncs/v1.5.0/zephyr/.cache
  -- Found dtc: C:/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
  -- Found toolchain: gnuarmemb (C:/ncs/v1.5.0/toolchain/opt)
  -- Found BOARD.dts: C:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
  -- Generated zephyr.dts: C:/ncs/v1.5.0/nrf/samples/nrf9160/gps_bc_test/build_nrf9160dk_nrf9160ns/zephyr/zephyr.dts
  -- Generated devicetree_unfixed.h: C:/ncs/v1.5.0/nrf/samples/nrf9160/gps_bc_test/build_nrf9160dk_nrf9160ns/zephyr/include/generated/devicetree_unfixed.h
  -- Generated device_extern.h: C:/ncs/v1.5.0/nrf/samples/nrf9160/gps_bc_test/build_nrf9160dk_nrf9160ns/zephyr/include/generated/device_extern.h
  Parsing C:/ncs/v1.5.0/nrf/samples/nrf9160/gps_bc_test/Kconfig
  Loaded configuration &amp;#39;C:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig&amp;#39;
  Merged configuration &amp;#39;C:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_0_7_0.conf&amp;#39;
  Merged configuration &amp;#39;C:/ncs/v1.5.0/nrf/samples/nrf9160/gps_bc_test/prj.conf&amp;#39;
  -- Configuring incomplete, errors occurred!
  Including boilerplate (Zephyr base): C:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
  -- Using NCS Toolchain 1.5.0 for building. (C:/ncs/v1.5.0/toolchain/cmake)
  
  C:/ncs/v1.5.0/nrf/samples/nrf9160/gps_bc_test/prj.conf:13: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol BOARD_NRF9160DK_UART0_ARDUINO
  
  error: Aborting due to Kconfig warnings
  
  CMake Error at C:/ncs/v1.5.0/zephyr/cmake/kconfig.cmake:262 (message):
    command failed with return code: 1
  Call Stack (most recent call first):
    C:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake:534 (include)
    C:/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    C:/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
    CMakeLists.txt:9 (find_package)
  
  
  
  error: cmake failed
  create_nordic_project.py failed (1)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;how can I switch the output interface from USB to UART?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160KD UART configuration</title><link>https://devzone.nordicsemi.com/thread/304200?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 08:41:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:def07153-2915-454f-a22e-a39767fa4049</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]So what&amp;#39;s the current parameter I should change?[/quote]
&lt;p&gt;&amp;nbsp;It has changed name to CONFIG_BOARD_NRF9160DK_UART0_ARDUINO.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Another question I have is, to change the serial comm baudrate, what&amp;#39;s the proper method to do that?[/quote]
&lt;p&gt;You can change the current-speed parameter in overlay&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
  status = &amp;quot;okay&amp;quot;;
  current-speed = &amp;lt;115200&amp;gt;;
  tx-pin = &amp;lt;28&amp;gt;;
  rx-pin = &amp;lt;29&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>