<?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>Linking error while adding a service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69919/linking-error-while-adding-a-service</link><description>Hi, I try to implement adding a custom service to the BLE GATT stack by following this tutorial , but I faced a problem which looks like a linking problem 
 So far, I finished by step 3 in the tutorial and got this error. 
 I think I followed the instruction</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Dec 2020 06:53:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69919/linking-error-while-adding-a-service" /><item><title>RE: Linking error while adding a service</title><link>https://devzone.nordicsemi.com/thread/286635?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 06:53:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05c45682-c769-4b7b-9be9-095132df14b8</guid><dc:creator>Hariboss</dc:creator><description>&lt;p&gt;Bro I added a directory link for ble_cus.c in emproject file and it works properly.&lt;/p&gt;
&lt;p&gt;Thanks a lot for your help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking error while adding a service</title><link>https://devzone.nordicsemi.com/thread/286634?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 06:50:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c3796d4-2e51-433e-8794-93086718af96</guid><dc:creator>Henry_Chou</dc:creator><description>&lt;p&gt;The map file will show the reference such as following:&lt;/p&gt;
&lt;p&gt;Component: ARM Compiler 5.06 update 3 (build 300) Tool: armlink [4d35c9]&lt;/p&gt;
&lt;p&gt;==============================================================================&lt;/p&gt;
&lt;p&gt;Section Cross References&lt;/p&gt;
&lt;p&gt;main.o(i.assert_nrf_callback) refers to app_error_handler_keil.o(.emb_text) for app_error_handler&lt;br /&gt; main.o(i.ble_evt_handler) refers to peer_manager_handler.o(i.pm_handler_secure_on_connection) for pm_handler_secure_on_connection&lt;br /&gt; main.o(i.ble_evt_handler) refers to nrf_log_frontend.o(i.nrf_log_frontend_std_0) for nrf_log_frontend_std_0&lt;br /&gt; main.o(i.ble_evt_handler) refers to bsp.o(i.bsp_indication_set) for bsp_indication_set&lt;br /&gt; main.o(i.ble_evt_handler) refers to app_error.o(i.app_error_handler_bare) for app_error_handler_bare&lt;br /&gt; main.o(i.ble_evt_handler) refers to ble_conn_state.o(i.ble_conn_state_central_conn_count) for ble_conn_state_central_conn_count&lt;br /&gt; main.o(i.ble_evt_handler) refers to main.o(i.scan_start) for scan_start&lt;br /&gt; main.o(i.ble_evt_handler) refers to nrf_log_frontend.o(i.nrf_log_frontend_std_2) for nrf_log_frontend_std_2&lt;br /&gt; main.o(i.ble_evt_handler) refers to nrf_log_frontend.o(log_const_data) for m_nrf_log_app_logs_data_const&lt;br /&gt; main.o(i.ble_evt_handler) refers to main.o(.data) for .data&lt;/p&gt;
&lt;p&gt;You may check your link error, if the object file is exist in your project or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking error while adding a service</title><link>https://devzone.nordicsemi.com/thread/286630?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 05:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b708687-79f8-4e58-af2b-20371a79bd32</guid><dc:creator>Hariboss</dc:creator><description>&lt;p&gt;I check main.o file, but there were a bunch of assembly languages.. any idea for checking the map file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking error while adding a service</title><link>https://devzone.nordicsemi.com/thread/286629?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 05:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66c265d1-511a-4d1e-adbc-81b3b5a02d70</guid><dc:creator>Henry_Chou</dc:creator><description>&lt;p&gt;The compiler link error mention that...The ble_cus_init() is undefined, Normally, It&amp;#39;s must be the object file lose &amp;quot;ble_nus.c&amp;quot;. You may check the map file the file is in your project or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking error while adding a service</title><link>https://devzone.nordicsemi.com/thread/286628?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 05:17:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0674bd09-0029-4747-aca7-f817f5f7eaa0</guid><dc:creator>Hariboss</dc:creator><description>&lt;p&gt;Since those codes that you mentioned are a part of the tutorial and commented, I don&amp;#39;t need them in the current step&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking error while adding a service</title><link>https://devzone.nordicsemi.com/thread/286626?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 05:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e839610b-bcde-4493-87cc-cf6e94eabcfb</guid><dc:creator>Henry_Chou</dc:creator><description>&lt;p&gt;What&amp;#39;s your&amp;nbsp;ble_yy_service_init() function. It&amp;#39;s null in your statement. By the way you should include &amp;quot;ble_bas.h&amp;quot; Because you apply the ble bas initial.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>