Advertisement
silver2row

My_platformIO set up for the BBB or BBAI...

Nov 15th, 2020
1,350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.30 KB | None | 0 0
  1. [platformio]
  2. src_dir      = Marlin
  3. boards_dir   = buildroot/share/PlatformIO/boards
  4. default_envs = stable
  5. include_dir  = Marlin
  6.  
  7. ...
  8.  
  9. [env:stable]
  10. framework     = arduino
  11. extra_scripts = ${common.extra_scripts}
  12. build_flags   = ${common.build_flags}
  13. lib_deps      = ${common.lib_deps}
  14. monitor_speed = 250000
  15. monitor_flags =
  16.   --quiet
  17.   --echo
  18.   --eol
  19.     LF
  20.   --filter
  21.     colorize
  22.   --filter
  23.     time
  24.  
  25. ...
  26.  
  27. #
  28. # NXP LPC176x ARM Cortex-M3
  29. #
  30. [common_LPC]
  31. platform          = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip
  32. platform_packages = framework-arduino-lpc176x@^0.2.5
  33. board             = nxp_lpc1768
  34. lib_ldf_mode      = off
  35. lib_compat_mode   = strict
  36. extra_scripts     = ${common.extra_scripts}
  37.   Marlin/src/HAL/LPC1768/upload_extra_script.py
  38. src_filter        = ${common.default_src_filter} +<src/HAL/LPC1768> +<src/HAL/shared/backtrace>
  39. lib_deps          = ${common.lib_deps}
  40.   Servo
  41. custom_marlin.USES_LIQUIDCRYSTAL = LiquidCrystal@1.0.0
  42. custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/1.5.0.zip
  43. build_flags       = ${common.build_flags} -DU8G_HAL_LINKS -IMarlin/src/HAL/LPC1768/include -IMarlin/src/HAL/LPC1768/u8g
  44.   # debug options for backtrace
  45.   #-funwind-tables
  46.   #-mpoke-function-name
  47.  
  48. #
  49. # NXP LPC176x ARM Cortex-M3
  50. #
  51. [env:LPC1768]
  52. platform  = ${common_LPC.platform}
  53. extends   = common_LPC
  54. board     = nxp_lpc1768
  55.  
  56. ...
  57.  
  58. #
  59. # Native
  60. # No supported Arduino libraries, base Marlin only
  61. #
  62. [env:linux_native]
  63. platform        = native
  64. framework       =
  65. build_flags     = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
  66. src_build_flags = -Wall -IMarlin/src/HAL/LINUX/include
  67. build_unflags   = -Wall
  68. lib_ldf_mode    = off
  69. lib_deps        =
  70. src_filter      = ${common.default_src_filter} +<src/HAL/LINUX>
  71.  
  72. #
  73. # BBAI
  74. # No supported Arduino libraries, base Marlin only
  75. # (ARMCortex-M4)
  76. #
  77. [env:bbai]
  78. platform        = native
  79. board           = BBAI
  80. build_flags     = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
  81. src_build_flags = -Wall -IMarlin/src/HAL/LINUX/include
  82. build_unflags   = -Wall
  83. lib_ldf_mode    = off
  84. lib_deps        =
  85. src_filter      = ${common.default_src_filter} +<src/HAL/LINUX>
  86.  
  87.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement