Forum: ARM programming with GCC/GNU tools Make

Author: Randall Swaving (rswaving)
Posted on:

Rate this post
0 useful
not useful
How can I start lpc21isp from make?
Thnak you.

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
Randall Swaving wrote:
> How can I start lpc21isp from make?
> Thnak you.

Examples how this can be configured are available in most (all) of the
Makefiles from the WinARM-Examples collection for LPC2xxx available in
examples-directory of the WinARM distribution-package or at

Somewhere in a Makefile you can add some configuration-options as

# Flash-Programming support using lpc21isp by Martin Maurer
# only for Philips LPC and Analog ADuC ARMs
# Settings and variables:
LPC21ISP = lpc21isp
LPC21ISP_PORT = com1
LPC21ISP_BAUD = 38400
LPC21ISP_XTAL = 12000
# other options:
# * verbose output: -debug
# * enter bootloader via RS232 DTR/RTS (only if hardware supports this
#   feature - see Philips AppNote): -control
LPC21ISP_OPTIONS = -control
#LPC21ISP_OPTIONS += -debug

Than add a program target to your makefile:

program: $(TARGET).$(IMGEXT)

"--->" to be replaced by a tabulator. All $(LPC21ISP_*) in one line.

With this entries a make program will start lpc21isp with the given

Hope this helps,
Martin Thomas


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.