hwdef-bl.dat 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # hwdef for bootloader for CubeYellow
  2. # MCU class and specific type
  3. MCU STM32F7xx STM32F777xx
  4. # crystal frequency
  5. OSCILLATOR_HZ 24000000
  6. define STM32_LSECLK 32768U
  7. define STM32_LSEDRV (3U << 3U)
  8. define STM32_PLLSRC STM32_PLLSRC_HSE
  9. define STM32_PLLM_VALUE 24
  10. define STM32_PLLN_VALUE 432
  11. define STM32_PLLP_VALUE 2
  12. define STM32_PLLQ_VALUE 9
  13. # board ID for firmware load
  14. APJ_BOARD_ID 120
  15. # board voltage
  16. STM32_VDD 330U
  17. # flash size
  18. FLASH_SIZE_KB 2048
  19. # USB setup
  20. USB_VENDOR 0x2DAE # ONLY FOR USE BY ProfiCNC / HEX! NOBODY ELSE
  21. USB_PRODUCT 0x1002
  22. USB_STRING_MANUFACTURER "Hex/ProfiCNC"
  23. USB_STRING_PRODUCT "CubeYellow-BL"
  24. USB_STRING_SERIAL "%SERIAL%"
  25. # order of UARTs (and USB)
  26. UART_ORDER OTG1 USART2 USART3 UART7
  27. PD5 USART2_TX USART2
  28. PD6 USART2_RX USART2
  29. PD3 USART2_CTS USART2
  30. PD4 USART2_RTS USART2
  31. # the telem2 USART, also with RTS/CTS available
  32. # USART3 serial3 telem2
  33. PD8 USART3_TX USART3
  34. PD9 USART3_RX USART3
  35. PD11 USART3_CTS USART3
  36. PD12 USART3_RTS USART3
  37. PE7 UART7_RX UART7
  38. PE8 UART7_TX UART7
  39. # Pin for PWM Voltage Selection
  40. PB4 PWM_VOLT_SEL OUTPUT HIGH
  41. # now we define the pins that USB is connected on
  42. PA11 OTG_FS_DM OTG1
  43. PA12 OTG_FS_DP OTG1
  44. # these are the pins for SWD debugging with a STlinkv2 or black-magic probe
  45. PA13 JTMS-SWDIO SWD
  46. PA14 JTCK-SWCLK SWD
  47. # no reserved flash for bootloader
  48. FLASH_RESERVE_START_KB 0
  49. # start on 4th sector (1st sector for bootloader, 2 for extra storage)
  50. FLASH_BOOTLOADER_LOAD_KB 96
  51. define HAL_USE_EMPTY_STORAGE 1
  52. define HAL_STORAGE_SIZE 16384