Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 860 Bytes

README.md

File metadata and controls

51 lines (37 loc) · 860 Bytes

MTB-RC Firmware

This repository contains firmware for main MCU STM32F103 of MTB-RC module written in C99.

Compiling

Requirements:

  • arm-none-eabi-gcc
  • STM32CubeF1 MCU Firmware Package v1.8.5
    • Download package
    • Set STM32_CUBE_PATH_185 environment variable to the location of downloaded package
    • See Makefile
  • make

Howto compile:

$ make

Flashing

Requirements:

  • st-flash (via STlink)

MTB-RC module contains programming connector. Use STlink to program the MCU.

$ make flash_stlink

Debugging

Requirements:

  • openocd
  • arm-none-eabi-gdb

Howto debug:

$ openocd
$ arm-none-eabi-gdb build/mtb-rc.elf
(gdb) target extended-remote :3333
(gdb) b main

License

This application is released under the Apache License v2.0 .