stm32h7.ini 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. #################################
  6. #
  7. # STM32H7 Architecture
  8. #
  9. # Naming Example: STM32H743IIT6
  10. #
  11. # H : High Performance
  12. # 7 : Cortex M7 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
  13. # 43 : Line/Features
  14. # I : 176 pins (T:36, C:48 or 49, M:81, V:100, Z:144, I:176)
  15. # I : 2048KB Flash-memory (C:256KB, D:384KB, E:512KB, G:1024KB, I:2048KB)
  16. # T : LQFP package
  17. # 6 : -40...85°C (7: ...105°C)
  18. #
  19. #################################
  20. #
  21. # BigTreeTech SKR SE BX V2.0 / V3.0 (STM32H743IIT6 ARM Cortex-M7)
  22. #
  23. [env:BTT_SKR_SE_BX]
  24. extends = stm32_variant
  25. # framework-arduinoststm32 uses biqu-bx-workaround branch
  26. platform_packages = framework-arduinoststm32@https://github.com/thisiskeithb/Arduino_Core_STM32/archive/8b3522051a.zip
  27. board = marlin_BTT_SKR_SE_BX
  28. board_build.offset = 0x20000
  29. build_flags = ${stm32_variant.build_flags} ${stm_flash_drive.build_flags}
  30. -DUSE_USBHOST_HS
  31. -DUSE_USB_HS_IN_FS
  32. -DHAL_DMA2D_MODULE_ENABLED
  33. -DHAL_LTDC_MODULE_ENABLED
  34. -DHAL_SDRAM_MODULE_ENABLED
  35. -DHAL_QSPI_MODULE_ENABLED
  36. -DHAL_MDMA_MODULE_ENABLED
  37. -DHAL_SD_MODULE_ENABLED
  38. upload_protocol = cmsis-dap
  39. debug_tool = cmsis-dap
  40. #
  41. # BigTreeTech STM32H743Vx ARM Cortex-M7 Common
  42. #
  43. [STM32H743Vx_btt]
  44. extends = stm32_variant
  45. platform = ststm32@15.4.1
  46. platform_packages = framework-arduinoststm32@~4.20200.220530
  47. board_build.offset = 0x20000
  48. board_upload.offset_address = 0x08020000
  49. build_flags = ${stm32_variant.build_flags}
  50. -DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL1_RX=PA_10
  51. -DPIN_SERIAL3_TX=PD_8 -DPIN_SERIAL3_RX=PD_9
  52. -DPIN_SERIAL4_TX=PA_0 -DPIN_SERIAL4_RX=PA_1
  53. -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
  54. -DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2
  55. -DSTEP_TIMER_IRQ_PRIO=0
  56. -DD_CACHE_DISABLED
  57. upload_protocol = cmsis-dap
  58. debug_tool = cmsis-dap
  59. #
  60. # BigTreeTech SKR V3.0 / V3.0 EZ (STM32H743VIT6 ARM Cortex-M7)
  61. #
  62. [env:STM32H743VI_btt]
  63. extends = STM32H743Vx_btt
  64. board = marlin_STM32H743VI
  65. #
  66. # BigTreeTech STM32H723Vx ARM Cortex-M7 Common
  67. #
  68. [STM32H723Vx_btt]
  69. extends = stm32_variant
  70. platform = ststm32@15.4.1
  71. platform_packages = framework-arduinoststm32@~4.20200.220530
  72. board_build.offset = 0x20000
  73. board_upload.offset_address = 0x08020000
  74. build_flags = ${stm32_variant.build_flags}
  75. -DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL1_RX=PA_10
  76. -DPIN_SERIAL2_TX=PD_5 -DPIN_SERIAL2_RX=PD_6
  77. -DPIN_SERIAL3_TX=PD_8 -DPIN_SERIAL3_RX=PD_9
  78. -DPIN_SERIAL4_TX=PA_0 -DPIN_SERIAL4_RX=PA_1
  79. -DPIN_SERIAL7_TX=PE_8 -DPIN_SERIAL7_RX=PE_7
  80. -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
  81. -DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2
  82. -DSTEP_TIMER_IRQ_PRIO=0
  83. -DRCC_PERIPHCLK_I2C35=RCC_PERIPHCLK_I2C5
  84. -DUSE_USB_HS -DUSE_USB_HS_IN_FS
  85. -DD_CACHE_DISABLED
  86. -UI2C5_BASE
  87. upload_protocol = cmsis-dap
  88. debug_tool = cmsis-dap
  89. #
  90. # BigTreeTech SKR V3.0 / SKR V3.0 EZ (STM32H723VGT6 ARM Cortex-M7)
  91. #
  92. [env:STM32H723VG_btt]
  93. extends = STM32H723Vx_btt
  94. board = marlin_STM32H723VG
  95. #
  96. # BigTreeTech STM32H723Zx ARM Cortex-M7 Common
  97. #
  98. [STM32H723Zx_btt]
  99. extends = stm32_variant
  100. platform = ststm32@15.4.1
  101. platform_packages = framework-arduinoststm32@~4.20200.220530
  102. board_build.offset = 0x20000
  103. board_upload.offset_address = 0x08020000
  104. build_flags = ${stm32_variant.build_flags}
  105. -DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL1_RX=PA_10
  106. -DPIN_SERIAL2_TX=PD_5 -DPIN_SERIAL2_RX=PD_6
  107. -DPIN_SERIAL3_TX=PD_8 -DPIN_SERIAL3_RX=PD_9
  108. -DPIN_SERIAL4_TX=PA_0 -DPIN_SERIAL4_RX=PA_1
  109. -DPIN_SERIAL7_TX=PE_8 -DPIN_SERIAL7_RX=PE_7
  110. -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
  111. -DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2
  112. -DSTEP_TIMER_IRQ_PRIO=0
  113. -DRCC_PERIPHCLK_I2C35=RCC_PERIPHCLK_I2C5
  114. -DUSE_USB_HS -DUSE_USB_HS_IN_FS
  115. -DD_CACHE_DISABLED
  116. -UI2C5_BASE
  117. upload_protocol = cmsis-dap
  118. debug_tool = cmsis-dap
  119. #
  120. # BigTreeTech Octopus Pro V1.0.1/1.1 / Octopus Max EZ V1.0 (STM32H723ZET6 ARM Cortex-M7)
  121. #
  122. [env:STM32H723ZE_btt]
  123. extends = STM32H723Zx_btt
  124. board = marlin_STM32H723ZE