stm32g0.ini 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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@17.1.0
  32. platform_packages = framework-arduinoststm32@~4.20600.231001
  33. toolchain-gccarmnoneeabi@1.120301.0
  34. board = marlin_BTT_EBB42_V1_1
  35. board_build.offset = 0x0000
  36. board_upload.offset_address = 0x08000000
  37. build_flags = ${stm32_variant.build_flags} ${stm32g0_I2C2.build_flags}
  38. -flto
  39. -Wl,--no-warn-rwx-segment
  40. debug_tool = stlink
  41. upload_protocol = dfu
  42. upload_command = dfu-util -a 0 -s 0x08000000:leave -D "$SOURCE"
  43. #
  44. # BigTreeTech SKR Mini E3 V3.0 (STM32G0B0RET6 / STM32G0B1RET6 ARM Cortex-M0+)
  45. #
  46. [env:STM32G0B1RE_btt]
  47. extends = stm32_variant
  48. platform = ststm32@17.1.0
  49. platform_packages = framework-arduinoststm32@~4.20600.231001
  50. toolchain-gccarmnoneeabi@1.120301.0
  51. board = marlin_STM32G0B1RE
  52. board_build.offset = 0x2000
  53. board_upload.offset_address = 0x08002000
  54. build_flags = ${stm32_variant.build_flags}
  55. -DPIN_SERIAL4_RX=PC_11 -DPIN_SERIAL4_TX=PC_10
  56. -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
  57. -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
  58. -DSTEP_TIMER_IRQ_PRIO=0
  59. -Wl,--no-warn-rwx-segment
  60. upload_protocol = stlink
  61. debug_tool = stlink
  62. #
  63. # BigTreeTech SKR Mini E3 V3.0 (STM32G0B0RET6 / STM32G0B1RET6 ARM Cortex-M0+)
  64. # Custom upload to SD via Marlin with Binary Protocol
  65. # Requires Marlin with BINARY_FILE_TRANSFER already installed on the target board.
  66. # If CUSTOM_FIRMWARE_UPLOAD is also installed, Marlin will reboot the board to install the firmware.
  67. # Currently CUSTOM_FIRMWARE_UPLOAD must also be enabled to use 'xfer' build envs.
  68. #
  69. [env:STM32G0B1RE_btt_xfer]
  70. extends = env:STM32G0B1RE_btt
  71. build_flags = ${env:STM32G0B1RE_btt.build_flags} -DXFER_BUILD
  72. extra_scripts = ${env:STM32G0B1RE_btt.extra_scripts}
  73. pre:buildroot/share/scripts/upload.py
  74. upload_protocol = custom
  75. #
  76. # BigTreeTech Manta M4P V2.1 (STM32G0B0RET6 ARM Cortex-M0+)
  77. # BigTreeTech Manta E3 EZ V1.0 / Manta M5P V1.0 (STM32G0B1RET6 ARM Cortex-M0+)
  78. #
  79. [env:STM32G0B1RE_manta_btt]
  80. extends = env:STM32G0B1RE_btt
  81. build_flags = ${env:STM32G0B1RE_btt.build_flags}
  82. -DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8 -DENABLE_HWSERIAL3
  83. #
  84. # BigTreeTech Manta M4P V2.1 (STM32G0B0RET6 ARM Cortex-M0+)
  85. # BigTreeTech Manta E3 EZ V1.0 / Manta M5P V1.0 (STM32G0B1RET6 ARM Cortex-M0+)
  86. # Custom upload to SD via Marlin with Binary Protocol
  87. # Requires Marlin with BINARY_FILE_TRANSFER already installed on the target board.
  88. # If CUSTOM_FIRMWARE_UPLOAD is also installed, Marlin will reboot the board to install the firmware.
  89. # Currently CUSTOM_FIRMWARE_UPLOAD must also be enabled to use 'xfer' build envs.
  90. #
  91. [env:STM32G0B1RE_manta_btt_xfer]
  92. extends = env:STM32G0B1RE_manta_btt
  93. build_flags = ${env:STM32G0B1RE_manta_btt.build_flags} -DXFER_BUILD
  94. extra_scripts = ${env:STM32G0B1RE_manta_btt.extra_scripts}
  95. pre:buildroot/share/scripts/upload.py
  96. upload_protocol = custom
  97. #
  98. # BigTreeTech Manta M8P V1.x (STM32G0B1VET6 ARM Cortex-M0+)
  99. #
  100. [env:STM32G0B1VE_btt]
  101. extends = stm32_variant
  102. platform = ststm32@17.1.0
  103. platform_packages = framework-arduinoststm32@~4.20600.231001
  104. toolchain-gccarmnoneeabi@1.120301.0
  105. board = marlin_STM32G0B1VE
  106. board_build.offset = 0x2000
  107. board_upload.offset_address = 0x08002000
  108. build_flags = ${stm32_variant.build_flags}
  109. -DPIN_SERIAL4_RX=PE_9 -DPIN_SERIAL4_TX=PE_8
  110. -DPIN_SERIAL5_RX=PE_11 -DPIN_SERIAL5_TX=PE_10
  111. -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
  112. -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
  113. -DSTEP_TIMER_IRQ_PRIO=0
  114. -Wl,--no-warn-rwx-segment
  115. upload_protocol = stlink
  116. debug_tool = stlink
  117. #
  118. # BigTreeTech Manta M8P V1.x (STM32G0B1VET6 ARM Cortex-M0+)
  119. # Custom upload to SD via Marlin with Binary Protocol
  120. #
  121. [env:STM32G0B1VE_btt_xfer]
  122. extends = env:STM32G0B1VE_btt
  123. build_flags = ${env:STM32G0B1VE_btt.build_flags} -DXFER_BUILD
  124. extra_scripts = ${env:STM32G0B1VE_btt.extra_scripts}
  125. pre:buildroot/share/scripts/upload.py
  126. upload_protocol = custom