<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: printf() on uart0 hard fault in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555663#M13786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xpresso_1769 on Thu Aug 23 04:15:04 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I forgot to post the user manual for the IEC60335 from nxp!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.nxp.com/documents/application_note/AN10918.pdf&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kind regards!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:11:15 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:11:15Z</dc:date>
    <item>
      <title>printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555657#M13780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xpresso_1769 on Wed Aug 22 06:54:34 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with Red Suite on a LPC1768. At the moment I have a problem with printf() on uart0. To be more precicely: If the debugger enter the printf() function. I get a Hard Fault! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I create a new empty Semihost Project the printf() comand works! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Things to say:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The code I use is taken from the uart_printf template from Code Red. (uart0.h, uart0.c, retarget.c)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- It is a semihost project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attachement is a desktop print of the core registers and the .c/.h files I use...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody nows how to fix this or nows how to find my mistake?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555657#M13780</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555658#M13781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Aug 22 07:18:16 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: xpresso_1769&lt;/STRONG&gt;&lt;BR /&gt;Does anybody nows how to fix this or nows how to find my mistake?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Post your project, it's easier to import your project with all settings than guessing and creating new projects with your files :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: Your zip file seems to be damaged :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555658#M13781</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555659#M13782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xpresso_1769 on Wed Aug 22 07:24:45 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh, your right. Hier the new zip-File!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555659#M13782</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555660#M13783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xpresso_1769 on Thu Aug 23 01:22:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a littel bit further. The hard fault is based on my RAM pattern test at the begining of my main loop. Herefor I use the NXP "Cortex-M3 IEC60335 Class B library". This storage test leaves in all RAM registers a 0x55555555. That means all of my Ram content is gone...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any relation between Ram content and printf() Funktion?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555660#M13783</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555661#M13784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ex-kayoda on Thu Aug 23 01:38:59 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know what you are trying to do and what you are expecting here :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You've damaged or mutilated your project, so what are you expecting without showing this project&amp;nbsp; ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now, you've started a monologue :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555661#M13784</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555662#M13785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xpresso_1769 on Thu Aug 23 04:07:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;You've damaged or mutilated your project, so what are you expecting without showing this project ;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey kayoda, I have already created a poject which I can upload. Now I hope we can switch from a monologue to a dialog! :D &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attached project you can see that the printf() command works, if the RAMtest_POST() function (in main) is commented out. What's the reason for this behavior? The project is for an lpc1768 written and please use the attaches cmsis library...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555662#M13785</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555663#M13786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xpresso_1769 on Thu Aug 23 04:15:04 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I forgot to post the user manual for the IEC60335 from nxp!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.nxp.com/documents/application_note/AN10918.pdf&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kind regards!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555663#M13786</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555664#M13787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Aug 23 04:30:24 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;After switching your project to CMSIS2.0, throwing out syst folder stuff and adding a delay&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;1E5;i++);&amp;nbsp; //no delay, no fun
&amp;nbsp;&amp;nbsp; printf("printf test\r\n");
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;your project is uarting fine here :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what was the problem :confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555664#M13787</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555665#M13788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xpresso_1769 on Thu Aug 23 04:44:09 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey zero, thanks for the quick response! The RAM test and printf() works? No Hard fault? Why you switch to CMSIS2?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555665#M13788</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555666#M13789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Aug 23 04:56:12 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've not used your syst stuff, just used printf as I'm used to :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No problems with my LPCXpresso without retargeting and no problems with retargeting to UART.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My UART-&amp;gt;USB converter is receiving without problems after adding a delay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using CMSIS2.0 because I refuse to test code with old CMSIS versions :rolleyes:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555666#M13789</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555667#M13790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xpresso_1769 on Thu Aug 23 05:08:46 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the printf() command works without my syst stuff. But I have to execute a Ram test on every start of my system! Please include the the [SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[COLOR=black]IEC60335_RAMtest_POST()- function and you will see the problem.&amp;nbsp; If you do, you have to change to my CMSIS Version to get a running version without compiler errors![/COLOR]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[COLOR=#000000][/COLOR] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[COLOR=#000000]sorry for my ambiguous description! :confused:[/COLOR]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555667#M13790</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555668#M13791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Aug 23 06:21:52 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I know that the printf() command works without my syst stuff.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;So the issue of this thread is: I've added something somehow and now I get a hard fault ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;If you do, you have to change to my CMSIS Version to get a running version without compiler errors!&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Come on. I'm too old to fall into this trap :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 You are changing half of an old CMSIS version instead just adding your struct in an own header?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 You're writing to RAM after cr_startup_lpc... is executed? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AN is warning you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;[B][SIZE=6][COLOR=Red]Preferably execute this test prior to branch to main.[/COLOR][/SIZE][/B]&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;#3 After that you are surprised that you get a hard fault while using printf?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shame on you :rolleyes:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555668#M13791</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555669#M13792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xpresso_1769 on Thu Aug 23 07:14:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ok zero, shame on me! I am a bad bad guy....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;#1 You are changing half of an old CMSIS version instead just adding your struct in an own header?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will change to the standart cmsis at some time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;#2 You're writing to RAM after cr_startup_lpc... is executed?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, you are right I am writing after main to Ram... Please tell me when I should do that? Our tell me were I can get informations about the startup skript! I am relative new in ÂµCs (maybe 5 month) so I don't know exactly what it does!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kind regards and thanks for your patience :o&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555669#M13792</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555670#M13793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Aug 23 07:23:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a file cr_startup_lpc176x.c in your src folder &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And at this point the fun is starting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
//*****************************************************************************
// [COLOR=Red]Reset entry point[/COLOR] for your code.
// Sets up a simple runtime environment and initializes the C/C++
// library.
//*****************************************************************************
__attribute__ ((section(".after_vectors")))
[COLOR=Red]void ResetISR(void) [/COLOR]
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555670#M13793</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555671#M13794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xpresso_1769 on Thu Aug 23 07:39:40 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That means I have to execute the Ram and CPU register test in front of&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//[/COLOR][/SIZE][/COLOR][/SIZE]&lt;BR /&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]// Copy the data segment initializers from flash to SRAM.[/COLOR][/SIZE][/COLOR][/SIZE]&lt;BR /&gt;&lt;BR /&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to get a running printf()?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my opinion that would make sense! Am I right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555671#M13794</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555672#M13795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Aug 23 08:05:34 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you can't execute your tests earlier it's worth a trial...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555672#M13795</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: printf() on uart0 hard fault</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555673#M13796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xpresso_1769 on Fri Aug 24 01:03:32 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey zero, it works well. Thanks for your help I lerned a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:11:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-uart0-hard-fault/m-p/555673#M13796</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:11:21Z</dc:date>
    </item>
  </channel>
</rss>

