<?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>ble_app_uart not building on GCC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4260/ble_app_uart-not-building-on-gcc</link><description>Hi,
I have downloaded the SDK 6.0 which contains the ble_app_uart and tried to compile it using GCC, but getting the following error which doesn&amp;#39;t make any sense because it is having braces: 
 
 ../ble_nus.c:197:2: error: (near initialization for </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 01 Nov 2014 13:16:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4260/ble_app_uart-not-building-on-gcc" /><item><title>RE: ble_app_uart not building on GCC</title><link>https://devzone.nordicsemi.com/thread/15211?ContentTypeID=1</link><pubDate>Sat, 01 Nov 2014 13:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27b9e9f1-4447-431f-87c7-512bc11e2b0b</guid><dc:creator>nav</dc:creator><description>&lt;p&gt;Double braces + using the github code worked. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart not building on GCC</title><link>https://devzone.nordicsemi.com/thread/15216?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2014 12:07:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c5d1bbd-537c-4759-b353-3074c9aae137</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Try this blog post, much easier to setup and work with Elcipse + GCC.  &lt;a href="http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html"&gt;embeddedsoftdev.blogspot.ca/.../ehal-nrf51.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart not building on GCC</title><link>https://devzone.nordicsemi.com/thread/15215?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2014 11:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffc4112e-f32c-4bcf-a7a4-cd1d7f10d642</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You should have a look at the makefile in the project I linked to in my answer. There are probably some missing files or incorrect paths in your makefile.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart not building on GCC</title><link>https://devzone.nordicsemi.com/thread/15214?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2014 10:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1c1edb7-74ea-4cdf-8f5e-f60f5e31b624</guid><dc:creator>nav</dc:creator><description>&lt;p&gt;Yes thanks, that solves the missing braces error. Now, I get a ton of undefined reference errors. Any suggestions? Sorry, I&amp;#39;m new to eclipse + GCC:&lt;/p&gt;
&lt;p&gt;D:\Nordic Semiconductor\nrf51_sdk_v6_0_0_43681\nrf51822\Board\pca10001\s110\experimental\ble_app_uart\gcc/../main.c:147: undefined reference to &lt;code&gt;app_timer_init&amp;#39; _build/main.o: In function&lt;/code&gt;advertising_init&amp;#39;:
D:\Nordic Semiconductor\nrf51_sdk_v6_0_0_43681\nrf51822\Board\pca10001\s110\experimental\ble_app_uart\gcc/../main.c:205: undefined reference to &lt;code&gt;ble_advdata_set&amp;#39; _build/main.o: In function&lt;/code&gt;nus_data_handler&amp;#39;:
D:\Nordic Semiconductor\nrf51_sdk_v6_0_0_43681\nrf51822\Board\pca10001\s110\experimental\ble_app_uart\gcc/../main.c:220: undefined reference to &lt;code&gt;simple_uart_put&amp;#39; D:\Nordic Semiconductor\nrf51_sdk_v6_0_0_43681\nrf51822\Board\pca10001\s110\experimental\ble_app_uart\gcc/../main.c:222: undefined reference to&lt;/code&gt;simple_uart_put&amp;#39;
_build/main.o: In function &lt;code&gt;conn_params_init&amp;#39;: D:\Nordic Semiconductor\nrf51_sdk_v6_0_0_43681\nrf51822\Board\pca10001\s110\experimental\ble_app_uart\gcc/../main.c:308: undefined reference to&lt;/code&gt;ble_conn_params_init&amp;#39;
_build/main.o: In function &lt;code&gt;ble_evt_dispatch&amp;#39;: D:\Nordic Semiconductor\nrf51_sdk_v6_0_0_43681\nrf51822\Board\pca10001\s110\experimental\ble_app_uart\gcc/../main.c:427: undefined reference to&lt;/code&gt;ble_conn_params_on_ble_evt&amp;#39;
_build/main.o: In function &lt;code&gt;ble_stack_init&amp;#39;: D:\Nordic Semiconductor\nrf51_sdk_v6_0_0_43681\nrf51822\Board\pca10001\s110\experimental\ble_app_uart\gcc/../main.c:442: undefined reference to&lt;/code&gt;softdevice_handler_init&amp;#39;
D:\Nordic Semiconductor\nrf51_sdk_v6_0_0_43681\nrf51822\Board\pca10001\s110\experimental\ble_app_uart\gcc/../main.c:452: undefined reference to &lt;code&gt;softdevice_ble_evt_handler_set&amp;#39; _build/main.o: In function&lt;/code&gt;uart_init&amp;#39;:
D:\Nordic Semiconductor\nrf51_sdk_v6_0_0_43681\nrf51822\Board\pca10001\s110\experimental\ble_app_uart\gcc/../main.c:480: undefined reference to &lt;code&gt;simple_uart_config&amp;#39; _build/main.o: In function&lt;/code&gt;UART0_IRQHandler&amp;#39;:
D:\Nordic Semiconductor\nrf51_sdk_v6_0_0_43681\nrf51822\Board\pca10001\s110\experimental\ble_app_uart\gcc/../main.c:504: undefined reference to &lt;code&gt;simple_uart_get&amp;#39; _build/main.o: In function&lt;/code&gt;main&amp;#39;:
D:\Nordic Semiconductor\nrf51_sdk_v6_0_0_43681\nrf51822\Board\pca10001\s110\experimental\ble_app_uart\gcc/../main.c:538: undefined reference to `simple_uart_putstring&amp;#39;
collect2.exe: error: ld returned 1 exit status
make: *** [_build/ble_app_uart_s110_xxaa.out] Error 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart not building on GCC</title><link>https://devzone.nordicsemi.com/thread/15213?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2014 09:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bcc0262-4ad4-429e-aa30-089db8abefc5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for giving an explanation of the warning!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart not building on GCC</title><link>https://devzone.nordicsemi.com/thread/15212?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2014 09:11:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5304089-9b9a-4e5b-84f8-95aaaafd969c</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;It&amp;#39;s gcc being picky, but correct&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;typedef struct {
    unsigned char uuid128[16];
} ble_uuid128_t;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You need braces for the initialisation of the unsigned char array and you need braces for the initialisation of the structure too. Hence you need 2 sets of braces for a valid initialiser.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart not building on GCC</title><link>https://devzone.nordicsemi.com/thread/15210?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2014 08:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce5f471e-cbff-4188-8584-c31d0aeca7b0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, don&amp;#39;t have a good explanation of why GCC complains about missing braces. However, adding extra braces seems to fix the problem:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ble_uuid128_t nus_base_uuid = {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0,  0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}};&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;EDIT: There&amp;#39;s is also a ble uart example on &lt;a href="https://github.com/NordicSemiconductor/nrf51-UART-examples/tree/master/app_uart_library_example_with_ble"&gt;github&lt;/a&gt; with GCC makefile included.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>