<?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>Initialisation in Blinky example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62854/initialisation-in-blinky-example</link><description>I recently purchased nRF52840 DK. While scanning through the website, I came across a suggestion to start with Blinky example. I opened the project in Segger Embedded studio. A build and Run with kit connected, I could see the project working. 
 I wished</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jun 2020 11:29:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62854/initialisation-in-blinky-example" /><item><title>RE: Initialisation in Blinky example</title><link>https://devzone.nordicsemi.com/thread/256405?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 11:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae18f18d-aad7-44e7-a07b-31da8400f88d</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;The MSP is initialized in the startup files of the project. See arm_startup_nrf52840.s and gcc_startup_nrf52.s files at SDK_ROOT\modules\nrfx\mdk&lt;/p&gt;
[quote user="Himanshu"]I assume that the other features (NFC, I2S SPI) are left to default power up state(please confirm) but what about the stack pointer[/quote]
&lt;p&gt;&amp;nbsp;Yes, they will not be activated unless requested explicitly.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initialisation in Blinky example</title><link>https://devzone.nordicsemi.com/thread/256394?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 11:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aabf1310-ed13-4d42-9bcf-5801056ccbaf</guid><dc:creator>Himanshu</dc:creator><description>&lt;p&gt;My assumption is based on my previous experience with microcontroller.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When the controller is reset, the first instruction is to initialise stack pointer, pointing to the intended area of the RAM.&lt;/p&gt;
&lt;p&gt;I assume that the other features (NFC, I2S SPI) are left to default power up state(please confirm) but what about the stack pointer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initialisation in Blinky example</title><link>https://devzone.nordicsemi.com/thread/256314?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 07:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:430b17c6-b925-444d-b305-45bb3090197d</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;&amp;quot;Blinky without Softdevice&amp;quot; indicates that you&amp;#39;re using a project that doesn&amp;#39;t use BLE. So exactly which stack initialization are you expecting? Also, what features?&amp;nbsp; The peripherals of the nRF?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[quote user="Himanshu"][/quote]&lt;/p&gt;
&lt;p&gt;The function&lt;/p&gt;
&lt;p&gt;bsp_board_init(BSP_INIT_LEDS);&lt;/p&gt;
&lt;p&gt;initialises the pin out for LED. I had assumed that there would be more on initialisation.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Why are you assuming that?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initialisation in Blinky example</title><link>https://devzone.nordicsemi.com/thread/256271?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 16:52:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efe4f8f0-8695-48fd-bfb7-281ab29c6315</guid><dc:creator>Himanshu</dc:creator><description>&lt;p&gt;@Jared&lt;/p&gt;
&lt;p&gt;Many thanks for your response&lt;/p&gt;
&lt;p&gt;I have already downloaded SDK (the full folder name on my computer is nRF5SDK160098a08e2). I have followed the suggestion on infocenter and I am using the Blinky without Softdevice (from the blank folder).&lt;/p&gt;
&lt;p&gt;I go back to my original question. The Blinky project was &amp;lsquo;build and run&amp;rsquo;; this downloaded the program (hex file) into the kit. I could see the LED working.&lt;/p&gt;
&lt;p&gt;I wish to find out the various initialisation; this includes stack initialisation, initialisation of various features of the nRF52840 chipset.&lt;/p&gt;
&lt;p&gt;The function&lt;/p&gt;
&lt;p&gt;bsp_board_init(BSP_INIT_LEDS);&lt;/p&gt;
&lt;p&gt;initialises the pin out for LED. I had assumed that there would be more on initialisation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initialisation in Blinky example</title><link>https://devzone.nordicsemi.com/thread/256230?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 14:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e48c7220-d4b1-4f00-be47-98f3134af77c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial"&gt;This&lt;/a&gt;&amp;nbsp;is good start for a understanding on how to make your own BLE project.&lt;/p&gt;
&lt;p&gt;I also suggest that you download the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Software/nRF5-SDK/Download#infotabs"&gt;Software Development Kit&lt;/a&gt;&amp;nbsp;which contains several examples on how to use the peripherals on the nRF and several BLE example projects.&lt;/p&gt;
&lt;p&gt;There are several blinky examples in the SDK, it seems that you&amp;#39;re referring to the&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/gpio_example.html?cp=7_1_4_6_0"&gt; SDK example that doesn&amp;#39;t use the Softdevice&lt;/a&gt;. &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_blinky.html?cp=7_1_4_2_2_3"&gt;ble_app_blinky&lt;/a&gt; is a blinky example that has BLE.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp"&gt;Documentation&amp;nbsp;on the nRF52840, the SDK libraries and more can be found at infocenter&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Good luck with your projects&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>