<?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>examples\ble_peripheral\ble_app_uart - PREPROCESSORS not being defined as expected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97570/examples-ble_peripheral-ble_app_uart---preprocessors-not-being-defined-as-expected</link><description>Hi, i am working on the example - examples\ble_peripheral\ble_app_uart from nRF SDK 17.1.0 using SES. I intend to use it on nRF52840 KD ( pca10056 s140 ). 
 At first I started working with SES 6.34a. Since I needed a quick ramp up, after getting troubled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Mar 2023 19:27:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97570/examples-ble_peripheral-ble_app_uart---preprocessors-not-being-defined-as-expected" /><item><title>RE: examples\ble_peripheral\ble_app_uart - PREPROCESSORS not being defined as expected</title><link>https://devzone.nordicsemi.com/thread/415817?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 19:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de6978b7-9371-4ed4-9577-abcb6e5bbf53</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Lal,&lt;/p&gt;
&lt;p&gt;I feel like I hardly help at all. Glad you got it working!&lt;/p&gt;
&lt;p&gt;Enjoy coding!&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: examples\ble_peripheral\ble_app_uart - PREPROCESSORS not being defined as expected</title><link>https://devzone.nordicsemi.com/thread/415747?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 14:08:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4cc42d2-d3d4-448a-97af-c2719827ed5e</guid><dc:creator>maveli</dc:creator><description>&lt;p&gt;Hi Hieu, thank you very much for your quick reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;GOT it solved !!!&lt;/p&gt;
&lt;p&gt;The path to sdk_config.h was pointing to &amp;quot;&lt;span style="color:#0000ff;"&gt;nRF5_SDK_17.1.0_ddde560\config\nrf52840\config&lt;/span&gt;&amp;quot; not to the example specific &amp;quot;&lt;span style="color:#0000ff;"&gt;examples\ble_peripheral\ble_app_uart\pca10056\s140\config&lt;/span&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again and best regards,&lt;/p&gt;
&lt;p&gt;Lal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: examples\ble_peripheral\ble_app_uart - PREPROCESSORS not being defined as expected</title><link>https://devzone.nordicsemi.com/thread/415570?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 21:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03c434d9-aac3-42cc-ac6f-8ff5d78931aa</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Lal,&lt;/p&gt;
[quote user="maveli"]a. is there somewhere other than sdk_config.h, the preprocessor&amp;nbsp;UART_ENABLED ?[/quote]
&lt;p&gt;No, it should only be defined there. You can search the entire SDK file content to confirm this.&lt;/p&gt;
[quote user="maveli"]b. If not why apply_old_config.h doesn&amp;#39;t recognize UART_ENABLED as set even if it is in sdk_config.h?[/quote]
&lt;p&gt;Is there a symptom that makes you think so? If it is the IDE UI, sometimes it just doesn&amp;#39;t&amp;nbsp;unravel the preprocessor correctly.&lt;/p&gt;
[quote user="maveli"]c. Very similarly why would NRFX_CHECK(NRFX_UART_ENABLED) is FALSE even though&amp;nbsp;&lt;span&gt;NRFX_UART_ENABLED is 1 in sdk_config.h?&lt;/span&gt;[/quote]
&lt;p&gt;apply_old_config.h can set it to 0 depends on other configurations. Are you absolutely sure you didn&amp;#39;t change anything other than paths in the project file?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: examples\ble_peripheral\ble_app_uart - PREPROCESSORS not being defined as expected</title><link>https://devzone.nordicsemi.com/thread/415543?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 15:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9667568-8160-428f-9f01-241f42841b75</guid><dc:creator>maveli</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;thanks for your reply.&lt;/p&gt;
&lt;p&gt;Yes I did a clean build and also tried with a clean falsh. No difference.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ble_app_uart works fine, when I try to compile it from the examples.&lt;/p&gt;
&lt;p&gt;As I mentioned above this build error is coming up when building at different location ( with correct paths); other examples are working fine with this location.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To keep the doubt simple:&lt;/p&gt;
&lt;p&gt;a. is there somewhere other than sdk_config.h, the preprocessor&amp;nbsp;UART_ENABLED ?&lt;/p&gt;
&lt;p&gt;b. If not why apply_old_config.h doesn&amp;#39;t recognize UART_ENABLED as set even if it is in sdk_config.h?&lt;/p&gt;
&lt;p&gt;c. Very similarly why would NRFX_CHECK(NRFX_UART_ENABLED) is FALSE even though&amp;nbsp;&lt;span&gt;NRFX_UART_ENABLED is 1 in sdk_config.h?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will be very thankful for your answers.&lt;/p&gt;
&lt;p&gt;Bests,&lt;/p&gt;
&lt;p&gt;Lal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: examples\ble_peripheral\ble_app_uart - PREPROCESSORS not being defined as expected</title><link>https://devzone.nordicsemi.com/thread/414841?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 10:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fa55115-33e3-49e8-bce4-14a736109296</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Lal,&lt;/p&gt;
&lt;p&gt;Have you cleaned and rebuilded your project after moving from SES 6.20 to 5.60?&lt;/p&gt;
&lt;p&gt;If not, I would recommend you start with an unmodified ble_app_uart example, apply your necessary location change configurations, and build from a clean state with SES v5.60.&lt;/p&gt;
&lt;p&gt;Another thing&amp;nbsp;to check is, have you cleaned the flash memory before flashing your sample? If not, please do that.&lt;/p&gt;
&lt;p&gt;I use the ble_app_uart fairly regularly and it does not require any modification like you are doing.&lt;/p&gt;
&lt;p&gt;The threads you linked are also for older versions of the SDK. If I remember correctly, the legacy driver integration, for example, has changed quite much between v15.0.0 and v17.1.0, so the information might not be applicable. I still suspect the &amp;quot;mixed compiler build&amp;quot; to be the issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>