hwdef-bl.dat 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # hw definition file for processing by chibios_hwdef.py
  2. # for bootloader for FMUv3 hardware (ie. for Pixhawk1, Pixhawk2 cube, XUAV2.1 etc)
  3. # MCU class and specific type
  4. MCU STM32F4xx STM32F427xx
  5. # board ID for firmware load
  6. APJ_BOARD_ID 9
  7. # crystal frequency
  8. OSCILLATOR_HZ 24000000
  9. # board voltage
  10. STM32_VDD 330U
  11. # ChibiOS system timer
  12. STM32_ST_USE_TIMER 5
  13. # flash size
  14. FLASH_SIZE_KB 2048
  15. # location of application code
  16. FLASH_BOOTLOADER_LOAD_KB 16
  17. # bootloader loads at start of flash
  18. FLASH_RESERVE_START_KB 0
  19. # USB setup
  20. USB_VENDOR 0x0483 # ST
  21. USB_PRODUCT 0x5740
  22. USB_STRING_MANUFACTURER "ArduPilot"
  23. USB_STRING_SERIAL "%SERIAL%"
  24. # baudrate to run bootloader at on uarts
  25. define BOOTLOADER_BAUDRATE 115200
  26. # uarts and USB to run bootloader protocol on
  27. UART_ORDER OTG1 USART2 USART3 UART7
  28. # this is the pin that senses USB being connected. It is an input pin
  29. # setup as OPENDRAIN
  30. PA9 VBUS INPUT OPENDRAIN
  31. # now we define the pins that USB is connected on
  32. PA11 OTG_FS_DM OTG1
  33. PA12 OTG_FS_DP OTG1
  34. # these are the pins for SWD debugging with a STlinkv2 or black-magic probe
  35. PA13 JTMS-SWDIO SWD
  36. PA14 JTCK-SWCLK SWD
  37. # Another USART, this one for telem1
  38. PD5 USART2_TX USART2
  39. PD6 USART2_RX USART2
  40. PD3 USART2_CTS USART2
  41. PD4 USART2_RTS USART2
  42. # the telem2 USART, also with RTS/CTS available
  43. # USART3 serial3 telem2
  44. PD8 USART3_TX USART3
  45. PD9 USART3_RX USART3
  46. PD11 USART3_CTS USART3
  47. PD12 USART3_RTS USART3
  48. # UART7 maps to uartF in the HAL (serial5 in SERIALn_ parameters)
  49. PE7 UART7_RX UART7
  50. PE8 UART7_TX UART7
  51. # define a LED
  52. PE12 LED_BOOTLOADER OUTPUT
  53. define HAL_LED_ON 1
  54. # this adds a C define which sets up the ArduPilot architecture
  55. # define. Any line starting with 'define' is copied literally as
  56. # a #define in the hwdef.h header
  57. define HAL_CHIBIOS_ARCH_FMUV3 1
  58. # we need to tell HAL_ChibiOS/Storage.cpp how much storage is
  59. # available (in bytes)
  60. define HAL_STORAGE_SIZE 16384
  61. # uncomment the lines below to enable strict API
  62. # checking in ChibiOS
  63. # define CH_DBG_ENABLE_ASSERTS TRUE
  64. # define CH_DBG_ENABLE_CHECKS TRUE
  65. # define CH_DBG_SYSTEM_STATE_CHECK TRUE
  66. # define CH_DBG_ENABLE_STACK_CHECK TRUE