<?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>[NRF52832][SDK 14.0][Keil] Hardware UART + Ble compilation issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25943/nrf52832-sdk-14-0-keil-hardware-uart-ble-compilation-issue</link><description>Hi, 
 Trying to implement a simple Hardware UART in parrallel with Ble on a custom board with mdbt42 Raytac module. I have the following compilation error: 
 *** Using Compiler &amp;#39;V5.06 update 4 (build 422)&amp;#39;, folder: &amp;#39;C:\Program Files (x86)\Keil\ARM\ARMCC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Oct 2017 15:35:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25943/nrf52832-sdk-14-0-keil-hardware-uart-ble-compilation-issue" /><item><title>RE: [NRF52832][SDK 14.0][Keil] Hardware UART + Ble compilation issue</title><link>https://devzone.nordicsemi.com/thread/102197?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 15:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22faf8cb-54d9-4d08-b2ff-42197dd8edb7</guid><dc:creator>Doug_H</dc:creator><description>&lt;p&gt;Great to hear you figured it out. I&amp;#39;ve found that most errors I get like this (i.e. linker) are due to not having the sdk_config.h file set correctly or missing library source files. You will have to be patient with the SDK, and be prepared for much frustration. It&amp;#39;s very poorly documented and keeps changing all the time!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52832][SDK 14.0][Keil] Hardware UART + Ble compilation issue</title><link>https://devzone.nordicsemi.com/thread/102194?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 13:49:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f045b7f9-748d-40d3-a3c8-f086abdefed2</guid><dc:creator>karolalexander</dc:creator><description>&lt;p&gt;Success !!&lt;/p&gt;
&lt;p&gt;Now compilation work well. But still a little bit confused on how to use the SDK. :s&lt;/p&gt;
&lt;p&gt;Thanks a lot Jorgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52832][SDK 14.0][Keil] Hardware UART + Ble compilation issue</title><link>https://devzone.nordicsemi.com/thread/102202?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 12:49:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24d0359d-9163-4046-90cd-de3ed0015dac</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Try changing the &lt;code&gt;APP_UART_DRIVER_INSTANCE&lt;/code&gt; to 0, nRF52832 have only 1 UART peripheral (UART0), and it cannot use instance 1. Only nRF52840 IC support UART1 instance.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define APP_UART_DRIVER_INSTANCE 0
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52832][SDK 14.0][Keil] Hardware UART + Ble compilation issue</title><link>https://devzone.nordicsemi.com/thread/102201?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 12:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f229ad6-3669-4276-95ca-0042652bb00b</guid><dc:creator>karolalexander</dc:creator><description>&lt;p&gt;I assumed to have added the file but no.. Now the error look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;*** Using Compiler &amp;#39;V5.06 update 4 (build 422)&amp;#39;, folder: &amp;#39;C:\Program Files (x86)\Keil\ARM\ARMCC\Bin&amp;#39;
Build target &amp;#39;nrf52832_xxaa&amp;#39;
compiling app_uart.c...
..\..\..\..\..\..\components\libraries\uart\app_uart.c(50): error:  #20: identifier &amp;quot;UART1_CONFIG_USE_EASY_DMA&amp;quot; is undefined
  static nrf_drv_uart_t app_uart_inst = 
RF_DRV_UART_INSTANCE(APP_UART_DRIVER_INSTANCE);
..\..\..\..\..\..\components\libraries\uart\app_uart.c(50): error:  #20: identifier &amp;quot;NRF_UARTE1&amp;quot; is undefined
  static nrf_drv_uart_t app_uart_inst = 
RF_DRV_UART_INSTANCE(APP_UART_DRIVER_INSTANCE);
..\..\..\..\..\..\components\libraries\uart\app_uart.c(50): error:  #44: expression must have pointer type
  static nrf_drv_uart_t app_uart_inst = 
RF_DRV_UART_INSTANCE(APP_UART_DRIVER_INSTANCE);
..\..\..\..\..\..\components\libraries\uart\app_uart.c(50): error:  #44: expression must have pointer type
  static nrf_drv_uart_t app_uart_inst = 
RF_DRV_UART_INSTANCE(APP_UART_DRIVER_INSTANCE);
..\..\..\..\..\..\components\libraries\uart\app_uart.c(50): error:  #44: expression must have pointer type
  static nrf_drv_uart_t app_uart_inst = 
RF_DRV_UART_INSTANCE(APP_UART_DRIVER_INSTANCE);
..\..\..\..\..\..\components\libraries\uart\app_uart.c: 0 warnings, 5 errors
&amp;quot;.\_build\nrf52832_xxaa.axf&amp;quot; - 5 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52832][SDK 14.0][Keil] Hardware UART + Ble compilation issue</title><link>https://devzone.nordicsemi.com/thread/102199?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 12:17:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c8a09b0-7e27-4f0a-8cbe-aa1e71f78def</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;And you still have the source file (app_uart.c or app_uart_fifo.c) included in your project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52832][SDK 14.0][Keil] Hardware UART + Ble compilation issue</title><link>https://devzone.nordicsemi.com/thread/102198?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 11:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f975b02-4634-4965-b0eb-1eadb3925afe</guid><dc:creator>karolalexander</dc:creator><description>&lt;p&gt;You right the app_uart was not enabled, now I set app_uart_defined to 1 but the error still remain.&lt;/p&gt;
&lt;p&gt;Configuration:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// &amp;lt;e&amp;gt; APP_UART_ENABLED - app_uart - UART driver
//==========================================================
#ifndef APP_UART_ENABLED
#define APP_UART_ENABLED 1
#endif
// &amp;lt;o&amp;gt; APP_UART_DRIVER_INSTANCE  - UART instance used
 
