<?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>nrf_drv_saadc.c doesn&amp;#39;t compile with gcc, SDK 13.0.0. EVT_TO_STR() compares nrf_saadc_limit_t to enum.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21325/nrf_drv_saadc-c-doesn-t-compile-with-gcc-sdk-13-0-0-evt_to_str-compares-nrf_saadc_limit_t-to-enum</link><description>Hi. I don&amp;#39;t understand how to build nrf_drv_saadc.c with gcc. I&amp;#39;m getting this error in the EVT_TO_STR() macro: 
 Compiling file: nrf_drv_saadc.c
In file included from /Users/eliot/dev/nRF5_SDK_13.0.0_04a0bfd/components/libraries/log/nrf_log.h:97:0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Sep 2017 14:50:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21325/nrf_drv_saadc-c-doesn-t-compile-with-gcc-sdk-13-0-0-evt_to_str-compares-nrf_saadc_limit_t-to-enum" /><item><title>RE: nrf_drv_saadc.c doesn't compile with gcc, SDK 13.0.0. EVT_TO_STR() compares nrf_saadc_limit_t to enum.</title><link>https://devzone.nordicsemi.com/thread/83535?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 14:50:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c83f97d-37ae-4d76-bde0-1776e5c40c86</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;@Vidar Berg I&amp;#39;m still seeing this in SDK 14.0.0. What happened to your bug report?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_saadc.c doesn't compile with gcc, SDK 13.0.0. EVT_TO_STR() compares nrf_saadc_limit_t to enum.</title><link>https://devzone.nordicsemi.com/thread/83534?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 13:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:377f2b41-bc0d-464d-8a56-006a36b71cc7</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;ll either turn off logging for SAADC or use -O3 until it&amp;#39;s fixed. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_saadc.c doesn't compile with gcc, SDK 13.0.0. EVT_TO_STR() compares nrf_saadc_limit_t to enum.</title><link>https://devzone.nordicsemi.com/thread/83533?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 13:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cdc4b46-5c38-4022-b5ec-f8262b4777bb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, you should expect all examples to build without optimization. Have created a bug report internally for this. Sorry for the inconvenience.&lt;/p&gt;
&lt;p&gt;Assume it builds if you disable logging for this module in sdk_config.h?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_saadc.c doesn't compile with gcc, SDK 13.0.0. EVT_TO_STR() compares nrf_saadc_limit_t to enum.</title><link>https://devzone.nordicsemi.com/thread/83532?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 13:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf2f20b9-2ac3-44cb-95c1-b8326d739e02</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;With -O3, it compiles OK, thanks! I need to use -Og elsewhere though, and it seems reasonable to expect the SDK to compile with -Og throughout. Is this an SDK bug then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_saadc.c doesn't compile with gcc, SDK 13.0.0. EVT_TO_STR() compares nrf_saadc_limit_t to enum.</title><link>https://devzone.nordicsemi.com/thread/83531?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 12:48:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40a16764-4c7c-46c0-afb9-41de893bf28c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Ok, it doesn&amp;#39;t seem to work when compiled with optimization on, please try with -O3 and see if you get the same result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_saadc.c doesn't compile with gcc, SDK 13.0.0. EVT_TO_STR() compares nrf_saadc_limit_t to enum.</title><link>https://devzone.nordicsemi.com/thread/83530?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 12:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8109a138-bbd3-4320-8c6e-20dbdcb8f301</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Thanks for the quick response. If I turn off logging for SAADC (SAADC_CONFIG_LOG_ENABLED set to 0) in my own project, this compiles OK. If I build /examples/peripheral/saadc/pca10040/blank/armgcc, it compiles OK, but that project has SAADC_CONFIG_LOG_ENABLED off. If I turn it on, it still compiles OK. I&amp;#39;ll post my Makefile above now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_saadc.c doesn't compile with gcc, SDK 13.0.0. EVT_TO_STR() compares nrf_saadc_limit_t to enum.</title><link>https://devzone.nordicsemi.com/thread/83529?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 12:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:021db9be-1cc4-4bd2-842d-c15e7c60dfd7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Eliot, makefile for the SAADC should be located in the following directory: nRF5_SDK_13.0.0_04a0bfd\examples\peripheral\saadc\pca10040\blank\armgcc. Are you sure you don&amp;#39;t have it? You can try to disable logging for this module just to check if these are the only errors (i.e., set SAADC_CONFIG_LOG_ENABLED to 0 in sdk_config.h)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>