Skip to content
Christopher Lee edited this page May 24, 2013 · 7 revisions

Minimal Compile and installation instructions for the AshimaCore Port of AQ32Plus.

(Note you should also be able to build inside the Eclipse/Code-Sourcery framework AQ32Plus compiles in)

Step 1 - Stuff you'll need

  • The repository - For now the only available from github in our development branch:

    git clone git@github.com:ashima/AQ32Plus.git

    git checkout AshimaCore-dev

  • GCC ARM - Install the gcc arm from 'STM32 Tool Archive' directory OR download and install it from ARM-maintained GCC toolchain (gcc-arm-none-eabi-4_7-2012q4 or later). I HIGHLY RECOMMEND installing the prebuilt version, as rebuilding any gcc is quite painful and time consuming!

  • Some version of gmake

  • USB Firmware upgrading tool that supports the DFU protocol. We use dfu-util. There are Debian Wheezy (aptitude install dfu-util) and Macports (sudo port -u install dfu-util) packages for easy installation and their website has binaries for many platforms including Windows.

  • If you have a ST-LINK debugger you will need OpenOCD. There are Debian Wheezy (aptitude install openocd +stlink) and Macports (sudo port -u install openocd +stlink) packages for easy installation. For Windows users the OpenOCD site points users to Freddie Chopin under the 'Downloads' tab.

Step 2 - How to build

  • From the top-level directory : make This should build everything including the bits of the ST standard Peripheral library.

  • If it fails to build, please :

    • Try and fix it, and then tell me what you did to fix it.
    • Let me know what platform, etc you are on and what failed to compile.

##Step 3 - How to get get it on the chip

  • Boot the boot loader by either :

    • Setting the switch to 'Sys', and resetting.
    • press "R" in the AQ32Plus console to reboot-to-bootloader.
  • From the top-level directory : make flash

    (Note : This will put the boot block (isr vector table) and the firmware onto the chip in separate parts without touching the EEPROM emulation block in between them, even if it is not in use.)

  • If this is the first time flashing the chip then you also need to reset the EEPROM settings by using the 'V' option form the AQ32Plus console.

If you have an ST-LINK You can also do this all on the fly via OCD (write up coming soon)