-
Notifications
You must be signed in to change notification settings - Fork 15
How to build on windows?
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
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