<?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: How do you compile a project from the command line using gcc for ARM? in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-do-you-compile-a-project-from-the-command-line-using-gcc-for/m-p/584012#M26115</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 Wed Jun 09 01:10:43 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Vsh3r&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone give me the command line arguments to compile and create a programming file for the LPC3154 / LPC1114 demo board using GCC it should be something like arm-elf-gcc?&lt;BR /&gt;&lt;BR /&gt;I would like to compile and link the code from the blinky example project for the LPC1114 demo board.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well the simplest way to build the example is to load the project into the LPCXpresso IDE !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to use gcc from the command line, then you can find arm-none-eabi-gcc.exe&amp;nbsp; in '[I]&amp;lt;install_dir&amp;gt;\Tools\bin[/I]'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that if you control-click on the project name in the bottom right of the LPCXpresso IDE window, then this will open up a command prompt in the project directory with the command line tools set up on the path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have built the project, there are details of how to program it into flash from the command line in the Code Red LPCXpresso Software Knowledgebase at :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://lpcxpresso.code-red-tech.com/LPCXpresso/node/51&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[login required]&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>Wed, 15 Jun 2016 22:42:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:42:47Z</dc:date>
    <item>
      <title>How do you compile a project from the command line using gcc for ARM?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-do-you-compile-a-project-from-the-command-line-using-gcc-for/m-p/584011#M26114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Vsh3r on Tue Jun 08 20:34:00 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone give me the command line arguments to compile and create a programming file for the LPC3154 / LPC1114 demo board using GCC it should be something like arm-elf-gcc?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to compile and link the code from the blinky example project for the LPC1114 demo board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vsh3r&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:42:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-do-you-compile-a-project-from-the-command-line-using-gcc-for/m-p/584011#M26114</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do you compile a project from the command line using gcc for ARM?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-do-you-compile-a-project-from-the-command-line-using-gcc-for/m-p/584012#M26115</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 Wed Jun 09 01:10:43 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Vsh3r&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone give me the command line arguments to compile and create a programming file for the LPC3154 / LPC1114 demo board using GCC it should be something like arm-elf-gcc?&lt;BR /&gt;&lt;BR /&gt;I would like to compile and link the code from the blinky example project for the LPC1114 demo board.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well the simplest way to build the example is to load the project into the LPCXpresso IDE !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to use gcc from the command line, then you can find arm-none-eabi-gcc.exe&amp;nbsp; in '[I]&amp;lt;install_dir&amp;gt;\Tools\bin[/I]'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that if you control-click on the project name in the bottom right of the LPCXpresso IDE window, then this will open up a command prompt in the project directory with the command line tools set up on the path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have built the project, there are details of how to program it into flash from the command line in the Code Red LPCXpresso Software Knowledgebase at :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://lpcxpresso.code-red-tech.com/LPCXpresso/node/51&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[login required]&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>Wed, 15 Jun 2016 22:42:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-do-you-compile-a-project-from-the-command-line-using-gcc-for/m-p/584012#M26115</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you compile a project from the command line using gcc for ARM?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-do-you-compile-a-project-from-the-command-line-using-gcc-for/m-p/584013#M26116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Vsh3r on Wed Jun 09 08:31:04 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The question was "How do you compile a project from the COMMAND LINE using gcc for ARM?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that I can download your software but I want to use arm-elf-gcc (GCC) 4.1.0 from the command line using the LPC1114.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vsh3r&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][/LEFT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:42:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-do-you-compile-a-project-from-the-command-line-using-gcc-for/m-p/584013#M26116</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you compile a project from the command line using gcc for ARM?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-do-you-compile-a-project-from-the-command-line-using-gcc-for/m-p/584014#M26117</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 Thu Jun 10 01:14:19 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want help using generic gnu tools rather than the LPCXpresso software tools, then I would suggest that you are more likely to get help from other places such as the Yahoo LPC1000/LPC2000 groups&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://tech.groups.yahoo.com/group/lpc2000/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://tech.groups.yahoo.com/group/lpc1000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The below document may also provide some interesting background information too. Although it focuses on previous generations of ARM cores rather than the Cortex-M family, much of the information is still relevant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.state-machine.com/arm/Building_bare-metal_ARM_with_GNU.pdf&lt;/A&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>Wed, 15 Jun 2016 22:42:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-do-you-compile-a-project-from-the-command-line-using-gcc-for/m-p/584014#M26117</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you compile a project from the command line using gcc for ARM?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-do-you-compile-a-project-from-the-command-line-using-gcc-for/m-p/584015#M26118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by domen on Thu Jun 10 05:09:09 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This Makefile example should make your life easier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Um... it was made for lpc1343, so just replace -mcpu argument to cortex-m0, and you're probably done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And of course list your source files.&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;
NAME=test
SRCS=main.c clkconfig.c cr_startup_lpc13.c gpio.c timer32.c system_LPC13xx.c core_cm3.c uart.c printf.c
SRCS+=hiduser0.c hiduser1.c usbcore.c usbdesc.c usbhw.c usbuser.c
OBJS=$(SRCS:.c=.o)

default: $(NAME).elf $(NAME).hex

%.o:%.c
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -O2 -Wall -I. -o $@ $&amp;lt;

$(NAME).elf:$(OBJS)
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -nostartfiles -Xlinker --gc-sections -Xlinker -M -Xlinker -Map=$(NAME).map -T$(NAME).ld -o $@ $(OBJS)

%.hex:%.elf
arm-none-eabi-objcopy -O ihex $&amp;lt; $@

clean:
rm -f $(OBJS) $(NAME).elf $(NAME).hex
&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:42:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-do-you-compile-a-project-from-the-command-line-using-gcc-for/m-p/584015#M26118</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:42:49Z</dc:date>
    </item>
  </channel>
</rss>

