Skip to content

How to build on windows?

anees042 edited this page May 16, 2015 · 5 revisions

Build instructions

Setup Build environment

Download and install GCC Embedded for windows; https://launchpad.net/gcc-arm-embedded

To install the GCC compiler for ARM all you have to do is run the win32 installer available on the linked website above. Make sure you select Add path to environment variable & launch gccvar.bat at the end of the installation

or add it to your environment path

Download and install Make Tools; http://gnuwin32.sourceforge.net/packages/make.htm

add it to your environment path

Download git for windows; https://www.git-scm.com/download/win
add it to your path

Download and Build:

open cmd and cd to desired download location

git clone https://github.com/gbulmer/openstm32sw.git

cd openstm32sw

cd stm32f4

cd maple-bootloader

make

if successful, you will find the maple-bootloader/bootloader in build dir

maple_boot.bin

maple_boot.elf

you can use stlink utility to flash the bootloader to your board

building libmaple for stm32f4;

assuming you are still in maple-bootloader dir

cd ..

cd libmaple

make library

while building libmaple if you get error; (*funcPtr) defined but not used

edit

libmaple/usb/usb_hardware.c

and comment line 87; as /*typedef void (funcPtr)(void);/

make clean

make library

the built libarary can be found under libmaple/build directory

Clone this wiki locally