<?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>Fatal error with uart_config(void)  on nRF52840 SDK15.0 S140</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38244/fatal-error-with-uart_config-void-on-nrf52840-sdk15-0-s140</link><description>Hello, I am currently working on a nr52840 s140 Sdk 15.0 card and I want to recover data from a component running on the i&amp;#178;c bus. (I have not yet installed the component on the card). The problem is that I get a fatal errror from uart_config(void). Here</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Sep 2018 13:16:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38244/fatal-error-with-uart_config-void-on-nrf52840-sdk15-0-s140" /><item><title>RE: Fatal error with uart_config(void)  on nRF52840 SDK15.0 S140</title><link>https://devzone.nordicsemi.com/thread/147597?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 13:16:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97af0be3-2124-4b50-b497-dc72c2d53a5b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Since nRF52840 have two UART instances, you can try to change the UART instance used by app_uart to 1:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define APP_UART_DRIVER_INSTANCE 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that you will have to enable UARTE1 in the config as well. You have to set the configuration to use EasyDMA, as nRF52840 does not support legacy UART on instance 1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another alternative is to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.1.0/hardware_driver_uart.html?cp=4_0_0_2_0_19"&gt;UART driver&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directly for the second UART instance, or use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.1.0/lib_serial.html?cp=4_0_0_3_41"&gt;NRF_serial library&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can also change the logger backend to use RTT to output the logs. This will free up UART0 for use for other purposes:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRF_LOG_BACKEND_RTT_ENABLED 1
#define NRF_LOG_BACKEND_UART_ENABLED 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The RTT logs can be viewed using&amp;nbsp;J-Link RTT Viewer, or in the terminal window of Segger Embedded Studio while debugging.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal error with uart_config(void)  on nRF52840 SDK15.0 S140</title><link>https://devzone.nordicsemi.com/thread/147537?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 09:58:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a49261ca-8ccb-482f-b02a-6aef338fe6f3</guid><dc:creator>lmouelo</dc:creator><description>&lt;p&gt;Yes but if i disable the NRF_LOG i will can&amp;#39;t see the values of my&amp;nbsp;component&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal error with uart_config(void)  on nRF52840 SDK15.0 S140</title><link>https://devzone.nordicsemi.com/thread/147519?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 09:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d173ef15-a474-43fb-94cf-2b5204a1a2a8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You need to disable NRF_LOG module if you want to use the UART. You have the logger module enabled and configured to use the UART as the logger backend. The UART driver have already been initialized for the UART instance when you initialized NRF_LOG and it cannot be initialized again for use with app_uart.&lt;/p&gt;
&lt;p&gt;You can disable logging by setting &amp;#39;#define&amp;nbsp;NRF_LOG_ENABLED 0&amp;#39; in sdk_config.h, or you can disable the UART backend by setting &amp;#39;#define NRF_LOG_BACKEND_UART_ENABLED 0&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal error with uart_config(void)  on nRF52840 SDK15.0 S140</title><link>https://devzone.nordicsemi.com/thread/147487?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 07:38:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45081503-9d98-4202-a246-6f53e2eda7de</guid><dc:creator>lmouelo</dc:creator><description>&lt;p&gt;I joined the complete project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal error with uart_config(void)  on nRF52840 SDK15.0 S140</title><link>https://devzone.nordicsemi.com/thread/147486?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 07:38:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6feaae13-e4cf-49ea-9d7a-fca7d755c583</guid><dc:creator>lmouelo</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/twi_5F00_sensor.zip"&gt;devzone.nordicsemi.com/.../twi_5F00_sensor.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>