<?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>Combining Different Apps</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68721/combining-different-apps</link><description>Hi, 
 I want to add my flash driver code to http_sample_update example. How can I combine these two applications. I want to use the flash driver on http example since I need to send the data that I dowloaded via http example to external flash with spi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Nov 2020 09:41:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68721/combining-different-apps" /><item><title>RE: Combining Different Apps</title><link>https://devzone.nordicsemi.com/thread/281988?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 09:41:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7710f27a-e921-47d0-9859-79ab555b6269</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi, Verulia!&lt;/p&gt;
&lt;p&gt;Correct me if I&amp;#39;m wrong, are you referring to the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/http_application_update/README.html"&gt;http_application_update sample&lt;/a&gt;? Anyway, to use your flash driver code with your sample I suggest that you add the flash driver source code to the http_application_update/src folder and expose the relevant functionality with a header file, called flash_driver.h for example. You will also have to add the configurations from the prj.conf of the flash driver to the prj.conf of the main project. Lastly you must update CMakeLists.txt to be aware of the additional source files. To do this for a single source file, like flash_driver.c, add the following line of code:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;target_sources(app PRIVATE src/flash_driver.c)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Below I have attached a simple demonstration on how additional sources can be added to an NCS project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4130.include_5F00_demo.zip"&gt;devzone.nordicsemi.com/.../4130.include_5F00_demo.zip&lt;/a&gt;&lt;br /&gt;Hope this helps you on your way!&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>