<?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>Failed to prepare RAMCode using RAM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64060/failed-to-prepare-ramcode-using-ram</link><description>Hi, 
 I have a project which is intended to log data via the UART port. 
 When I enable BACKEND LOG via RTT (NRF_LOG_BACKEND_RTT_ENABLED = 1). I&amp;#39;m able to view output via the RTTViewer. 
 However, when I switch over and enable using backend (NRF_LOG_BACKEND_UART_ENABLED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jul 2020 18:49:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64060/failed-to-prepare-ramcode-using-ram" /><item><title>RE: Failed to prepare RAMCode using RAM</title><link>https://devzone.nordicsemi.com/thread/261459?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 18:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c98a1692-da63-4f06-b2f6-9fa153726998</guid><dc:creator>only1chi</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to prepare RAMCode using RAM</title><link>https://devzone.nordicsemi.com/thread/261457?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 18:42:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0c536b7-411b-48bf-a8aa-670aa2c6b8e6</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m happy to hear you&amp;nbsp;were able to solve it&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to prepare RAMCode using RAM</title><link>https://devzone.nordicsemi.com/thread/261455?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 18:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1400434-593c-47ff-ab11-46a5bed8e1dd</guid><dc:creator>only1chi</dc:creator><description>&lt;p&gt;Hi Simon,&lt;br /&gt;&lt;br /&gt;Thanks for responding.&lt;/p&gt;
&lt;p&gt;Yes indeed it is returning an INVALID_STATE. This is because I had previously initialized it.&lt;br /&gt;In my application I use the UART interface for a custom protocol, so I initialize a uart event handler.&amp;nbsp;&lt;br /&gt;When log_init() is called, it also tries to initialize the same UART interface with it&amp;#39;s own handler. This is what causes the crash.&lt;br /&gt;&lt;br /&gt;The log uart_event handler would clash with my custom protocol handler as they would both contend for the same resource.&lt;br /&gt;&lt;br /&gt;So I&amp;#39;ve resorted to using printf statements with RETARGET_ENABLE set to 1. This causes my print logs to appear on the UART interface without disrupting my custom protocol.&lt;br /&gt;&lt;br /&gt;Thank you.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to prepare RAMCode using RAM</title><link>https://devzone.nordicsemi.com/thread/261452?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 18:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:796c4285-0089-4351-b257-06de8016ef44</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Does&amp;nbsp;&lt;em&gt;nrf_drv_uart_init()&amp;nbsp;&lt;/em&gt;return&amp;nbsp;NRFX_ERROR_INVALID_STATE (=0x8)? Have you already initialized it? Try setting a breakpoint in the function and see where it is initially called from.&lt;/p&gt;
&lt;p&gt;What example are you using?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>