rules.mk 998 B

1234567891011121314151617181920212223242526272829303132
  1. ## chip/board settings
  2. # the next two should match the directories in
  3. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  4. MCU_FAMILY = STM32
  5. MCU_SERIES = STM32F4xx
  6. # linker script to use
  7. # it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  8. # or <this_dir>/ld/
  9. MCU_LDSCRIPT = STM32F401xC
  10. # startup code to use
  11. # is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  12. MCU_STARTUP = stm32f4xx
  13. # it should exist either in <chibios>/os/hal/boards/
  14. # or <this_dir>/boards
  15. BOARD = BLACKPILL_STM32_F401
  16. # Cortex version
  17. # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
  18. MCU = cortex-m4
  19. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  20. ARMV = 7
  21. USE_FPU = yes
  22. # Address of the booloader in system memory
  23. STM32_BOOTLOADER_ADDRESS ?= 0x1FFF0000
  24. # Options to pass to dfu-util when flashing
  25. DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
  26. DFU_SUFFIX_ARGS = -v 0483 -p df11
  27. # Build Options
  28. # change yes to no to disable
  29. #
  30. KEYBOARD_SHARED_EP = yes