<?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>Need conditional compilation for sdk_config crypto macros.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63122/need-conditional-compilation-for-sdk_config-crypto-macros</link><description>Hi Team, 
 We need conditional compilation between crypto engine related macros for CC310 and mbed TLS and micro-ECC. 
 If we add our own macros in &amp;quot;sdk_config.h&amp;quot; file we are getting some issues adn unable to add user defined macros in that file. 
 Our</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jun 2020 07:09:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63122/need-conditional-compilation-for-sdk_config-crypto-macros" /><item><title>RE: Need conditional compilation for sdk_config crypto macros.</title><link>https://devzone.nordicsemi.com/thread/257489?ContentTypeID=1</link><pubDate>Tue, 30 Jun 2020 07:09:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:114f57bb-287c-4e1c-98a9-f00c16e3e23b</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Srinivas.V,&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Srinivas V"]Thanks for your reply.[/quote]
&lt;p&gt;&lt;span&gt;No problem at all, I am happy to help.&lt;br /&gt;&lt;br /&gt;I would recommend bundling all your configuration #defines in a the sdk_config file, instead of spreading them out in different proprietary modules(unless you are using a separate config file for all your proprietary code modules, that practice is also fine). In both cases, I would recommend including your file in your main.c directly - or in your main proprietary code module - for clarity.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="Srinivas V"]if we add &amp;quot;&lt;span&gt;aes_Modes.h&amp;quot;&amp;nbsp;&lt;/span&gt;header file in &amp;quot;sdk_config.h&amp;quot; and do compilation we are getting below errors continuoulsy. if we comment this file it is compiling without any errors.[/quote]
&lt;p&gt;&lt;span&gt;From the errors generated it seems some of the defines from the sdk_config does not make it to the preprocessor.&amp;nbsp;&lt;br /&gt;Is there any errors generated when you compile aes_Modes on its own?&lt;br /&gt;Could you verify for me that the SEGGER_RTT_CONFIG_MAX_NUM_UP / DOWN_BUFFERS are defined in the sdk_config?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need conditional compilation for sdk_config crypto macros.</title><link>https://devzone.nordicsemi.com/thread/257453?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2020 17:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab5485fa-c826-4a96-b28b-7c58efb9e39a</guid><dc:creator>Srinivas V</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I have created a macros in one of my header file like&lt;/p&gt;
&lt;p&gt;aes_Modes.h&lt;/p&gt;
&lt;p&gt;#define CRYPTO_CC310&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;br /&gt;#define CRYPTO_MBEDTLS 1&lt;/p&gt;
&lt;p&gt;if we add &amp;quot;&lt;span&gt;aes_Modes.h&amp;quot;&amp;nbsp;&lt;/span&gt;header file in &amp;quot;sdk_config.h&amp;quot; and do compilation we are getting below errors continuoulsy. if we comment this file it is compiling without any errors.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/sdk_5F00_config_5F00_issue_5F00_screenshot.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Srinivas.V&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need conditional compilation for sdk_config crypto macros.</title><link>https://devzone.nordicsemi.com/thread/257351?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2020 11:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8d785d2-b44b-487a-a833-865fe0968f6a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Srinivas.V,&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/members/turboj"&gt;Turbo J&lt;/a&gt;&amp;nbsp;is correct with his comments about the proper preprocessor syntax, as well as the prompt for more information.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]If we add our own macros in &amp;quot;sdk_config.h&amp;quot; file we are getting some issues adn unable to add user defined macros in that file.[/quote]
&lt;p&gt;Could you please elaborate on what you mean when you say this? What issues are you experiencing, is there any errors generated / does the project compile at all?&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together,&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need conditional compilation for sdk_config crypto macros.</title><link>https://devzone.nordicsemi.com/thread/257295?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2020 08:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:143de2d9-1a5d-411f-abb7-6214dfaaa6b0</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="87768" url="~/f/nordic-q-a/63122/need-conditional-compilation-for-sdk_config-crypto-macros"]If we add our own macros in &amp;quot;sdk_config.h&amp;quot; file we are getting some issues adn unable to add user defined macros in that file.[/quote]
&lt;p&gt;Please elaborate. I don&amp;#39;t see a problem here unless you try to use the CMSIS configuration wizard.&lt;/p&gt;
&lt;p&gt;Note that your #else should rather be an #elif for correct preprocessor syntax.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>