<?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>Some WARNNING in compiling.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65752/some-warnning-in-compiling</link><description>Hi，ALL： 
 As top: 
 1.When Compiling file NRFX_TIMER.C,it warns :ISO C99 requires whitespace after the macro name. AND ：&amp;quot;APP_TIMER_V2&amp;quot; redefined。 and I only can find the APP_TIMER_V2 in configuration just used once.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Nov 2020 09:07:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65752/some-warnning-in-compiling" /><item><title>RE: Some WARNNING in compiling.</title><link>https://devzone.nordicsemi.com/thread/278379?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 09:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:694cebd9-ecf2-4133-8dc7-b919f260afec</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Good to hear! Glad I could help.&lt;br /&gt;&lt;br /&gt;The topic is now closed. Have a good day!&lt;br /&gt;&lt;br /&gt;Best regards,&amp;nbsp;&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some WARNNING in compiling.</title><link>https://devzone.nordicsemi.com/thread/278351?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 02:16:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7cf02a3-2599-4efb-bde6-4357483faeb5</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;Hi，Carl：&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Thank you for your reply, Pls close this topic,thank you!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some WARNNING in compiling.</title><link>https://devzone.nordicsemi.com/thread/269360?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 11:51:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73be0fff-4cdc-400f-9c42-94ab5f083f70</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello!&lt;br /&gt;&lt;br /&gt;Could you try to turn of compilation optimization in Segger and see if that helps? Right click the project, select &amp;quot;options&amp;quot; and choose &amp;quot;Optimization level&amp;quot;&amp;nbsp;&lt;strong&gt;none&lt;/strong&gt; for all project instances. See the picture below:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-b5c812ac4b874215bc7cd2759e32280f/pastedimage1600084219974v1.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;It could be that &amp;quot;m&amp;quot; is optimized away if it&amp;#39;s not used.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some WARNNING in compiling.</title><link>https://devzone.nordicsemi.com/thread/269234?ContentTypeID=1</link><pubDate>Sat, 12 Sep 2020 03:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07159b1f-3041-4523-a946-f2aad90d3843</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;Hi,Carl:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; About&amp;nbsp;the bTime1msInterval is solved,I changed it&amp;#39; type from union to staic bool. But this morning,I use a local parameter in a function.When reaching it,I can&amp;#39;t be changed correctly by OR 0x01.The code is blow:&lt;/p&gt;
&lt;p&gt;Step1:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7635._E06507689898_.png" /&gt;&lt;/p&gt;
&lt;p&gt;Step2:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_E06507689898_2.png" /&gt;&lt;/p&gt;
&lt;p&gt;when the PC reach m=m|0x01;,and surmount it,It&amp;#39;s value still is 0x00.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some WARNNING in compiling.</title><link>https://devzone.nordicsemi.com/thread/269155?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 11:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c449f789-162c-46c2-bbca-9a4d62b2ffe3</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;1. Good that it works with the nRF52833. What kind of warning do you get when compiling?&lt;br /&gt;&lt;br /&gt;2.&amp;nbsp;I see that &lt;strong&gt;&lt;span&gt;bTime1msInterval&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;is declared using&amp;nbsp;&lt;strong&gt;#define&lt;/strong&gt;, and using data from the &lt;strong&gt;timeflag1&lt;/strong&gt; union which doesn&amp;#39;t make much sense as&amp;nbsp;&lt;strong&gt;#define&amp;nbsp;&lt;/strong&gt;are handled during compilation, while&amp;nbsp;&lt;strong&gt;timeflag1&lt;/strong&gt; will be declared during runtime. What are you trying to achieve?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some WARNNING in compiling.</title><link>https://devzone.nordicsemi.com/thread/269003?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 13:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc45111b-c6ae-4c17-a6a5-779eaae43725</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;Hi,Carl Richard:&lt;/p&gt;
&lt;p&gt;1 .nrf5 SDk16&amp;nbsp; examples: BLE_APP_mouse&amp;nbsp; &amp;nbsp;But i have change to nrf52833 chip, and&amp;nbsp; it can work in a part of working not finished.Just come out the&amp;nbsp; warnning when compiling.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2.here,there is also a question:from the picture below, the bit flag bTime1msInterval has already been 0x01,while it can reach the next breakpoint.&amp;nbsp;En,the question is about the segger Embeded Studio,the bTime1msInterval is the bitfield&amp;nbsp; defined by me as below:&amp;nbsp; but even if()&amp;nbsp;statement has been no influence to it,Ex if(bTime1msInterval)...&lt;/p&gt;
&lt;p&gt;union &lt;br /&gt;{ &lt;br /&gt; uint32_t byte;&lt;br /&gt; struct{&lt;br /&gt; bool time1ms ;&lt;br /&gt; bool time1msinterval ;&lt;br /&gt; bool timepwmchange ;&lt;br /&gt; }bits;&lt;br /&gt;}timeflag1;&lt;/p&gt;
&lt;p&gt;#define vTimeFlag1 timeflag1.byte&lt;br /&gt;#define bTime1ms timeflag1.bits.time1ms&lt;br /&gt;#define bTime1msInterval timeflag1.bits.time1msinterval&lt;br /&gt;#define bTimePwmChange timeflag1.bits.timepwmchange&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1563._E06507689898_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some WARNNING in compiling.</title><link>https://devzone.nordicsemi.com/thread/268889?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 09:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:016cb326-957a-47b7-8e93-f65338e8981a</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;First some questions to clarify things:&lt;br /&gt;&lt;br /&gt;- What SDK are you using?&lt;br /&gt;&lt;br /&gt;- Are your code based on an example? If so, which and Is it modified?&lt;br /&gt;&lt;br /&gt;- What is your development environment?&lt;br /&gt;&lt;br /&gt;Could you also provide a more detailed log of the events?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>