Felix Ruess
b7ebe6e705
fix clean target for example makefiles if the compiler is not in PATH
12 years ago
Daniel Serpell
584052c28c
Compile stm32-f4 library with floating point support.
This enables hard-float in the compilation of library and examples
for the stm32f40* chips.
12 years ago
Paul Sokolovsky
d6e0e6e976
Explicitly link example binaries statically.
This allow good share of binaries be linkable (and actually run) with a
typical distro-packaged ARM toolchain (Cortex-A and Linux targetted).
12 years ago
Thomas Waldecker
5604182467
added a make target stlink-flash to use the stlink on the stm32f4-disovery
12 years ago
Piotr Esden-Tempski
11727f56c9
Minor build system fixes.
12 years ago
Piotr Esden-Tempski
fa5d689f78
Use make wildcard command for source dir detect. Library path fix.
Thanks ni!
12 years ago
Piotr Esden-Tempski
b82e7eee52
Examples detect if they are being built in src dir.
If an example is in the libopencm3 source directory it will use the
locally built library instead of the system library.
When you copy an example out of the libopencm3 tree it will
automatically detect it and build using the system wide installation.
12 years ago
Piotr Esden-Tempski
43561de329
License change of the library to LGPL, version 3 or later.
Agreed to by all the significant contributors to the library.
13 years ago
Mike Smith
cdcfaaf688
F4 examples should build for F4, pass consistent arguments to the compiler and linker to ensure that compatible libraries are linked.
13 years ago
Uwe Hermann
c3fea659d1
examples: Remove duplicate example linker scripts.
Only add one linker script per eval board, and have the Makefiles use that.
This avoids duplication, and various copy-paste errors and left-overs
which we already have in the tree.
Some of the linker scripts are not really correct, yet. Both, the comments
which say which board, chip, and RAM/ROM sizes are used, as well as the
actual RAM/ROM size definitions are sometimes copy-pasted from other boards
and are thus incorrect. This needs to be fixed.
13 years ago
Stephen Caudle
59df80398b
Add miniblink example for STM32F4 discovery board
13 years ago
Stephen Caudle
580d25a84b
Move STM32 example projects in family specific folders
13 years ago
Piotr Esden-Tempski
8ba610e80a
Readded black magic probe support to example makefiles.
13 years ago
Fergus Noble
28d614757e
Removing silly dummy target.
13 years ago
Fergus Noble
7133e79239
Change default prefix in Makefiles to arm-none-eabi for compatability with summon toolchain out the box.
13 years ago
Fergus Noble
cadbc0145b
First F2 example working!
13 years ago
Fergus Noble
cff706e3ca
Rename F1 examples folder.
13 years ago
Fergus Noble
cbf6b8e54b
Update examples Makefiles to use the make shell function rather than backticks for shell command expansion. Backticks are unreliable and don't work on all platforms.
13 years ago
Piotr Esden-Tempski
5d97653163
Added black magic probe flashing support to the example code makefile.
13 years ago
Piotr Esden-Tempski
0a66d52ec8
Switched the makefile default from arm-elf to arm-none-eabi.
13 years ago
Fergus Noble
d21cd70810
Remove orphaned file in git.
13 years ago
Fergus Noble
bba026ce33
Update examples Makefiles to use the make shell function rather than backticks for shell command expansion. Backticks are unreliable and don't work on all platforms.
13 years ago
Gareth McMullin
cd88855d13
Delete example dependencies on 'make clean'
14 years ago
Gareth McMullin
7faea389e8
Added dependency generation. Abort loops on error.
14 years ago
Piotr Esden-Tempski
fedad2eb9a
Added an example using newlib printf for writing to UART1.
14 years ago
Uwe Hermann
8f251e8a9d
Some more file/path restructuring.
All #includes now explicitly use the "<libopencm3/stm32/rcc.h>" format.
If you want to get rid of the "libopencm3" prefix in your local project you
can add a respective -I entry in your Makefile (not recommended though).
All .ld files and .a libs are installed in $(TOOLCHAIN_DIR)/lib
directly (as before), but are now renamed to avoid potential
conflicts now or in the future. Examples:
libopencm3_lpc13xx.a
libopencm3_lpc13xx.ld
libopencm3_stm32.a
libopencm3_stm32.ld
14 years ago
Uwe Hermann
8c946de4d4
Some more LD paths fixes.
14 years ago
Uwe Hermann
0995f73f72
Finish libopenstm32.ld to stm32.ld rename.
14 years ago
Uwe Hermann
48b514d3ef
s/libopenstm32/libopencm3/ is some Makefiles.
14 years ago
Uwe Hermann
8e084b1517
Move STM32-specific source to lib/stm32 subdir.
14 years ago
Uwe Hermann
bcce98da54
Move STM32 examples to examples/stm32 subdir.
14 years ago
Uwe Hermann
36931dc991
Whitespace fixes.
14 years ago
Uwe Hermann
a6e6a08a3a
Make the build/clean targets a bit less verbose.
14 years ago
Piotr Esden-Tempski
600d8c3458
Added gc-sections. Now unused functions are being garbage collected.
14 years ago
Piotr Esden-Tempski
7f15dd0fc2
Added selection of jtag serial number through make commandline.
14 years ago
Piotr Esden-Tempski
c031b6691e
Moved common example make code to a central file. Added more gitignores.
14 years ago
Uwe Hermann
d8eb8ce746
Consistently use the hex file for flashing.
15 years ago
Uwe Hermann
da8d9de6b0
Rename example directory names to all-lowercase.
15 years ago
Piotr Esden-Tempski
3a4f36d80f
Moved all examples to a board specific folder.
15 years ago
Uwe Hermann
e5fb750378
Modularize OpenOCD paths in the example Makefiles.
15 years ago
Uwe Hermann
d20c3454fa
Add a simple USART example project which sends some bytes.
16 years ago
Uwe Hermann
cfd87f6b9d
Add mini ld scripts in the example which include the global one.
16 years ago
Uwe Hermann
3f12e37531
The -L linker option should come before any ldscript file.
16 years ago
Uwe Hermann
50ba77bea9
Factor out ld scripts into one common script in the lib.
16 years ago
Uwe Hermann
86db715332
Simplify example Makefiles by using only one TOOLCHAIN_DIR variable.
16 years ago
Piotr Esden-Tempski
8bdcef8d78
Examples now use the toolchain installed libopenstm32 in default setting. (Uncomment TOOLCHAIN_* lines to use local one)
16 years ago
Uwe Hermann
0f0ef60378
Add a 'fancyblink' example, currently mostly a copy of miniblink.
16 years ago
Uwe Hermann
8a630baea8
Finish rename to 'miniblink'.
16 years ago
Uwe Hermann
05ccc0614a
Move the 'blink' example into a 'miniblink' subdirectory.
16 years ago
Uwe Hermann
db0e59da96
Rename example subdir to examples, we'll have more than one.
16 years ago