![Techno-innov LPC1224 Скачать руководство пользователя страница 15](http://html1.mh-extra.com/html/techno-innov/lpc1224/lpc1224_reference-manual_1070062015.webp)
LPC1224_BO_SRM
Board v0.3
5.2.2 Build command and options
Once done with the toolchain installation (or if you already have one) you should build using the provided
Makefile
by running the simple "
make
" command from any of the
apps/base/
sub-directory.
You can also build all apps by running "
make
" from repository root directory or "
make base/my_app
" to compile
"
my_app
" from the
apps/base/
sub-directory only. (
base
may be replaced by any other module name). NoteYou
may want to change the
CROSS_COMPILE
variable from the main
Makefile
(in the repository root directory)
and set it to the prefix of your toolchain.
5.2.3 Build process
The specific information about the target (LPC1224 micro-controller) memory (Flash and RAM) used by the
linker is in the
lpc_link_lpc1224.ld
linker script.
The vector table is defined in the
core/bootstrap.c
file, but the checksum of the first seven entries in the
vector table is left unmodified. This checksum must be computed and placed in the eighth vector entry as the
bootloader needs to find a valid checksum in the eighth entry to consider the user code as valid and transfer
execution to the reset handler (first vector table entry).
This is done by the lpcprog tool before sending the binary to the target.
5.3 Uploading binary on target
5.3.1 Tools
To flash the binary (the one with .bin) to the LPC Flash you can use our lpctools package, packaged for Debian
as of 2014-09-10 and available in jessie or newer versions, or available in the
lpctools git repository
10
.
Lpctools is released under GPLv3 licence.
Clone the repository using :
user@host:
˜
/sw$
git clone http://gitclone.techno-innov.fr/lpctools
Then build (
make
) the tools.
Note
: Other tools may be used but have not been tested. No tools were found to be open source when
we looked for tools to upload the binaries to the micro-controller. You must check that the tool you
chose to use can take care of the checksum computation.
5.3.2 Connection with target and upload
Usual command line to upload a binary to the micro-controller :
10.
http://git.techno-innov.fr/lpctools
Techno-Innov - DomoTab
http://www.techno-innov.fr
page 15 /
22