stm32g0.ini 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. #################################
  6. #
  7. # STM32G0 Architecture
  8. #
  9. # Naming Example: STM32G0B1RET6
  10. #
  11. # G : Foundation
  12. # 0 : Cortex M0+ core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
  13. # B1 : Line/Features
  14. # R : 64 pins (R:64 or 66, F:20)
  15. # E : 512KB Flash-memory (B:128KB C:256KB, D:384KB, E:512KB, G:1024KB)
  16. # T : LQFP package
  17. # 6 : -40...85°C (7: ...105°C)
  18. #
  19. #################################
  20. #
  21. # This I2C2(PB3:I2C2_SCL PB4:I2C2_SDA) is used by EBB42 V1.1
  22. #
  23. [stm32g0_I2C2]
  24. build_flags = -DPIN_WIRE_SCL=PB3 -DPIN_WIRE_SDA=PB4
  25. #
  26. # BigTreeTech EBB42 V1.1 (STM32G0B1CBT6 ARM Cortex-M0+)
  27. # This board is being used to control Filament extruders. This is not supported for 3D printing, as it has no kinematics control
  28. #
  29. [env:BTT_EBB42_V1_1_filament_extruder]
  30. extends = stm32_variant
  31. platform = ststm32@~14.1.0
  32. platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/main.zip
  33. board = marlin_BTT_EBB42_V1_1
  34. board_build.offset = 0x0000
  35. board_upload.offset_address = 0x08000000
  36. build_flags = ${stm32_variant.build_flags} ${stm32g0_I2C2.build_flags}
  37. upload_protocol = stlink
  38. debug_tool = stlink
  39. #
  40. # BigTreeTech SKR Mini E3 V3.0 (STM32G0B1RET6 ARM Cortex-M0+)
  41. #
  42. [env:STM32G0B1RE_btt]
  43. extends = stm32_variant
  44. platform = ststm32@~14.1.0
  45. platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/main.zip
  46. board = marlin_STM32G0B1RE
  47. board_build.offset = 0x2000
  48. board_upload.offset_address = 0x08002000
  49. build_flags = ${stm32_variant.build_flags}
  50. -DPIN_SERIAL4_RX=PC_11 -DPIN_SERIAL4_TX=PC_10
  51. -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
  52. -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
  53. -DSTEP_TIMER_IRQ_PRIO=0
  54. upload_protocol = stlink
  55. debug_tool = stlink
  56. #
  57. # BigTreeTech SKR Mini E3 V3.0 (STM32G0B1RET6 ARM Cortex-M0+)
  58. # Custom upload to SD via Marlin with Binary Protocol
  59. # Requires Marlin with BINARY_FILE_TRANSFER already installed on the target board.
  60. # If CUSTOM_FIRMWARE_UPLOAD is also installed, Marlin will reboot the board to install the firmware.
  61. # Currently CUSTOM_FIRMWARE_UPLOAD must also be enabled to use 'xfer' build envs.
  62. #
  63. [env:STM32G0B1RE_btt_xfer]
  64. extends = env:STM32G0B1RE_btt
  65. build_flags = ${env:STM32G0B1RE_btt.build_flags} -DXFER_BUILD
  66. extra_scripts = ${env:STM32G0B1RE_btt.extra_scripts}
  67. pre:buildroot/share/scripts/upload.py
  68. upload_protocol = custom
  69. #
  70. # BigTreeTech Manta E3 EZ V1.0 / Manta M4P V1.0 / Manta M5P V1.0 (STM32G0B1RET6 ARM Cortex-M0+)
  71. #
  72. [env:STM32G0B1RE_manta_btt]
  73. extends = env:STM32G0B1RE_btt
  74. build_flags = ${env:STM32G0B1RE_btt.build_flags}
  75. -DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8 -DENABLE_HWSERIAL3
  76. #
  77. # BigTreeTech Manta E3 EZ V1.0 / Manta M4P V1.0 / Manta M5P V1.0 (STM32G0B1RET6 ARM Cortex-M0+)
  78. # Custom upload to SD via Marlin with Binary Protocol
  79. # Requires Marlin with BINARY_FILE_TRANSFER already installed on the target board.
  80. # If CUSTOM_FIRMWARE_UPLOAD is also installed, Marlin will reboot the board to install the firmware.
  81. # Currently CUSTOM_FIRMWARE_UPLOAD must also be enabled to use 'xfer' build envs.
  82. #
  83. [env:STM32G0B1RE_manta_btt_xfer]
  84. extends = env:STM32G0B1RE_manta_btt
  85. build_flags = ${env:STM32G0B1RE_manta_btt.build_flags} -DXFER_BUILD
  86. extra_scripts = ${env:STM32G0B1RE_manta_btt.extra_scripts}
  87. pre:buildroot/share/scripts/upload.py
  88. upload_protocol = custom
  89. #
  90. # BigTreeTech Manta M8P V1.x (STM32G0B1VET6 ARM Cortex-M0+)
  91. #
  92. [env:STM32G0B1VE_btt]
  93. extends = stm32_variant
  94. platform = ststm32@~14.1.0
  95. platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/main.zip
  96. board = marlin_STM32G0B1VE
  97. board_build.offset = 0x2000
  98. board_upload.offset_address = 0x08002000
  99. build_flags = ${stm32_variant.build_flags}
  100. -DPIN_SERIAL4_RX=PE_9 -DPIN_SERIAL4_TX=PE_8
  101. -DPIN_SERIAL5_RX=PE_11 -DPIN_SERIAL5_TX=PE_10
  102. -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
  103. -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
  104. -DSTEP_TIMER_IRQ_PRIO=0
  105. upload_protocol = stlink
  106. debug_tool = stlink
  107. #
  108. # BigTreeTech Manta M8P V1.x (STM32G0B1VET6 ARM Cortex-M0+)
  109. # Custom upload to SD via Marlin with Binary Protocol
  110. #
  111. [env:STM32G0B1VE_btt_xfer]
  112. extends = env:STM32G0B1VE_btt
  113. build_flags = ${env:STM32G0B1VE_btt.build_flags} -DXFER_BUILD
  114. extra_scripts = ${env:STM32G0B1VE_btt.extra_scripts}
  115. pre:buildroot/share/scripts/upload.py
  116. upload_protocol = custom