hwdef-bl.dat 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # hw definition file for processing by chibios_pins.py
  2. # for Matek F765-Wing bootloader
  3. # MCU class and specific type
  4. MCU STM32F7xx STM32F767xx
  5. # board ID for firmware load
  6. APJ_BOARD_ID 143
  7. # crystal frequency, setup to use external oscillator
  8. OSCILLATOR_HZ 8000000
  9. define STM32_LSECLK 32768U
  10. define STM32_LSEDRV (3U << 3U)
  11. define STM32_PLLSRC STM32_PLLSRC_HSE
  12. define STM32_PLLM_VALUE 8
  13. define STM32_PLLN_VALUE 432
  14. define STM32_PLLP_VALUE 2
  15. define STM32_PLLQ_VALUE 9
  16. FLASH_SIZE_KB 2048
  17. # bootloader starts at zero offset
  18. FLASH_RESERVE_START_KB 0
  19. # the location where the bootloader will put the firmware
  20. FLASH_BOOTLOADER_LOAD_KB 96
  21. # board voltage
  22. STM32_VDD 330U
  23. # order of UARTs (and USB). Allow bootloading on USB and telem1
  24. UART_ORDER OTG1 UART7
  25. # UART7 (telem1)
  26. PE7 UART7_RX UART7
  27. PE8 UART7_TX UART7
  28. # PA10 IO-debug-console
  29. PA11 OTG_FS_DM OTG1
  30. PA12 OTG_FS_DP OTG1
  31. PA13 JTMS-SWDIO SWD
  32. PA14 JTCK-SWCLK SWD
  33. PD10 LED_BOOTLOADER OUTPUT LOW
  34. define HAL_LED_ON 0
  35. define HAL_USE_EMPTY_STORAGE 1
  36. define HAL_STORAGE_SIZE 16384