hwdef-bl.dat 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # hw definition file for processing by chibios_hwdef.py
  2. # for F765 bootloader
  3. # MCU class and specific type
  4. MCU STM32F7xx STM32F767xx
  5. # crystal frequency
  6. OSCILLATOR_HZ 16000000
  7. define STM32_LSECLK 32768U
  8. define STM32_LSEDRV (3U << 3U)
  9. define STM32_PLLSRC STM32_PLLSRC_HSE
  10. define STM32_PLLM_VALUE 8
  11. define STM32_PLLN_VALUE 216
  12. define STM32_PLLP_VALUE 2
  13. define STM32_PLLQ_VALUE 9
  14. # board ID for firmware load
  15. APJ_BOARD_ID 50
  16. FLASH_SIZE_KB 2048
  17. # bootloader is installed at zero offset
  18. FLASH_RESERVE_START_KB 0
  19. # the location where the bootloader will put the firmware
  20. FLASH_BOOTLOADER_LOAD_KB 32
  21. PC6 LED_BOOTLOADER OUTPUT HIGH
  22. PC7 LED_ACTIVITY OUTPUT HIGH
  23. define HAL_LED_ON 0
  24. # board voltage
  25. STM32_VDD 330U
  26. # order of UARTs (and USB)
  27. UART_ORDER OTG1 USART2 UART7
  28. # USART2 is telem1
  29. PD6 USART2_RX USART2
  30. PD5 USART2_TX USART2
  31. PD3 USART2_CTS USART2
  32. PD4 USART2_RTS USART2
  33. PF6 UART7_RX UART7 NODMA
  34. PE8 UART7_TX UART7 NODMA
  35. PA11 OTG_FS_DM OTG1
  36. PA12 OTG_FS_DP OTG1
  37. PA13 JTMS-SWDIO SWD
  38. PA14 JTCK-SWCLK SWD
  39. define HAL_USE_EMPTY_STORAGE 1
  40. define HAL_STORAGE_SIZE 16384