hwdef-bl.dat 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # hw definition file for processing by chibios_hwdef.py
  2. # for bootloader for FMUv4pro hardware (Pixhawk 3 Pro)
  3. # MCU class and specific type
  4. MCU STM32F4xx STM32F469xx
  5. # board ID for firmware load
  6. APJ_BOARD_ID 13
  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. # uarts and USB to run bootloader protocol on
  20. UART_ORDER OTG1 USART2 USART3
  21. # this is the pin that senses USB being connected. It is an input pin
  22. # setup as OPENDRAIN
  23. PA9 VBUS INPUT OPENDRAIN
  24. # now we define the pins that USB is connected on
  25. PA11 OTG_FS_DM OTG1
  26. PA12 OTG_FS_DP OTG1
  27. # these are the pins for SWD debugging with a STlinkv2 or black-magic probe
  28. PA13 JTMS-SWDIO SWD
  29. PA14 JTCK-SWCLK SWD
  30. # Another USART, this one for telem1
  31. PD5 USART2_TX USART2
  32. PD6 USART2_RX USART2
  33. PD3 USART2_CTS USART2
  34. PD4 USART2_RTS USART2
  35. # the telem2 USART, also with RTS/CTS available
  36. # USART3 serial3 telem2
  37. PD8 USART3_TX USART3
  38. PD9 USART3_RX USART3
  39. PD11 USART3_CTS USART3
  40. PD12 USART3_RTS USART3
  41. # define a LED
  42. PB1 LED_BOOTLOADER OUTPUT
  43. PB11 LED_ACTIVITY OUTPUT
  44. define HAL_LED_ON 1
  45. # we need to tell HAL_ChibiOS/Storage.cpp how much storage is
  46. # available (in bytes)
  47. define HAL_STORAGE_SIZE 16384
  48. # uncomment the lines below to enable strict API
  49. # checking in ChibiOS
  50. # define CH_DBG_ENABLE_ASSERTS TRUE
  51. # define CH_DBG_ENABLE_CHECKS TRUE
  52. # define CH_DBG_SYSTEM_STATE_CHECK TRUE
  53. # define CH_DBG_ENABLE_STACK_CHECK TRUE