hwdef-bl.dat 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. # enabling PE3 on the Colibri causes it to reset on startup
  22. undef PE3
  23. PE3 VDD_3V3_SENSORS_EN OUTPUT LOW
  24. # SD power is active low on TBS board
  25. undef PG7
  26. undef VDD_3V3_SD_CARD_EN
  27. PG7 nVDD_3V3_SD_CARD_EN OUTPUT HIGH
  28. PC6 LED_BOOTLOADER OUTPUT HIGH
  29. PC7 LED_ACTIVITY OUTPUT HIGH
  30. define HAL_LED_ON 0
  31. # board voltage
  32. STM32_VDD 330U
  33. # order of UARTs (and USB)
  34. UART_ORDER OTG1 USART2 UART7
  35. # USART2 is telem1
  36. PD6 USART2_RX USART2
  37. PD5 USART2_TX USART2
  38. PD3 USART2_CTS USART2
  39. PD4 USART2_RTS USART2
  40. PF6 UART7_RX UART7 NODMA
  41. PE8 UART7_TX UART7 NODMA
  42. PA11 OTG_FS_DM OTG1
  43. PA12 OTG_FS_DP OTG1
  44. PA13 JTMS-SWDIO SWD
  45. PA14 JTCK-SWCLK SWD
  46. define HAL_USE_EMPTY_STORAGE 1
  47. define HAL_STORAGE_SIZE 16384