<?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>Many warnings when compiling with nRF51822 and mbed librarys</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19693/many-warnings-when-compiling-with-nrf51822-and-mbed-librarys</link><description>Since September I get multiple warning messages on projects that use both the nRF51822 library and the mbed library. This is even true for example projects for the 51DK board.
I had heard that there was some incompatibilities between the 2 library that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Mar 2017 13:34:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19693/many-warnings-when-compiling-with-nrf51822-and-mbed-librarys" /><item><title>RE: Many warnings when compiling with nRF51822 and mbed librarys</title><link>https://devzone.nordicsemi.com/thread/76621?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2017 13:34:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d1ce2fc-61b0-4e5d-b9b5-891fd8ce24e5</guid><dc:creator>sgetz</dc:creator><description>&lt;p&gt;OK, thank you for the information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings when compiling with nRF51822 and mbed librarys</title><link>https://devzone.nordicsemi.com/thread/76620?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2017 08:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc32dea2-a5fe-42a8-9bc6-f55740ccb762</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;The Ticker was an implementation by mbed, seems that they deprecated it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings when compiling with nRF51822 and mbed librarys</title><link>https://devzone.nordicsemi.com/thread/76619?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2017 16:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0211c9c-6e0e-4e19-9c31-c2cf6d08a1e4</guid><dc:creator>sgetz</dc:creator><description>&lt;p&gt;If I get the URIBeacon project example I get:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Warning: Function &amp;quot;mbed::Ticker::attach_us(T *, M, timestamp_t) [with T=nRF5xGap, M=void (nRF5xGap::*)()]&amp;quot; (declared at &amp;lt;a href=&amp;quot;#&amp;quot; onmousedown=&amp;quot;mbed_doc_goto(&amp;#39;/BLE_URIBeaconxxx//extras/mbed_e1686b8d5b90/drivers/Ticker.h&amp;#39;, &amp;#39;121&amp;#39;); return false;&amp;quot;&amp;gt;/extras/mbed_e1686b8d5b90/drivers/Ticker.h:121&amp;lt;/a&amp;gt;) was declared &amp;quot;deprecated&amp;quot; in &amp;quot;nRF51822/TARGET_NRF5/source/nRF5xGap.h&amp;quot;, Line: 224, Col: 35
Warning: Function &amp;quot;mbed::Ticker::attach_us(T *, M, timestamp_t) [with T=nRF5xGap, M=void (nRF5xGap::*)()]&amp;quot; (declared at &amp;lt;a href=&amp;quot;#&amp;quot; onmousedown=&amp;quot;mbed_doc_goto(&amp;#39;/BLE_URIBeaconxxx//extras/mbed_e1686b8d5b90/drivers/Ticker.h&amp;#39;, &amp;#39;121&amp;#39;); return false;&amp;quot;&amp;gt;/extras/mbed_e1686b8d5b90/drivers/Ticker.h:121&amp;lt;/a&amp;gt;) was declared &amp;quot;deprecated&amp;quot; in &amp;quot;nRF51822/TARGET_NRF5/source/nRF5xGap.h&amp;quot;, Line: 224, Col: 35
Warning: Function &amp;quot;mbed::Ticker::attach_us(T *, M, timestamp_t) [with T=nRF5xGap, M=void (nRF5xGap::*)()]&amp;quot; (declared at &amp;lt;a href=&amp;quot;#&amp;quot; onmousedown=&amp;quot;mbed_doc_goto(&amp;#39;/BLE_URIBeaconxxx//extras/mbed_e1686b8d5b90/drivers/Ticker.h&amp;#39;, &amp;#39;121&amp;#39;); return false;&amp;quot;&amp;gt;/extras/mbed_e1686b8d5b90/drivers/Ticker.h:121&amp;lt;/a&amp;gt;) was declared &amp;quot;deprecated&amp;quot; in &amp;quot;nRF51822/TARGET_NRF5/source/nRF5xGap.h&amp;quot;, Line: 224, Col: 35
Warning: Incompatible redefinition of macro &amp;quot;ASSERT&amp;quot; (declared at &amp;lt;a href=&amp;quot;#&amp;quot; onmousedown=&amp;quot;mbed_doc_goto(&amp;#39;/BLE_URIBeaconxxx//extras/mbed_e1686b8d5b90/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.h&amp;#39;, &amp;#39;91&amp;#39;); return false;&amp;quot;&amp;gt;/extras/mbed_e1686b8d5b90/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.h:91&amp;lt;/a&amp;gt;) in &amp;quot;nRF51822/TARGET_NRF5/source/common/assertion.h&amp;quot;, Line: 128, Col: 10
Warning: Function &amp;quot;mbed::Ticker::attach_us(T *, M, timestamp_t) [with T=nRF5xGap, M=void (nRF5xGap::*)()]&amp;quot; (declared at &amp;lt;a href=&amp;quot;#&amp;quot; onmousedown=&amp;quot;mbed_doc_goto(&amp;#39;/BLE_URIBeaconxxx//extras/mbed_e1686b8d5b90/drivers/Ticker.h&amp;#39;, &amp;#39;121&amp;#39;); return false;&amp;quot;&amp;gt;/extras/mbed_e1686b8d5b90/drivers/Ticker.h:121&amp;lt;/a&amp;gt;) was declared &amp;quot;deprecated&amp;quot; in &amp;quot;nRF51822/TARGET_NRF5/source/nRF5xGap.h&amp;quot;, Line: 224, Col: 35
Warning: Incompatible redefinition of macro &amp;quot;ASSERT&amp;quot; (declared at &amp;lt;a href=&amp;quot;#&amp;quot; onmousedown=&amp;quot;mbed_doc_goto(&amp;#39;/BLE_URIBeaconxxx//extras/mbed_e1686b8d5b90/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.h&amp;#39;, &amp;#39;91&amp;#39;); return false;&amp;quot;&amp;gt;/extras/mbed_e1686b8d5b90/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.h:91&amp;lt;/a&amp;gt;) in &amp;quot;nRF51822/TARGET_NRF5/source/common/assertion.h&amp;quot;, Line: 128, Col: 10
Warning: Function &amp;quot;mbed::Ticker::attach_us(T *, M, timestamp_t) [with T=nRF5xGap, M=void (nRF5xGap::*)()]&amp;quot; (declared at &amp;lt;a href=&amp;quot;#&amp;quot; onmousedown=&amp;quot;mbed_doc_goto(&amp;#39;/BLE_URIBeaconxxx//extras/mbed_e1686b8d5b90/drivers/Ticker.h&amp;#39;, &amp;#39;121&amp;#39;); return false;&amp;quot;&amp;gt;/extras/mbed_e1686b8d5b90/drivers/Ticker.h:121&amp;lt;/a&amp;gt;) was declared &amp;quot;deprecated&amp;quot; in &amp;quot;nRF51822/TARGET_NRF5/source/nRF5xGap.h&amp;quot;, Line: 224, Col: 35
Warning: Function &amp;quot;mbed::Ticker::attach_us(T *, M, timestamp_t) [with T=nRF5xGap, M=void (nRF5xGap::*)()]&amp;quot; (declared at &amp;lt;a href=&amp;quot;#&amp;quot; onmousedown=&amp;quot;mbed_doc_goto(&amp;#39;/BLE_URIBeaconxxx//extras/mbed_e1686b8d5b90/drivers/Ticker.h&amp;#39;, &amp;#39;121&amp;#39;); return false;&amp;quot;&amp;gt;/extras/mbed_e1686b8d5b90/drivers/Ticker.h:121&amp;lt;/a&amp;gt;) was declared &amp;quot;deprecated&amp;quot; in &amp;quot;nRF51822/TARGET_NRF5/source/nRF5xGap.h&amp;quot;, Line: 224, Col: 35
Warning: Incompatible redefinition of macro &amp;quot;ASSERT&amp;quot; (declared at &amp;lt;a href=&amp;quot;#&amp;quot; onmousedown=&amp;quot;mbed_doc_goto(&amp;#39;/BLE_URIBeaconxxx//extras/mbed_e1686b8d5b90/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.h&amp;#39;, &amp;#39;91&amp;#39;); return false;&amp;quot;&amp;gt;/extras/mbed_e1686b8d5b90/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.h:91&amp;lt;/a&amp;gt;) in &amp;quot;nRF51822/TARGET_NRF5/source/common/assertion.h&amp;quot;, Line: 128, Col: 10
Success: Success! in &amp;quot;&amp;lt;a href=&amp;quot;#&amp;quot; onClick=&amp;quot;mbed_navigate_to(&amp;#39;/BLE_URIBeaconxxx&amp;#39;, function() { theitf.controls.get(&amp;#39;sidebar_tabs&amp;#39;).activate(1); }); return false;&amp;quot;&amp;gt;Build Details&amp;lt;/a&amp;gt;&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It does seems to function.
If I were new to your products and evaluating them, I would assume something was wrong.  It does not inspire confidence.
Who is in charge of the nRF51822 library? Nordic or mbed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings when compiling with nRF51822 and mbed librarys</title><link>https://devzone.nordicsemi.com/thread/76618?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2017 16:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c077cacd-181d-454a-876c-f72942e71c2d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I can see I got warning: Warning: Incompatible redefinition of macro &amp;quot;NRF51&amp;quot; in &amp;quot;BLE_API/common/blecommon.h&amp;quot;, Line: 20, Col: 10&lt;/p&gt;
&lt;p&gt;It not very critical from my point of view. Have you got other warning as well ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings when compiling with nRF51822 and mbed librarys</title><link>https://devzone.nordicsemi.com/thread/76617?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2017 13:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b1c4162-2f0a-4a1c-96b8-d44911b48f84</guid><dc:creator>sgetz</dc:creator><description>&lt;p&gt;Posted on mbed site.  No answer from them.
Seems to be an incompatibility between nRF51822 and mbed libraries.  one or the other needs to change.
In the mean time, Nordic development products show lots of warnings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings when compiling with nRF51822 and mbed librarys</title><link>https://devzone.nordicsemi.com/thread/76616?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2017 10:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ebfb14e-99f5-40a2-b790-ed5721d89025</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sgetz,&lt;/p&gt;
&lt;p&gt;I would suggest you direct this question to mbed team on mbed forum.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>