<?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>Assembly Startup Files.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59612/assembly-startup-files</link><description>Hello, 
 I&amp;#39;m trying to create a project from scratch and write my own drivers. I have strong background in C but unfortunately I don&amp;#39;t know anything about assembly. I could use a little help to understand the base of the projects / examples that are provided</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Apr 2020 20:56:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59612/assembly-startup-files" /><item><title>RE: Assembly Startup Files.</title><link>https://devzone.nordicsemi.com/thread/243467?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 20:56:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3033189-a5a7-47cc-9d29-50452d2a26c6</guid><dc:creator>George555</dc:creator><description>&lt;p&gt;Thanks for your help! &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assembly Startup Files.</title><link>https://devzone.nordicsemi.com/thread/242287?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 06:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9bcfe8c-cdb1-479e-9cd3-aec1a71aff94</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=""]ses_startup_nrf_common.s[/quote]
&lt;p&gt;This file includes certain options, like running vectors in RAM etc, and a very crucial section, loading all sections marked &amp;quot;nrf_sections&amp;quot;, which is used by basically all applications in the SDK.&lt;/p&gt;
[quote user=""]ses_startup_nrf51.s[/quote]
&lt;p&gt;That is the startup file for nrf51, which holds a weak implementation of all interrupt vectors.&lt;/p&gt;
&lt;p&gt;Weak means that you can override the definitions by declaring the interrupt handler in your application, thus it&amp;#39;ll go there instead of the weak implementation in the asm file.&amp;nbsp;&lt;/p&gt;
[quote user=""]thumb.crt0.s[/quote]
&lt;p&gt;See here:&amp;nbsp;&lt;a href="https://studio.segger.com/index.htm?https://studio.segger.com/arm_crt0.htm"&gt;https://studio.segger.com/index.htm?https://studio.segger.com/arm_crt0.htm&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I see different assembly files than the examples have. As long as the project above builds and runs fine can I add my own C code on top of it?[/quote]
&lt;p&gt;I wouldn&amp;#39;t recommend building on top of generic cortex asm files. Use the one&amp;#39;s that matches the device you&amp;#39;re running on, in this case nrf51.&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>