Toolchain windows setup (no virtualbox) - multirotor/Multirotor GitHub Wiki

If any problems with this wiki tell us!

Installations

This installation guide assumes that you have a folder called "multirotor". In this guide we put it under C:\multirotor. This will be denoted with [path]\multirotor. Also create a downloads folder within this folder so you have a structure like this: [path]\multirotor\downloads. Put all downloads to this folder so you have them in a single place.

ST-link drivers

Download: https://developer.mbed.org/teams/ST/wiki/ST-Link-Driver Install it, just follow the default guide.

GCC-ARM

Download gcc-arm-none-eabi-4_9-2015q1-20150306-win32.zip https://launchpad.net/gcc-arm-embedded/+download Extract it to [path]\multirotor Go to [path]\multirotor\openocd-0.9.0-dev-150204220259\bin Change name of openocd-0.9.0-dev-..... to opeonocd

Openocd 0.9

Download openocd-0.9.0-dev-150204220259 http://www.freddiechopin.info/download/category/10-openocd-dev/ Extract it to [path]\multirotor

Make

Download "Complete package, except sources" http://gnuwin32.sourceforge.net/packages/make.htm Install it to [path]\multirotor, dont remove GnuWin32 that it adds.

Adding to Path

Now we need to add some environment variables.

  1. Hit windows+pause
  2. Choose advanced system settings
  3. Choose environment variables
  4. Click on the new button under System variables
  5. Enter GCC as variable name and [path]\multirotor\gcc-arm-none-eabi-4_9-2015q1-20150306-win32\bin
  6. Do step 4 again
  7. Enter MAKE as variable name and [path]\multirotor\make-3.81-bin\bin
  8. Do step 4 again
  9. Enter OPENOCD as variable name and [path]\multirotor\openocd-0.9.0-dev-150204220259\openocd-0.9.0-dev-150204220259\bin
  10. Scroll to Path in the system variables list and click edit
  11. In the end of the value field add ;%GCC%;%MAKE%;%OPENOCD%;
  12. Click ok, ok and ok (to finish the work here)

Testing our environment variables

  1. Hit windows+r
  2. Type cmd and hit enter
  3. Type arm-none-eabi-gcc --version, you should see a output with version information.
  4. Type make --version
  5. Type openocd --version

Getting the blink led source

If you have not install git do it at http://git-scm.com/.

  1. Open a cmd at [path]\multirotor
  2. Type git clone https://github.com/multirotor/Multirotor
  3. Type git checkout blinkWindows

Building

  1. Connect the board
  2. Open cmd in [path]\multirotor
  3. Type make and enter
  4. Type ocd.bat and enter
  5. Go to control panel->programs->Turn Windows features on or off
  6. Select "Telnet client"
  7. Proceed and activate it
  8. Open cmd anyhwere
  9. Type "telnet localhost 4444"
  10. Type "reset halt"
  11. Type "flash write_image erase [path]/multirotor/Multirotor/blink/build/blinkled.elf"
  12. Type "reset run"
  13. Now the green led should blink!

Notes: make clean does not function yet. Make sure to delete the build folder manually if you want to rebuild. Hope this works for you!