Differences
This shows you the differences between two versions of the page.
tools:libmaple [2015/03/18 15:37] darron [List boards] |
tools:libmaple [2015/03/22 21:55] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== libmaple ==== | ||
- | libmaple is a firmware library for the Leaflabs maple and maple mini and clones with STM32 CPUs. | ||
- | |||
- | The firmware library was built with [[: | ||
- | |||
- | === Build === | ||
- | < | ||
- | mkdir -p / | ||
- | cd / | ||
- | git clone https:// | ||
- | cd libmaple | ||
- | cp main.cpp.example main.cpp | ||
- | make CROSS_COMPILE=/ | ||
- | </ | ||
- | |||
- | === Help === | ||
- | |||
- | < | ||
- | make CROSS_COMPILE=/ | ||
- | |||
- | Basic usage (BOARD defaults to maple): | ||
- | $ cp your-main.cpp main.cpp | ||
- | $ make BOARD=your_board | ||
- | $ make BOARD=your_board install | ||
- | |||
- | (Multiple source files? Link with libmaple.a (`$ make library' | ||
- | or hack build-targets.mk appropriately.) | ||
- | |||
- | Important targets: | ||
- | sketch: | ||
- | install: | ||
- | |||
- | You *must* set BOARD if not compiling for Maple (e.g. | ||
- | use BOARD=maple_mini for mini, etc.), and MEMORY_TARGET | ||
- | if not compiling to Flash. Run `$ make list-boards' | ||
- | a list of all boards. | ||
- | |||
- | Valid MEMORY_TARGETs (default=flash): | ||
- | ram: Compile to RAM (doesn' | ||
- | flash: | ||
- | jtag: | ||
- | |||
- | Other targets: | ||
- | clean: Remove all build and object files | ||
- | doxygen: Build Doxygen HTML and XML documentation | ||
- | help: Show this message | ||
- | mrproper: Remove all generated files | ||
- | </ | ||
- | |||
- | === List boards === | ||
- | < | ||
- | make CROSS_COMPILE=/ | ||
- | cm900 | ||
- | | ||
- | maple | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | </ |