<?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>Baremetal Application Example and CPU setup source files.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80353/baremetal-application-example-and-cpu-setup-source-files</link><description>Hi there, 
 We are looking for an example application for the nRF5340 DK that runs a very basic baremetal application. All sample applications seems to be using the Zephyr OS. Could you please point me to such an application? 
 We are planning on using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Oct 2021 07:52:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80353/baremetal-application-example-and-cpu-setup-source-files" /><item><title>RE: Baremetal Application Example and CPU setup source files.</title><link>https://devzone.nordicsemi.com/thread/333841?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 07:52:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3130a72-8d56-4c62-8761-facfa795b6a0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Frikkie,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As mentioned, we do&amp;nbsp;not have any&amp;nbsp;bare metal implementation examples for nRF5340. As mentioned, we do supply the startup and system files, through the nRF MDK delivery available on our website, but you will have to include Zephyr OS in your project if you use NCS.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to setup a bare metal example, you have to do this from scratch.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Baremetal Application Example and CPU setup source files.</title><link>https://devzone.nordicsemi.com/thread/333789?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 17:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:382a1fd4-e7bf-40ee-b958-89c7daf74fd6</guid><dc:creator>Frikkie Badenhorst</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are there any update on this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Maybe some more context on what we want to achieve:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We want to get our existing application ported to the nRF5340 application core. Our current application uses a different real time embedded framework than the Zephyr OS (which we also want to use on the 5340 application core), hence we want to get a baremetal application running first so that we can start implementing the other OS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When it comes to the network core, like bluetooth and 802.15.4 stacks, we will use the existing Zephyr &lt;/span&gt;&lt;span&gt;RTOS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hence in summary, the network core will be running the Zephyr RTOS and the application core will be running the Zephyr RTOS as the bluetooth or other stacks may require.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is this even a possibility?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please advise ASAP.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Frikkie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Baremetal Application Example and CPU setup source files.</title><link>https://devzone.nordicsemi.com/thread/333572?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 14:56:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f867a59-2bf6-4bac-b138-3aeb38a4b617</guid><dc:creator>Frikkie Badenhorst</dc:creator><description>&lt;p&gt;Hi&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We are still new to the Nordic SDK and products and will thus have some more simple questions:&lt;/span&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/80353/baremetal-application-example-and-cpu-setup-source-files/333417#333417"]nRF Connect SDK has a direct dependency on Zephyr RTOS. Simple examples will still include the zephyr OS, although it will not look like it from an application point of view. Please see samples like zephyr/samples/hello_world.[/quote]
&lt;p&gt;We are playing around with the examples on the VS Code extension. However we&amp;nbsp;want to exclude the Zephyr OS completely from the project, but this does not seem to be possible? We try to remove&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;find_package&lt;/span&gt;&lt;span&gt;(Zephyr REQUIRED HINTS &lt;/span&gt;&lt;span&gt;$ENV{ZEPHYR_BASE}&lt;/span&gt;&lt;span&gt;) from cmakelists.txt, but just get a whole bunch of issues? Could you please advise how we can develop without using the Zephyr OS?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Baremetal Application Example and CPU setup source files.</title><link>https://devzone.nordicsemi.com/thread/333465?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 11:11:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fbe2940-8455-4447-b373-49f3b3a14d9e</guid><dc:creator>Frikkie Badenhorst</dc:creator><description>&lt;p&gt;Thanks &lt;span&gt;H&amp;aring;kon.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It would still be nice to have a baremetal example application for reference.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Baremetal Application Example and CPU setup source files.</title><link>https://devzone.nordicsemi.com/thread/333417?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 09:09:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f84a00f4-a508-4b62-95f3-8172d9218463</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Frikkie Badenhorst"]&lt;p&gt;Is there a specific reason that there are no baremetal example applications available? Possible to add this in future?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The problem with this nRF MDK is that it containt a lot of startup files, but unfortunately no documentation/guidelines are given on which files to use?&lt;/p&gt;[/quote]
&lt;p&gt;This is a supporting low-level device library, including register definitions, chip capability definitions, and startup scrips and system files (errata workarounds), which is meant to plug into a SDK, like NCS.&lt;/p&gt;
&lt;p&gt;You need to include the startup asm file and system .c file for your chosen device.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Frikkie Badenhorst"]Is it still possible to use the nRF Connect SDK when the Zephyr OS is not uses?[/quote]
&lt;p&gt;nRF Connect SDK has a direct dependency on Zephyr RTOS. Simple examples will still include the zephyr OS, although it will not look like it from an application point of view. Please see samples like zephyr/samples/hello_world.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Baremetal Application Example and CPU setup source files.</title><link>https://devzone.nordicsemi.com/thread/333394?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 07:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c65b99ae-d310-4b96-b950-a1c696f8ac98</guid><dc:creator>Frikkie Badenhorst</dc:creator><description>&lt;p&gt;Is there a specific reason that there are no baremetal example applications available? Possible to add this in future?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The problem with this nRF MDK is that it containt a lot of startup files, but unfortunately no documentation/guidelines are given on which files to use?&lt;/p&gt;
&lt;p&gt;Is it still possible to use the nRF Connect SDK when the Zephyr OS is not uses?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Baremetal Application Example and CPU setup source files.</title><link>https://devzone.nordicsemi.com/thread/332839?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 12:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9932a0a1-b66f-43b0-a98d-5caae1a88fcd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;We are looking for an example application for the nRF5340 DK that runs a very basic baremetal application. All sample applications seems to be using the Zephyr OS. Could you please point me to such an application?&lt;/p&gt;
&lt;p&gt;We are planning on using a different real time embedded framework than Zephyr. We thus require all the essential source files that sets up the CPU prior to the main function executing. Where can I find these files? We want to include these files directly in the IDE so that we have full control over it and can edit it if ever necessary?&lt;/p&gt;[/quote]
&lt;p&gt;Unfortunately, we do not have an example of a basic baremetal application for nRF5340.&lt;/p&gt;
&lt;p&gt;That being said, we do provide a standalone package with startup files and system files (erratas implementations etc) which is named &amp;quot;nRF MDK&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-MDK/Download?lang=en#infotabs"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-MDK/Download?lang=en#infotabs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will find startup files for all nRF5-series and nRF9160 in the above .zip file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>