stm32g0.ini 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. -DPIN_SERIAL5_RX=PD_2 -DPIN_SERIAL5_TX=PD_3
  57. -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
  58. -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
  59. -DSTEP_TIMER_IRQ_PRIO=0
  60. -Wl,--no-warn-rwx-segment
  61. upload_protocol = stlink
  62. debug_tool = stlink
  63. #
  64. # BigTreeTech SKR Mini E3 V3.0 (STM32G0B0RET6 / STM32G0B1RET6 ARM Cortex-M0+)
  65. # Custom upload to SD via Marlin with Binary Protocol
  66. # Requires Marlin with BINARY_FILE_TRANSFER already installed on the target board.
  67. # If CUSTOM_FIRMWARE_UPLOAD is also installed, Marlin will reboot the board to install the firmware.
  68. # Currently CUSTOM_FIRMWARE_UPLOAD must also be enabled to use 'xfer' build envs.
  69. #
  70. [env:STM32G0B1RE_btt_xfer]
  71. extends = env:STM32G0B1RE_btt
  72. build_flags = ${env:STM32G0B1RE_btt.build_flags} -DXFER_BUILD
  73. extra_scripts = ${env:STM32G0B1RE_btt.extra_scripts}
  74. pre:buildroot/share/scripts/upload.py
  75. upload_protocol = custom
  76. #
  77. # BigTreeTech Manta M4P V2.1 (STM32G0B0RET6 ARM Cortex-M0+)
  78. # BigTreeTech Manta E3 EZ V1.0 / Manta M5P V1.0 (STM32G0B1RET6 ARM Cortex-M0+)
  79. #
  80. [env:STM32G0B1RE_manta_btt]
  81. extends = env:STM32G0B1RE_btt
  82. build_flags = ${env:STM32G0B1RE_btt.build_flags}
  83. -DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8 -DENABLE_HWSERIAL3
  84. #
  85. # BigTreeTech Manta M8P V1.x (STM32G0B1VET6 ARM Cortex-M0+)
  86. # BigTreeTech SKRat V1.0 (STM32G0B1VET6 ARM Cortex-M0+)
  87. #
  88. [env:STM32G0B1VE_btt]
  89. extends = stm32_variant
  90. platform = ststm32@17.1.0
  91. platform_packages = framework-arduinoststm32@~4.20600.231001
  92. toolchain-gccarmnoneeabi@1.120301.0
  93. board = marlin_STM32G0B1VE
  94. board_build.offset = 0x2000
  95. board_upload.offset_address = 0x08002000
  96. build_flags = ${stm32_variant.build_flags}
  97. -DPIN_SERIAL4_RX=PE_9 -DPIN_SERIAL4_TX=PE_8
  98. -DPIN_SERIAL5_RX=PE_11 -DPIN_SERIAL5_TX=PE_10
  99. -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
  100. -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
  101. -DSTEP_TIMER_IRQ_PRIO=0
  102. -Wl,--no-warn-rwx-segment
  103. upload_protocol = stlink
  104. debug_tool = stlink
  105. #
  106. # BigTreeTech SKRat V1.0 (STM32G0B1VET6 ARM Cortex-M0+)
  107. # Custom upload to SD via Marlin with Binary Protocol
  108. #
  109. [env:STM32G0B1VE_btt_xfer]
  110. extends = env:STM32G0B1VE_btt
  111. build_flags = ${env:STM32G0B1VE_btt.build_flags} -DXFER_BUILD
  112. extra_scripts = ${env:STM32G0B1VE_btt.extra_scripts}
  113. pre:buildroot/share/scripts/upload.py
  114. upload_protocol = custom