<?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>I have some problem about merge &amp;quot;ble_app_uart_c&amp;quot; with &amp;quot;libuarte&amp;quot;, SDK17.1.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99257/i-have-some-problem-about-merge-ble_app_uart_c-with-libuarte-sdk17-1-0</link><description>When I compile &amp;quot;NRF_LIBUARTE_ASYNC_DEFINE&amp;quot; in &amp;quot;ble_app_uart_c&amp;quot;,it would appear the error as the picture shows 
 
 After I followed the error instructions, it gave another error 
 
 Is there any way to solve this problem? If there is an example of combining</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 May 2023 08:12:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99257/i-have-some-problem-about-merge-ble_app_uart_c-with-libuarte-sdk17-1-0" /><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/425243?ContentTypeID=1</link><pubDate>Fri, 12 May 2023 08:12:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b5a2d73-4e81-4b3a-9ef8-eb493d2b3683</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So what am I looking at here? Where is that log coming from? Is this the log from the nRF52? And the &amp;quot;garbled characters&amp;quot;, are they from the UART on the nRF52840DK?&lt;/p&gt;
&lt;p&gt;If not, please enlighten me &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;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424730?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 08:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b4c99c8-4278-4dc6-b8ae-5b7196634540</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;Attached is my block diagram:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/block-diagram.png" /&gt;&lt;/p&gt;
&lt;p&gt;I hope to use DK to receive nrf 52832 data and draw the received data into a real-time curve.&lt;br /&gt;At present, when I use realterm to view, it will be garbled characters. I hope it can be the same as the LOG file seen in &lt;strong&gt;nrf connect BLE.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The attached picture is the data in the log file.&lt;br /&gt;&lt;strong&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/log-data.png" /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Many thanks for your kind help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424659?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 19:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f0c7e72-5960-4e04-8916-fb39e4428eef</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Did you connect the I2C pins from the sensor directly to the uart pins on the on the DK? I didn&amp;#39;t see any references to I2C in your application.&lt;/p&gt;
&lt;p&gt;Please note that UART and I2C are two completely different serial protocols. If your sensor is using I2C, you need to use I2C in your application as well to get the sensordata.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hint: In the nRF5 SDK, &amp;quot;TWI&amp;quot; is the name for I2C. Look under the SDK\examples\peripheral folder and try out the different I2C/TWI examples. Note that you probably need to find a driver for your sensor (online). It will not spew out data. The sensor is a slave, so it needs to wait for commands from the master (the nRF) in order to reply with data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424641?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 16:19:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10116ba9-8fbc-415e-a1f6-5c94067c5a9e</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;My sensor is connected to nrf52832 through I2C, and then dump data on UART.&lt;br /&gt;Later I found out that there was a problem with the program used to test it. After I tested it with &lt;strong&gt;realterm&lt;/strong&gt;, I received the data, but the data is garbled.&lt;br /&gt;Is the reason for the garbled characters that the size of each piece of data is 2 bytes? If so, which part should I modify?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/realterm_5F00_message.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks again for your time and help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424509?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 11:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6abb0262-6f33-4411-9f31-13205b490275</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;have you ever used the sensor that you want to interface? What kind of sensor is it? Does it use UART at all?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424424?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 07:11:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe5ff2da-19f5-4041-a1c2-7fb71695a962</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;I&amp;#39;m not really sure, but it should dump data on UART.&lt;br /&gt;The attached picture is the connection using BLE in nRF connect.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/UART_2D00_BLE.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424408?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 06:14:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:411577b2-2cc7-41f8-9bf7-efa2f5f9bfbe</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Remember that I do not know anything about your sensor. Will it just dump data on UART, or do you need to do something for it to report back?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424342?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 14:54:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:334c8eb8-9a9b-4a01-abb8-3908cb890e6b</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;Just read a previous reply and I realized I had something in sdk_config.h that I didn&amp;#39;t adjust.&lt;br /&gt;I adjusted these two things in &lt;span&gt;sdk_config.h&lt;/span&gt; and it worked without error.&lt;br /&gt;&lt;span&gt;#define NRF_BLE_SCAN_NAME_CNT 1&lt;/span&gt;&lt;br /&gt;&lt;span&gt;#define NRF_BLE_SCAN_SHORT_NAME_CNT 1&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After this adjust, the device can connect successfully.&lt;br /&gt;If I want it to receive data from the sensor (I&amp;#39;m not sure if it does now), where should I start to modify it?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424325?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 14:06:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9671f156-dcc3-4ea5-a707-9556547cc402</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;My main.c&amp;nbsp; line 203 is&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;APP_ERROR_CHECK(err_code)，&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&amp;nbsp;and&amp;nbsp;&lt;span&gt;the value passed into the line 203 is&amp;nbsp;&lt;/span&gt;&amp;ldquo;err_code = nrf_ble_scan_filter_set(&amp;amp;m_scan, SCAN_SHORT_NAME_FILTER, &amp;amp;short_name);&amp;rdquo;（the code I previose give.）&lt;br /&gt;I only know that NRF_ERROR_INVALID_PARAMS is a case in nrf_ble_scan_filter_set (in nrf_ble_scan.c), but I don&amp;rsquo;t know what causes it.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;I have attached this file below.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart_5F00_c_5F00_1717.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_c_5F00_1717.zip&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424303?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 13:27:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2bc2fbe-cf84-4808-9641-078fec468dbc</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok. What is in your main.c line 203? Or to be precise, what function returned the value passed into the APP_ERROR_CHECK(err_code) on line 203?&lt;/p&gt;
&lt;p&gt;And can you see (by looking into that function), why it returned 7, NRF_ERROR_INVALID_PARAMS?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424300?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 13:24:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d911472-84e4-4ea0-ba67-28cae508942b</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;The error message that was cut off in the photo is:&amp;lt;error&amp;gt; app: ERROR 7 [NRF_ERROR_INVALID_PARAM] at C:\Users\Justin_Kuo\AppData\nRF5SDK\nRF5_SDK_17.1.0_ddde560\examples\ble_central\ble_app_uart_c_1717\main.c:203&lt;br /&gt;PC at: 0x0002B5FB&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/debug_5F00_messege_5F00_3.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424296?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 13:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fbbf680-b239-4153-916b-2158d242a1a2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, add &amp;quot;DEBUG&amp;quot; to your preprocessor definitions, like I showed you how to do in one of my replies containing this line:&lt;/p&gt;
[quote user="Edvin Holmseth"] So I added the preprocessor definition &amp;quot;DEBUG&amp;quot;, in order to get some more debug information in the log:[/quote]
&lt;p&gt;There you will see a screenshot on how to do that.&lt;/p&gt;
&lt;p&gt;Try to add that, and let me know what you see.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424198?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 09:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15c27515-e44b-4f8e-b294-29589ae44e1e</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;ok i got it&lt;br /&gt;I&amp;#39;m now copying out a new ble_app_uart_c file and trying to use the internal app_uart to do what I want.&lt;br /&gt;I first added the following program inside scan_init():&lt;pre class="ui-code" data-mode="text"&gt;    //scan device name &amp;quot;the champ&amp;quot;
    char s_name[] = &amp;quot;the champ&amp;quot; ;
    nrf_ble_scan_short_name_t short_name ;
    short_name.p_short_name = ( const char* )&amp;amp;s_name ;
    short_name.short_name_min_len = 9 ;
    err_code = nrf_ble_scan_filter_set(&amp;amp;m_scan, SCAN_SHORT_NAME_FILTER, &amp;amp;short_name);
    APP_ERROR_CHECK(err_code);

    char name[] = &amp;quot;the champ 10007&amp;quot; ;
    err_code = nrf_ble_scan_filter_set(&amp;amp;m_scan, SCAN_NAME_FILTER, name);
    APP_ERROR_CHECK(err_code);

    err_code = nrf_ble_scan_filters_enable(&amp;amp;m_scan, NRF_BLE_SCAN_ALL_FILTER, false);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But on the DEBUG page, it tells me that there is a fatal error in &amp;quot;err_code = nrf_ble_scan_filter_set(&amp;amp;m_scan, SCAN_SHORT_NAME_FILTER, &amp;amp;short_name);&lt;br /&gt; APP_ERROR_CHECK(err_code);&amp;quot;, if I want it to connect to the device I specified, how should I modify it?&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/debug_5F00_messege_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424175?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 08:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5122d1da-a479-48bb-87df-f0ed34f61d33</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, I see. Well, another option is to use the app_uart module that is already being used in the ble_app_uart_c example.&lt;/p&gt;
&lt;p&gt;Either way, as your application is now, you have two modules trying to use the same UART. So you either need to comment out uart_init() in your main() function, or you need to comment out the libuarte stuff that you added. You can&amp;#39;t have both using UART0 at the same time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424041?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 14:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:352bea4d-9bb9-4397-a73a-a6a5207c0f6c</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;The function I want to achieve is to connect an external 6-axis sensor via Bluetooth and receive data from the sensor.&lt;br /&gt;As for the reason why I will use libuarte in another Ticket, my reference program is to use nrf_serial to realize this function (older version)&lt;br /&gt;At the beginning, there was an error when compiling with nrf_serial.h. When asking for a solution, I was recommended to use libuarte (because nrf_serial has been deprecated), so I changed my SDK version and tried to implement this function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/424007?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 13:11:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d1e428a-8ed7-46bb-b7e8-b5d972fc2d2c</guid><dc:creator>Edvin</dc:creator><description>[quote user="Edvin Holmseth"]in main(), then it no longer returns NRF_ERROR_INVALID_PARAM, but rather NRF_ERROR_BUSY (17). Thsi is because you are already using your uart instance in uart_init() in main.c, so there you need to decide what you want to do.[/quote]
&lt;p&gt;Yes. That is because you already initialized and set up that UART in uart_init() in main.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you really sure that you want to use libuarte? The example that you are using (ble_app_uart_c) already uses the UART in it&amp;#39;s application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Perhaps you can explain to me what you actually want to acheive. Is there a particular reason why you need to use libuarte instead of the normal uart driver that is already being used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/423964?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 11:22:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5a82c6f-1f12-4600-a103-34a8d10de66b</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;Ok, I see, and this is my log message:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/debug_5F00_messege_5F00_1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Respectfully.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/423954?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 10:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9db47f97-c3a1-4d20-a0bc-92d69f95a865</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;the ble_app_uart_c example doesn&amp;#39;t use UART for logging, so you will not be able to see it in Realterm. It is using RTT logging, so you can either use JLink RTT Viewer (part of JLink bundle, so chances are that it is already installed on your computer).&lt;/p&gt;
&lt;p&gt;Alternatively, I see from your screenshot that you are using Segger Embedded Studio. If you start a debug session, it will automatically open the RTT log:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1683283338695v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/423830?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 14:12:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc0904fe-9943-4309-a00e-21c7f143d2fe</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;Sorry, I didn&amp;#39;t express it clearly, when I use Realterm to test it, it doesn&amp;#39;t connect successfully.&lt;br /&gt;I&amp;#39;m not quite sure if it&amp;#39;s executing in the main() loop, in fact, I don&amp;#39;t know how to check it.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/423772?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 12:16:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5329bd2c-0092-4a2e-9d9e-746cfb28bfac</guid><dc:creator>Edvin</dc:creator><description>[quote user="MuMu"]After these changes, my compile is successed, but it doesn&amp;#39;t work as I expected: scans to the external sensor and connects it, is there something I might not have noticed?&lt;br /&gt;[/quote]
&lt;p&gt;What do you mean? Does it not connect to the device?&lt;/p&gt;
&lt;p&gt;Is the main() loop reached? What does the log say?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/423649?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 03:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddb44bb6-14a9-4b00-9caa-d2b953ed9928</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;I followed your instructions:&lt;br /&gt; I removed &lt;span&gt;the files &lt;strong&gt;nrf_nvic.c&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;nrf_soc.c&lt;/strong&gt;.&amp;nbsp;&lt;br /&gt;and I changed&amp;nbsp; #define PPI_ENABLED 1, #define NRFX_PPI_ENABLED 1, #define NRF_BLE_SCAN_NAME_CNT 1 and #define NRF_BLE_SCAN_SHORT_NAME_CNT 1 in&amp;nbsp;sdk_config.h.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Finally, I modified .int_prio&amp;nbsp; &amp;nbsp;= APP_IRQ_PRIORITY_LOW_MID in&amp;nbsp;nrf_libuarte_async_config_t.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After these changes, my compile is successed, but it doesn&amp;#39;t work as I expected: scans to the external sensor and connects it, is there something I might not have noticed?&lt;br /&gt;The device&amp;nbsp;name is &amp;quot;The champ 10006&amp;quot; .&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks a ton.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/423575?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 13:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb162d35-431a-427d-baaf-79656376c0f2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, I took the time to adjust the scan filter settings in sdk_config.h:&lt;/p&gt;
&lt;p&gt;#define NRF_BLE_SCAN_NAME_CNT 1&lt;br /&gt;#define NRF_BLE_SCAN_SHORT_NAME_CNT 1&lt;/p&gt;
&lt;p&gt;Then the next error points to 767 in main.c, the APP_ERROR_CHECK() after nrf_libuarte_async_init(), which returned 7 (NRF_ERROR_INVALID_PARAM).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So it doesn&amp;#39;t like your configuration for your libuarte.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if it is intentional, but you are using the app_timer instance for libuarte (the libuarte is a large complex, resource heavy beast, so you should only use it if this is what you want to do. After changing:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .int_prio&amp;nbsp; &amp;nbsp;= APP_IRQ_PRIORITY_LOW_MID&lt;/p&gt;
&lt;p&gt;in main(), then it no longer returns NRF_ERROR_INVALID_PARAM, but rather NRF_ERROR_BUSY (17). Thsi is because you are already using your uart instance in uart_init() in main.c, so there you need to decide what you want to do.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/423564?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 12:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de427391-dfe3-4c01-bd6d-ee9b38265f06</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, so I tried to compile, and it complained about not finding NRF_SUCCESS. The reason is that you included the files &lt;strong&gt;nrf_nvic.c&lt;/strong&gt; and &lt;strong&gt;nrf_soc.c&lt;/strong&gt;. These are intended for applications that doesn&amp;#39;t have the SoftDevice. Since the application that you were using as a starting point, the ble_app_uart_c example, uses the SoftDevice, you don&amp;#39;t need these two files.&lt;/p&gt;
&lt;p&gt;Try to remove these two files, (right click and either remove or check the &amp;quot;exclude from build&amp;quot; option), and see if it builds.&lt;/p&gt;
&lt;p&gt;In my case, I needed to do two more changes. in sdk_config.h:&lt;/p&gt;
&lt;p&gt;#define PPI_ENABLED 1&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;#define NRFX_PPI_ENABLED 1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After that it built, and I tried running it. However, it failed, and the log said &amp;quot;Fatal error.&amp;quot;. So I added the preprocessor definition &amp;quot;DEBUG&amp;quot;, in order to get some more debug information in the log:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1683118560389v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;After that, the log pointed to line 220 in main.c, so this is not really related to the libuarte. Since this something completely different, perhaps you have already solved this at an earlier point. Let me know if you are struggling with this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/423414?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 01:33:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5a0f9e7-228c-46f7-b526-c0d16ed16343</guid><dc:creator>MuMu</dc:creator><description>&lt;p&gt;Hello Edvin, I have solved these two problems, they are all caused by the internal content of sdk_config.h not being added or enabled.&lt;br /&gt;After solving these problems, when I use nrf_libuarte_async_init, an error&amp;nbsp;&lt;span&gt;as the picture shows:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/error_5F00_5.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then I found an error message in nrf_libuarte_async.h, I tried to solve the problem by adding the C file used by libuarte to the nRF_Drivers folder, but I don&amp;rsquo;t know why nrf_error.h can&amp;rsquo;t be used.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is my application and I use &amp;quot;Segger Embedded Studio&amp;quot;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart_5F00_c_5F00_V17.1.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_c_5F00_V17.1.zip&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks a ton.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have some problem about merge "ble_app_uart_c" with "libuarte", SDK17.1.0</title><link>https://devzone.nordicsemi.com/thread/423406?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 21:53:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d541e35-d6e5-412f-af3e-7efebd8842b6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It looks like you solved the first issue, but in case you have not, you probably just need to add the definition of NRF_LIBUARTE_DRV_UARTE0 to your sdk_config.h file, and set it to one. You can copy it from the libuarte example (sdk\examples\peripheral\libuarte).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The last issue is a bit more cryptic. Can you please let me know what it says when you are trying to compile your application? Copy the entire build log.&lt;/p&gt;
&lt;p&gt;If possible, you can upload your application here (zip the application folder and upload), and I can have a look. Please let me know what IDE you are using if you do so.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>