<?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>Trying to add uart functionality to the dimming example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77026/trying-to-add-uart-functionality-to-the-dimming-example</link><description>Currently I am trying to add uart functionality to the dimming client from the mesh dimming example, but I just can never seem to get it to compile. I can confirm my uart code works and compiled as I have used it in the nrf5sdk and compiles fine there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Jul 2021 18:20:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77026/trying-to-add-uart-functionality-to-the-dimming-example" /><item><title>RE: Trying to add uart functionality to the dimming example</title><link>https://devzone.nordicsemi.com/thread/318690?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 18:20:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaeb5814-4efa-47e1-82be-b46d8ab8bf0d</guid><dc:creator>Jeffe</dc:creator><description>&lt;p&gt;UPDATE: Great news, I have managed to successfully build my project. It seems like there was a lot of hoops to jump through in terms of including and adding the necessary source and header files to the project, and I missed a few.&lt;/p&gt;
&lt;p&gt;In my particular case, here is what I did to add my uart code into the dimming client example (although this most likely is applicable to all mesh examples with the same or very similar steps) for others that may take a look at this thread:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ADD these include paths to the include search paths (in project options-&amp;gt;common-&amp;gt;preprocessor-&amp;gt;user include directories:&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;(your nrf5SDK folder)/components/libraries/uart&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;(your nrf5SDK folder)/integration/nrfx/legacy&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;(your nrf5SDK folder)/components/libraries/fifo&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;ADD these source files to the project:&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;app_fifo.c&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;app_uart_fifo.c&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;nrf_drv_uart.c&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;nrfx_atomic.c&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;nrfx_prs.c&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;nrfx_uart.c&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;nrfx_uarte.c&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;retarget.c&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;ADD these directives to either app_config.h or sdk_config.h&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;#ifndef APP_FIFO_ENABLED&lt;br /&gt;#define APP_FIFO_ENABLED 1&lt;br /&gt;#endif&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;#ifndef APP_UART_ENABLED&lt;br /&gt;#define APP_UART_ENABLED 1&lt;br /&gt;#endif&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;#ifndef APP_UART_DRIVER_INSTANCE&lt;br /&gt;#define APP_UART_DRIVER_INSTANCE 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;#ifndef NRFX_PRS_ENABLED&lt;br /&gt;#define NRFX_PRS_ENABLED 1&lt;br /&gt;#endif&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;#ifndef NRFX_PRS_BOX_4_ENABLED&lt;br /&gt;#define NRFX_PRS_BOX_4_ENABLED 1&lt;br /&gt;#endif&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;Finally, make sure UART_ENABLED is set to 1 and UART0_ENABLED is set to 1. If using easyDMA make sure those are set accordingly as well&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;I havent tested my example yet so I am not sure if the uart works properly in practice, but I have already solved my issues with compiling/building so the problem is resolved&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to add uart functionality to the dimming example</title><link>https://devzone.nordicsemi.com/thread/318678?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 15:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3238b20-fce2-435a-9063-c474e9c8f27c</guid><dc:creator>Jeffe</dc:creator><description>&lt;p&gt;Sorry for the late reply. I am using the the nRF5 SDK 17.0.2 and the nRF5 SDK for Mesh V5.0.0 (I believe those are the latest versions). I have set up my environment as described in the docs (so both the 17.0.2 and Mesh SDK are in the same root folder). I use segger embedded studio to write and build applications.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The link you sent is exactly how i add my files - manually add the source files and adding the necessary include paths in common-&amp;gt;preprocessors-&amp;gt;user include directories&lt;/p&gt;
&lt;p&gt;I guess to clarify my problem - basically in this case I am having trouble identifying all the dependencies required for uart from the 17.0.2 nRF5 SDK to add to the current Mesh example, and have tried all the above steps as described in my initial post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to add uart functionality to the dimming example</title><link>https://devzone.nordicsemi.com/thread/318551?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 07:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84f9a8a0-5d43-4d8e-9413-0c8f75d8b6db</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What version of&amp;nbsp;&lt;span&gt;nRF5 SDK for Mesh are you using?&amp;nbsp;&lt;/span&gt;&lt;span&gt;Have a look at this doc:&amp;nbsp;&lt;a title="Adding files" href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/add_content_ses.html?cp=1_1_2_7_5"&gt;Adding files&lt;/a&gt;&amp;nbsp;in SES.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Amamda&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to add uart functionality to the dimming example</title><link>https://devzone.nordicsemi.com/thread/318315?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 23:35:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a65e6d30-49a7-4b3f-9ed4-3aa1247f37ea</guid><dc:creator>Jeffe</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dimminCopy.zip"&gt;devzone.nordicsemi.com/.../dimminCopy.zip&lt;/a&gt; ---This is what my project looks like after doing step 6 but before doing the mess that is step 7 if this helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>