stm32g0.ini 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 (C:256KB, D:384KB, E:512KB, G:1024KB)
  16. # T : LQFP package
  17. # 6 : -40...85°C (7: ...105°C)
  18. #
  19. #################################
  20. #
  21. # BigTreeTech SKR mini E3 V3.0 (STM32G0B1RET6 ARM Cortex-M0+)
  22. #
  23. [env:STM32G0B1RE_btt]
  24. extends = stm32_variant
  25. platform = ststm32@~14.1.0
  26. platform_packages = framework-arduinoststm32@~4.20600.231001
  27. toolchain-gccarmnoneeabi@1.100301.220327
  28. board = marlin_STM32G0B1RE
  29. board_build.offset = 0x2000
  30. board_upload.offset_address = 0x08002000
  31. build_flags = ${stm32_variant.build_flags}
  32. -DPIN_SERIAL4_RX=PC_11 -DPIN_SERIAL4_TX=PC_10
  33. -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
  34. -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
  35. -DSTEP_TIMER_IRQ_PRIO=0
  36. upload_protocol = stlink
  37. debug_tool = stlink
  38. #
  39. # Custom upload to SD via Marlin with Binary Protocol
  40. #
  41. [env:STM32G0B1RE_btt_xfer]
  42. extends = env:STM32G0B1RE_btt
  43. build_flags = ${env:STM32G0B1RE_btt.build_flags} -DXFER_BUILD
  44. extra_scripts = ${env:STM32G0B1RE_btt.extra_scripts}
  45. pre:buildroot/share/scripts/upload.py
  46. upload_protocol = custom