<?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>LPCXpresso IDE中的主题 Re: Can't use printf</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557906#M14780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Sun Dec 04 06:33:17 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Mike45&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I attached the map file with an appended .txt&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You map file seems to be missing most of its contents? Have you edited the file below posting. If so, then please post the original!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other thing to check out is the startup code. LPCXpresso 4 requires slight tweaks to the startup code compared to very early versions of LPCXpresso 3, which can prevent semihosting taking place if not incorporated. It is possible that the example you are using does not have these changes if it is one of the older NXP created ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More information on this at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/redlib_v2_notes&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might be worth simply creating a new project using the project wizard, then copying the startup code across to the project where you can't get semihosting working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:50:11 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:50:11Z</dc:date>
    <item>
      <title>Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557896#M14770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mike45 on Fri Dec 02 13:29:28 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I followed the tutorial and I can't seem to get this working.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using LPCXpresso 4.1.0 and Redlib(semihost) under mcu linker.&amp;nbsp; If I call _main() from my main program I get an error saying that I have an undefined reference to _main()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557896#M14770</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557897#M14771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Fri Dec 02 13:39:41 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What are you trying to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the function main() is the function that is being called by the startup code - it contains the start of your program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No idea what you are trying to do - no idea what this has to do with printf() ???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please explain, also tell us which sample you are trying to run/change and post relevant bits of your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only guess I have from your current report is that you forgot to define a function that is being called _main.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557897#M14771</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557898#M14772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mike45 on Fri Dec 02 13:47:01 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm modifying the blinky program.&amp;nbsp; All i am trying to do is print an integer to the console, like this which is included in my main program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int a = 5;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;printf("%i", a);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only reason i included _main();&amp;nbsp; inside of my main program is because the tutorial said that this function should be called if I used the Redlib&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557898#M14772</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557899#M14773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Fri Dec 02 14:01:46 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ah, I found something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am almost certain you are trying to use newlib instead of redlib.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;redlib contains some initialization that is being performed by a function called __main() in the lib, that function then calls main() - defined in blinky.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at where the error is located (double click on the error message in the Problems tab in the bottom pane of you window, you will see this is in cr_startup_lpc13.c.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And what do we see there:&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;
