hwdef-bl.dat 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # hw definition file for processing by chibios_hwdef.py
  2. # for F777 bootloader
  3. # MCU class and specific type
  4. MCU STM32F7xx STM32F777xx
  5. # USB setup
  6. USB_VENDOR 0x0483 # ST
  7. USB_PRODUCT 0x5740
  8. USB_STRING_MANUFACTURER "mRo"
  9. # crystal frequency
  10. OSCILLATOR_HZ 24000000
  11. define STM32_LSECLK 32768U
  12. define STM32_LSEDRV (3U << 3U)
  13. define STM32_PLLSRC STM32_PLLSRC_HSE
  14. define STM32_PLLM_VALUE 24
  15. define STM32_PLLN_VALUE 432
  16. define STM32_PLLP_VALUE 2
  17. define STM32_PLLQ_VALUE 9
  18. # board ID for firmware load
  19. APJ_BOARD_ID 141
  20. FLASH_SIZE_KB 2048
  21. # bootloader is installed at zero offset
  22. FLASH_RESERVE_START_KB 0
  23. # the location where the bootloader will put the firmware
  24. FLASH_BOOTLOADER_LOAD_KB 96
  25. PB11 LED_BOOTLOADER OUTPUT
  26. # define all 3 to make LED output White.
  27. PB1 LED_ACTIVITY OUTPUT
  28. PB3 LED_ACTIVITY2 OUTPUT
  29. # PB11 LED_ACTIVITY3 OUTPUT
  30. define HAL_LED_ON 0
  31. # board voltage
  32. STM32_VDD 330U
  33. # order of UARTs (and USB)
  34. UART_ORDER OTG1 UART7
  35. # UART7 maps to uartF in the HAL (serial5 in SERIALn_ parameters).
  36. PE7 UART7_RX UART7
  37. PE8 UART7_TX UART7
  38. PA11 OTG_FS_DM OTG1
  39. PA12 OTG_FS_DP OTG1
  40. PA13 JTMS-SWDIO SWD
  41. PA14 JTCK-SWCLK SWD
  42. define HAL_USE_EMPTY_STORAGE 1
  43. define HAL_STORAGE_SIZE 16384