pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

pastebin private pastebin - collaborative debugging tool What's a private pastebin?

Posted by Anonymous on Thu 3 Dec 10:08
download | new post

  1. # hw definition file for processing by chibios_hwdef.py
  2. # for Pixracer bootloader
  3.  
  4. # MCU class and specific type
  5. MCU STM32F4xx STM32F427xx
  6.  
  7. # crystal frequency
  8. OSCILLATOR_HZ 24000000
  9.  
  10. # board ID for firmware load
  11. APJ_BOARD_ID 1101
  12.  
  13. FLASH_SIZE_KB 2048
  14.  
  15. # setup build for a peripheral firmware
  16. env AP_PERIPH 1
  17. define PERIPH_FW TRUE
  18. define HAL_DISABLE_LOOP_DELAY
  19.  
  20. # bootloader is installed at zero offset
  21. FLASH_RESERVE_START_KB 0
  22.  
  23. # the location where the bootloader will put the firmware
  24. # we use first 32k
  25. FLASH_BOOTLOADER_LOAD_KB 64
  26.  
  27. # order of UARTs (and USB)
  28. SERIAL_ORDER OTG1 UART2
  29.  
  30. PB1 LED_BOOTLOADER OUTPUT
  31. PB3 LED_ACTIVITY OUTPUT
  32. define HAL_LED_ON 1
  33.  
  34. PA9 VBUS INPUT
  35.  
  36. STDOUT_SERIAL SD2
  37. STDOUT_BAUDRATE 57600
  38. # make bl baudrate match debug baudrate for easier debugging
  39. define BOOTLOADER_BAUDRATE 57600
  40.  
  41. # USART2 serial2 telem1
  42. PD3 USART2_CTS USART2
  43. PD4 USART2_RTS USART2
  44. PD5 USART2_TX USART2
  45. PD6 USART2_RX USART2
  46.  
  47. # OTG1
  48. PA11 OTG_FS_DM OTG1
  49. PA12 OTG_FS_DP OTG1
  50.  
  51. PA13 JTMS-SWDIO SWD
  52. PA14 JTCK-SWCLK SWD
  53.  
  54. define HAL_USE_EMPTY_STORAGE 1
  55. define HAL_STORAGE_SIZE 16384
  56.  
  57. # Add CS pins to ensure they are high in bootloader
  58. PC2 MPU9250_CS CS
  59. PC15 20608_CS CS
  60. PD7 BARO_CS CS
  61. PD10 FRAM_CS CS
  62. PE15 MAG_CS CS
  63.  
  64. # the first CAN bus
  65. define HAL_USE_CAN TRUE
  66. define STM32_CAN_USE_CAN1 TRUE
  67. PD0 CAN1_RX CAN1
  68. PD1 CAN1_TX CAN1
  69.  
  70. # reserve 256 bytes for comms between app and bootloader
  71. RAM_RESERVE_START 256
  72.  
  73. # use DNA
  74. define HAL_CAN_DEFAULT_NODE_ID 0
  75.  
  76. define CAN_APP_NODE_NAME "org.ardupilot.Pixracer-periph"
  77.  
  78. # make bl baudrate match debug baudrate for easier debugging
  79. define BOOTLOADER_BAUDRATE 57600
  80.  
  81. # disable
  82. define HAL_NO_GPIO_IRQ
  83. define HAL_USE_EMPTY_IO TRUE
  84.  
  85. # avoid timer and RCIN threads to save memory
  86. define HAL_NO_TIMER_THREAD
  87. define HAL_NO_RCIN_THREAD
  88.  
  89. define HAL_USE_RTC FALSE
  90. define DISABLE_SERIAL_ESC_COMM TRUE
  91. define NO_DATAFLASH TRUE
  92.  
  93. define DMA_RESERVE_SIZE 0
  94.  
  95. define HAL_DISABLE_LOOP_DELAY

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me