<?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>no source available for &amp;quot;0x0&amp;quot; in eclipse</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22576/no-source-available-for-0x0-in-eclipse</link><description>Hello, 
 I caused a hardfault error and triggered the HardFault_Handler in &amp;quot;hardfault_handler_gcc.c&amp;quot;. But instead seeint its source, I could only see the message no source available for &amp;quot;0x0&amp;quot; in eclipse. 
 What went wrong ? 
 Best regards,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Sep 2017 14:48:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22576/no-source-available-for-0x0-in-eclipse" /><item><title>RE: no source available for "0x0" in eclipse</title><link>https://devzone.nordicsemi.com/thread/88818?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 14:48:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:889ecf2c-0539-4739-9983-7a7c8a7ca1ba</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The interrupts handler are declared as [weak] in the startup file, which means that you can re-declare it in your application. Then e.g. make a call to the NVIC_SystemReset function to make your program reset on hardfault. But, the default behavior is to run in infinite loops, which is usefully for debugging.&lt;/p&gt;
&lt;p&gt;See the &lt;code&gt;hardfault_implementation.c&lt;/code&gt;file located in &lt;code&gt;SDK_folder\components\libraries\hardfault\hardfault_implementation.c&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no source available for "0x0" in eclipse</title><link>https://devzone.nordicsemi.com/thread/88817?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 17:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fcd9680-8a1f-406e-af36-039ebbd1fd6c</guid><dc:creator>Tru Pheenix</dc:creator><description>&lt;p&gt;How can we redeclare the hardfault handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no source available for "0x0" in eclipse</title><link>https://devzone.nordicsemi.com/thread/88819?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2017 07:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d217547d-4402-4997-832f-796f872846e2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;GCC/eclipse is a bit more demanding to get working compared to Keil where everything works out of the box, but should work quite nicely once you get it up and running.&lt;/p&gt;
&lt;p&gt;The hardfault handler is declared in the startup file, but CDT does not parse this file since it&amp;#39;s an assembly file. Note that you can re-declare it in your application. ( WEAK declaration in startup)&lt;/p&gt;
&lt;p&gt;Steps to incude asm files in CDT:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;change the file extension from .s to capital .S in /components/toolchain/gcc&lt;/li&gt;
&lt;li&gt;Add the -g3 option to the assembler flags in your makefile.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no source available for "0x0" in eclipse</title><link>https://devzone.nordicsemi.com/thread/88816?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2017 07:15:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:756836d0-3d93-4718-9ced-c94de0db8413</guid><dc:creator>telemedcar</dc:creator><description>&lt;p&gt;Why does it work in the KEIL uvision environemnt ? There I am able to step through the &amp;quot;hardfault_handler_keil.c&amp;quot; until I get into the HardFault_c_handler of &amp;quot;hardfault_implementation.c&amp;quot;&lt;/p&gt;
&lt;p&gt;I guess there are some settings in the Eclipse project or in Eclipse environment  itself which are not right.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no source available for "0x0" in eclipse</title><link>https://devzone.nordicsemi.com/thread/88815?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 08:21:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:004bbce9-2900-4758-96b9-7bdb11666b39</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi, I believe &lt;a href="https://devzone.nordicsemi.com/question/63655/no-source-available-for-in-debug-mode/"&gt;this devzone post&lt;/a&gt; should answer your question. Quote RK:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;the entire source of the hardfault
handler is that piece of assembler on
the right hand side which does
nothingbut branch to itself forever.
of course there&amp;#39;s no source for the
hardfault handler - it&amp;#39;s not a C
function.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no source available for "0x0" in eclipse</title><link>https://devzone.nordicsemi.com/thread/88821?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 11:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc2ab439-d4a7-4dd9-9dc9-1c8d7495515d</guid><dc:creator>telemedcar</dc:creator><description>&lt;p&gt;Actually, this is  my current setting in the makefile. However, this did not solve the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no source available for "0x0" in eclipse</title><link>https://devzone.nordicsemi.com/thread/88820?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 08:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b13562d8-1936-4778-912f-2ef82a267cec</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try to remove the compiler optimization. In the makefile: &lt;code&gt;CFLAGS += -Wall -Werror -O0 -g3&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>