#if defined (__REDLIB__)
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Call the Redlib library, which in turn calls main()
&amp;nbsp;&amp;nbsp;&amp;nbsp; __main() ;
#else
&amp;nbsp;&amp;nbsp;&amp;nbsp; main();
#endif
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;With the second part being grayed out: meaning that the __REDLIB__ label is defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now either change your library settings to redlib(semihost) or undefine the __REDLIB__ label in your project settings (defined in the MCU C compiler -&amp;gt; Symbols tab within the C/C++ Build -&amp;gt; Settings&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557899#M14773</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557900#M14774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mike45 on Fri Dec 02 14:33:36 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am certain I am using Relib(semihosting)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These are the errors I get :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[IMG]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi40.tinypic.com%2F33f6d94.png%5B%2FIMG%5D" rel="nofollow noopener noreferrer" target="_blank"&gt;http://i40.tinypic.com/33f6d94.png[/IMG]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&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; blinky.c:&amp;nbsp; LED blinky C file for NXP LPC13xx Family Microprocessors
 *
 *&amp;nbsp;&amp;nbsp; Copyright(C) 2008, NXP Semiconductor
 *&amp;nbsp;&amp;nbsp; All rights reserved.
 *
 *&amp;nbsp;&amp;nbsp; History
 *&amp;nbsp;&amp;nbsp; 2008.08.20&amp;nbsp; ver 1.00&amp;nbsp;&amp;nbsp;&amp;nbsp; Preliminary version, first Release
 *
******************************************************************************/

#include "LPC13xx.h"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* LPC13xx definitions */
#include "clkconfig.h"
#include "gpio.h"
#include "config.h"
#include "timer32.h"
#include &amp;lt;stdio.h&amp;gt;

/* Main Program */
int main (void) {
&amp;nbsp; /* Basic chip initialization is taken care of in SystemInit() called
&amp;nbsp;&amp;nbsp; * from the startup code. SystemInit() and chip settings are defined
&amp;nbsp;&amp;nbsp; * in the CMSIS system_&amp;lt;part family&amp;gt;.c file.
&amp;nbsp;&amp;nbsp; */

&amp;nbsp; /* Initialize 32-bit timer 0. TIME_INTERVAL is defined as 10mS */
&amp;nbsp; /* You may also want to use the Cortex SysTick timer to do this */
&amp;nbsp; init_timer32(0, TIME_INTERVAL);
&amp;nbsp; /* Enable timer 0. Our interrupt handler will begin incrementing
&amp;nbsp;&amp;nbsp; * the TimeTick global each time timer 0 matches and resets.
&amp;nbsp;&amp;nbsp; */
&amp;nbsp; enable_timer32(0);

&amp;nbsp; /* Initialize GPIO (sets up clock) */
&amp;nbsp; GPIOInit();
&amp;nbsp; /* Set LED port pin to output */
&amp;nbsp; GPIOSetDir( LED_PORT, LED_BIT, 1 );

&amp;nbsp; _main();
&amp;nbsp; int a = 5;
&amp;nbsp; printf("%i", a);

&amp;nbsp; while (1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Loop forever */
&amp;nbsp; {
/* Each time we wake up... */
/* Check TimeTick to see whether to set or clear the LED I/O pin */
if ( (timer32_0_counter%LED_TOGGLE_TICKS) &amp;lt; (LED_TOGGLE_TICKS/2) )
{
&amp;nbsp; GPIOSetValue( LED_PORT, LED_BIT, LED_OFF );
} else
{
&amp;nbsp; GPIOSetValue( LED_PORT, LED_BIT, LED_ON );
}
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Go to sleep to save power between timer interrupts */
&amp;nbsp;&amp;nbsp;&amp;nbsp; __WFI();
&amp;nbsp; }
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557900#M14774</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557901#M14775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Fri Dec 02 22:32:04 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Was the call to _main() there before you tried to switch to semihosting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What happens when you switch back to "Redlib (nohost)" as a library?&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;The only reason i included _main();&amp;nbsp; inside of my main program is&amp;nbsp; because the tutorial said that this function should be called if I used&amp;nbsp; the Redlib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;No, you don't need to call _main(). I'm not sure where you read this. It is not being called from the original sample that is delivered with LPCXpresso.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As soon as I include the same _main() statement in my code I get the same error - but everything just runs without it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I should have mentioned this ... start with the examples that come with LPCXpresso (the ones in the LPC/LPC1000/... directory that opens when you click on "import projects" in the "Start here" tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These examples already use Redlib and these examples sometimes have bugs fixed or bogus removed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using Redlib there is an __main() (with 2 '_') that resides inside the Redlib library, that one then calls your main().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A totally different question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you happy with the tools running under the parallels desktop?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am saving for a Macbook Air and was wondering if this really works - including debugging.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557901#M14775</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557902#M14776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mike45 on Sat Dec 03 12:54:12 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;removing the __main call makes the program run, but there is no output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The mac/parallels thing works, but i don't like it.&amp;nbsp; The feel of switching between osx and windows doesn't feel right.&amp;nbsp; It's distracting when you have to switch back and forth from two different environments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I plan on building a windows or linux machine sometime.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557902#M14776</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557903#M14777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Sat Dec 03 13:35:46 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Try putting a newline at the end of your printf statement - the buffer used for the transfer may not get flushed without this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that doesn't work, I suggest that you post the map file generated by the linker when you build your project. This should normally get generated in the Debug/Release subdirectory of your project when you do a build.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557903#M14777</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557904#M14778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mike45 on Sat Dec 03 14:04:26 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks guys for the help.&amp;nbsp; inserting a newline doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I attached the map file with an appended .txt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557904#M14778</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557905#M14779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mike45 on Sun Dec 04 01:38:41 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This is so frustrating.&amp;nbsp; I don't know why it's not working.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557905#M14779</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557906#M14780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Sun Dec 04 06:33:17 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Mike45&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I attached the map file with an appended .txt&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You map file seems to be missing most of its contents? Have you edited the file below posting. If so, then please post the original!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other thing to check out is the startup code. LPCXpresso 4 requires slight tweaks to the startup code compared to very early versions of LPCXpresso 3, which can prevent semihosting taking place if not incorporated. It is possible that the example you are using does not have these changes if it is one of the older NXP created ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More information on this at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/redlib_v2_notes&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might be worth simply creating a new project using the project wizard, then copying the startup code across to the project where you can't get semihosting working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557906#M14780</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557907#M14781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mike45 on Sun Dec 04 12:52:36 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]I replaced the cr_startup file with one generated from a semihost project(wizard) and it works[/B]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-t-use-printf/m-p/557907#M14781</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:11Z</dc:date>
    </item>
  </channel>
</rss>

