hwdef-bl.dat 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # hwdef for bootloader for mRoX21-777
  2. # The X2.1-777 is a member of the X2.1 flight controller from Mayan Robotics (mRo) www.mrobotics.io
  3. # Introduced in October 2018
  4. # Designed by Nikolay Arsov, Phillip Kocmoud, and Jordi Munoz
  5. # with a STM32F777VIT6 MCU
  6. # and STM32F103C8T6 IO MCU
  7. # MCU class and specific type
  8. MCU STM32F7xx STM32F777xx
  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 136
  20. # board voltage
  21. STM32_VDD 330U
  22. # flash size
  23. FLASH_SIZE_KB 2048
  24. # USB setup
  25. USB_VENDOR 0x0483 # ST
  26. USB_PRODUCT 0x5740
  27. USB_STRING_MANUFACTURER "mRo"
  28. USB_STRING_PRODUCT "X2.1-777"
  29. USB_STRING_SERIAL "%SERIAL%"
  30. # order of UARTs (and USB)
  31. UART_ORDER OTG1 USART2 USART3 UART7
  32. PD5 USART2_TX USART2
  33. PD6 USART2_RX USART2
  34. PD3 USART2_CTS USART2
  35. PD4 USART2_RTS USART2
  36. # the telem2 USART, also with RTS/CTS available
  37. # USART3 serial3 telem2
  38. PD8 USART3_TX USART3
  39. PD9 USART3_RX USART3
  40. PD11 USART3_CTS USART3
  41. PD12 USART3_RTS USART3
  42. PE7 UART7_RX UART7
  43. PE8 UART7_TX UART7
  44. # define a LED
  45. PE12 LED_BOOTLOADER OUTPUT
  46. define HAL_LED_ON 1
  47. # now we define the pins that USB is connected on
  48. PA11 OTG_FS_DM OTG1
  49. PA12 OTG_FS_DP OTG1
  50. # these are the pins for SWD debugging with a STlinkv2 or black-magic probe
  51. PA13 JTMS-SWDIO SWD
  52. PA14 JTCK-SWCLK SWD
  53. # no reserved flash for bootloader
  54. FLASH_RESERVE_START_KB 0
  55. # start on 4th sector (1st sector for bootloader, 2 for extra storage)
  56. FLASH_BOOTLOADER_LOAD_KB 96
  57. define HAL_USE_EMPTY_STORAGE 1
  58. define HAL_STORAGE_SIZE 16384