<?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>How to solve the ERROR 12 [NRF_ERROR_DATA_SIZE] in UART communication code?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65902/how-to-solve-the-error-12-nrf_error_data_size-in-uart-communication-code</link><description>Hi, 
 
 I am testing the UART communication using 2 nRF board, 1 DSP board(test completed with PC). 
 The code had error, NRF_ERROR_NO_MEM, and I just solved the problem by changing memory setting. 
 
 Then, the other error occurs. 
 &amp;lt;error&amp;gt; app: ERROR</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Sep 2020 08:41:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65902/how-to-solve-the-error-12-nrf_error_data_size-in-uart-communication-code" /><item><title>RE: How to solve the ERROR 12 [NRF_ERROR_DATA_SIZE] in UART communication code?</title><link>https://devzone.nordicsemi.com/thread/269572?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 08:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b64f87f-9398-4e51-9236-b5ba72325741</guid><dc:creator>Yclee</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;I will check Error condition link and&amp;nbsp;ignore this type of error(576).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Yclee&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to solve the ERROR 12 [NRF_ERROR_DATA_SIZE] in UART communication code?</title><link>https://devzone.nordicsemi.com/thread/269567?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 08:28:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c2d2b7f-f9f0-4a11-9d45-d23c6769902c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You are getting an &lt;span class="item"&gt;&lt;a class="" title="Error conditions" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=4_2_0_34_4#concept_fpm_qcm_wr"&gt;Error condition &lt;/a&gt;&lt;/span&gt;&lt;span class="item"&gt;on the UART bus, so it&amp;#39;s not an actual NON_MEM error. You may try to ignore this type of error by commenting the APP_ERROR_HANDLER() at line 576.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to solve the ERROR 12 [NRF_ERROR_DATA_SIZE] in UART communication code?</title><link>https://devzone.nordicsemi.com/thread/269565?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 08:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc949775-4241-434a-9061-c1818cfb6e70</guid><dc:creator>Yclee</dc:creator><description>&lt;p&gt;And I tried&lt;/p&gt;
&lt;p&gt;1) increase RX/TX buffer size,&lt;/p&gt;
&lt;p&gt;2) enable flow control,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but the result is not changed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to solve the ERROR 12 [NRF_ERROR_DATA_SIZE] in UART communication code?</title><link>https://devzone.nordicsemi.com/thread/269553?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 08:01:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25e193a8-1bf4-4ba2-9b0c-aca57712a714</guid><dc:creator>Yclee</dc:creator><description>&lt;p&gt;It saids error at main.c 575,&lt;/p&gt;
&lt;p&gt;(main function is in the project UART-ADC example )&lt;/p&gt;
&lt;p&gt;the main function code is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;575line: case APP_UART_COMMUNICATION_ERROR:&lt;br /&gt;576line: APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);&lt;br /&gt;577line: break;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to solve the ERROR 12 [NRF_ERROR_DATA_SIZE] in UART communication code?</title><link>https://devzone.nordicsemi.com/thread/269547?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 07:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da608e51-d15b-4091-b925-b3571d8c6585</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="93366" url="~/f/nordic-q-a/65902/how-to-solve-the-error-12-nrf_error_data_size-in-uart-communication-code/269544"]The debug results is like this. ERROR 4 NO_MEM.. (Should I see more detail debugging results?)[/quote]
&lt;p&gt;Yes, you should see the full error message if you expand the terminal window. It should tell you the file name and line number of where error 4 occured.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to solve the ERROR 12 [NRF_ERROR_DATA_SIZE] in UART communication code?</title><link>https://devzone.nordicsemi.com/thread/269544?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 07:42:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e321beec-d0b4-4807-ba69-3543caa84b53</guid><dc:creator>Yclee</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1524.error.png" /&gt;&lt;/p&gt;
&lt;p&gt;Hi, yes I had enabled debugging log.&lt;/p&gt;
&lt;p&gt;The debug results is like this. ERROR 4 NO_MEM.. (Should I see more detail debugging results?)&lt;/p&gt;
&lt;p&gt;I was changed the start memory address(RAM_START=0x20002d28) since the earlier error message suggest that&lt;/p&gt;
&lt;p&gt;changing the start memory address. After that, the only NO_MEM error is occured while UART with DSP28335 module.&lt;/p&gt;
&lt;p&gt;So I doubt that the data format between two module maybe different. However, the UART/UARTE has 1 start bit,&lt;/p&gt;
&lt;p&gt;I think the other problem may be exists.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;cf)&lt;/p&gt;
&lt;p&gt;I connected the RX/TX/GND between 2 modules.&lt;/p&gt;
&lt;p&gt;In PC connection environment, RX/TX/GND/VDD connected with Serial to USB module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to solve the ERROR 12 [NRF_ERROR_DATA_SIZE] in UART communication code?</title><link>https://devzone.nordicsemi.com/thread/269529?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 07:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fc8f8e1-ce1c-40cd-9dfe-15bae747f9c8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The app_error handler is invoked when an error has been passed to one one of the APP_ERROR_CHECK() macros in your code. So we need to find out where this happened. Do you have debug logging enabled?&lt;/p&gt;
&lt;p&gt;The UART/UARTE uses 1 start bit.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to solve the ERROR 12 [NRF_ERROR_DATA_SIZE] in UART communication code?</title><link>https://devzone.nordicsemi.com/thread/269510?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 05:57:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21e4d395-9fdc-403b-bbeb-95cfa7039a6f</guid><dc:creator>Yclee</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am using&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples"&gt;https://github.com/NordicPlayground/nRF52-ADC-examples&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;examples. And after I upload my question, I checked that the same error is not occured in BLE-PC communication(UART).&lt;/p&gt;
&lt;p&gt;The error occured in app_error_weak line 100 NRF_BREAKPOINT_COND and sometimes ERROR 4 [NRF_ERROR_NO_MEM] occurs. I think the DSP-BLE connections or data (start bit, etc.) may be problem.&lt;/p&gt;
&lt;p&gt;Can I change start bit setting in nRF52832 project? (I think this is the problem)&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Yclee&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to solve the ERROR 12 [NRF_ERROR_DATA_SIZE] in UART communication code?</title><link>https://devzone.nordicsemi.com/thread/269508?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 05:52:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5056aa48-51bd-4799-ae3b-05b1b3e479fb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you able to tell where the errors are returned in your code, is it returned by the UART driver functions? Also, which SDK example did you base your project on?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>