Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:libmaple [2015/03/18 15:41] – [Fetch] darrontools:libmaple [2015/03/22 21:55] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ==== libmaple ==== ==== libmaple ====
  
-libmaple is a firmware library for the Leaflabs maple and maple mini and clones with STM32 CPUs.+libmaple is a firmware library for the Leaflabs [[:boards:maple|Maple mini]] and clones with STM32 CPUs.
  
-The firmware library was built with [[:tools:gccarm|this]] compiler.+The firmware library is built with [[:tools:gccarm|this]] compiler. [[:tools:dfu-util|dfu-util]] is required to program the chip.
  
 === Download === === Download ===
 +Here we fetch the source to the maple libraries.
 <code> <code>
 mkdir -p /embedded/arm-cortex/src mkdir -p /embedded/arm-cortex/src
Line 14: Line 15:
  
 === Help === === Help ===
 +The help function of the make file gives us some clues about how to create our own projects with it.
 <code> <code>
-make CROSS_COMPILE=/embedded/arm-cortex/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi- help+make CROSS_COMPILE=/embedded/arm-cortex/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi- help
  
 Basic usage (BOARD defaults to maple): Basic usage (BOARD defaults to maple):
Line 48: Line 49:
  
 === List boards === === List boards ===
 +
 +This function didn't list the boards correctly for me, so this is a sanitised listing.
 <code> <code>
-make CROSS_COMPILE=/embedded/arm-cortex/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi- list-boards+make CROSS_COMPILE=/embedded/arm-cortex/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi- list-boards
  cm900  cm900
  maple_mini  maple_mini
Line 63: Line 66:
  
 === Demo === === Demo ===
 +
 +This is the standard LED demo for the [[:boards:maple|Maple mini]]. You may wish to edit the example to create a blink unlike the default empty firmware blink to confirm that this is working.
 <code> <code>
 cp examples/blinky.cpp main.cpp cp examples/blinky.cpp main.cpp
-make CROSS_COMPILE=/embedded/arm-cortex/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi- BOARD=maple_mini install+make CROSS_COMPILE=/embedded/arm-cortex/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi- BOARD=maple_mini install
 </code> </code>