// &amp;lt;0=&amp;gt; 0 

#ifndef APP_UART_DRIVER_INSTANCE
#define APP_UART_DRIVER_INSTANCE 1
#endif

// &amp;lt;/e&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52832][SDK 14.0][Keil] Hardware UART + Ble compilation issue</title><link>https://devzone.nordicsemi.com/thread/102195?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 11:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d24b39b-f5d4-4c22-885d-7c6ce3dee6f0</guid><dc:creator>karolalexander</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;SDK configuration look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// &amp;lt;e&amp;gt; UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver
//==========================================================
#ifndef UART_ENABLED
#define UART_ENABLED 1
#endif
// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_HWFC  - Hardware Flow Control
 
// &amp;lt;0=&amp;gt; Disabled 
// &amp;lt;1=&amp;gt; Enabled 

#ifndef UART_DEFAULT_CONFIG_HWFC
#define UART_DEFAULT_CONFIG_HWFC 0
#endif

// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_PARITY  - Parity
 
// &amp;lt;0=&amp;gt; Excluded 
// &amp;lt;14=&amp;gt; Included 

#ifndef UART_DEFAULT_CONFIG_PARITY
#define UART_DEFAULT_CONFIG_PARITY 0
#endif

// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_BAUDRATE  - Default Baudrate
 
// &amp;lt;323584=&amp;gt; 1200 baud 
// &amp;lt;643072=&amp;gt; 2400 baud 
// &amp;lt;1290240=&amp;gt; 4800 baud 
// &amp;lt;2576384=&amp;gt; 9600 baud 
// &amp;lt;3862528=&amp;gt; 14400 baud 
// &amp;lt;5152768=&amp;gt; 19200 baud 
// &amp;lt;7716864=&amp;gt; 28800 baud 
// &amp;lt;10289152=&amp;gt; 38400 baud 
// &amp;lt;15400960=&amp;gt; 57600 baud 
// &amp;lt;20615168=&amp;gt; 76800 baud 
// &amp;lt;30801920=&amp;gt; 115200 baud 
// &amp;lt;61865984=&amp;gt; 230400 baud 
// &amp;lt;67108864=&amp;gt; 250000 baud 
// &amp;lt;121634816=&amp;gt; 460800 baud 
// &amp;lt;251658240=&amp;gt; 921600 baud 
// &amp;lt;268435456=&amp;gt; 1000000 baud 

#ifndef UART_DEFAULT_CONFIG_BAUDRATE
#define UART_DEFAULT_CONFIG_BAUDRATE 30801920
#endif

// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
 

// &amp;lt;i&amp;gt; Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 
// &amp;lt;4=&amp;gt; 4 
// &amp;lt;5=&amp;gt; 5 
// &amp;lt;6=&amp;gt; 6 
// &amp;lt;7=&amp;gt; 7 

#ifndef UART_DEFAULT_CONFIG_IRQ_PRIORITY
#define UART_DEFAULT_CONFIG_IRQ_PRIORITY 7
#endif

// &amp;lt;q&amp;gt; UART_EASY_DMA_SUPPORT  - Driver supporting EasyDMA
 

#ifndef UART_EASY_DMA_SUPPORT
#define UART_EASY_DMA_SUPPORT 1
#endif

// &amp;lt;q&amp;gt; UART_LEGACY_SUPPORT  - Driver supporting Legacy mode
 

#ifndef UART_LEGACY_SUPPORT
#define UART_LEGACY_SUPPORT 0
#endif

// &amp;lt;e&amp;gt; UART0_ENABLED - Enable UART0 instance
//==========================================================
#ifndef UART0_ENABLED
#define UART0_ENABLED 1
#endif
// &amp;lt;q&amp;gt; UART0_CONFIG_USE_EASY_DMA  - Default setting for using EasyDMA
 

#ifndef UART0_CONFIG_USE_EASY_DMA
#define UART0_CONFIG_USE_EASY_DMA 1
#endif
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52832][SDK 14.0][Keil] Hardware UART + Ble compilation issue</title><link>https://devzone.nordicsemi.com/thread/102193?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 09:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b4df87b-b64e-4528-a5c7-970ca9047c02</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you enabled app_uart in &lt;em&gt;sdk_config.h&lt;/em&gt;?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define APP_UART_ENABLED 1
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52832][SDK 14.0][Keil] Hardware UART + Ble compilation issue</title><link>https://devzone.nordicsemi.com/thread/102200?ContentTypeID=1</link><pubDate>Sat, 14 Oct 2017 19:56:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9656cbca-56b7-47ec-8be9-5795b7082b77</guid><dc:creator>karolalexander</dc:creator><description>&lt;p&gt;Hi Doug, thank you&lt;/p&gt;
&lt;p&gt;Ok, I tried to reduce the Path length but the error still remain. Not sure to understand why the linker doesn&amp;#39;t like long path File.
My SDK Folder is in my Desktop and the Path to Object folder look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;C:\Users\Alexander\Desktop\nRF5_SDK_14.0.0_3bcc1f7\examples\ble_peripheral\Alpha_LoRa_UART_3\pca10040\s132\arm4\_build
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What do you suggest ?
Alexander&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52832][SDK 14.0][Keil] Hardware UART + Ble compilation issue</title><link>https://devzone.nordicsemi.com/thread/102196?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 20:58:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d6b758b-faf0-416c-b37a-127baa33034e</guid><dc:creator>Doug_H</dc:creator><description>&lt;p&gt;Check the length of your path. If it has too many nested folders, the Keil linker will fail to find some of the object files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>