Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platformIO setup for Marlin #11

Closed
wap32 opened this issue Aug 30, 2019 · 6 comments
Closed

platformIO setup for Marlin #11

wap32 opened this issue Aug 30, 2019 · 6 comments

Comments

@wap32
Copy link

wap32 commented Aug 30, 2019

Hello,

I just got myself a RUMBA32 board and am currently setting it up with Marlin.
The WiKi is helpful enough to guide through the Arduino IDE setup, and this works fine and I'm able to compile and upload without issues (so far).

However, I would like to get Marlin working with platformIO, and here I've been facing some issues.

Is there a known good platformio.ini env setup for Marlin that compiles properly with RUMBA32?

I think this would be a good addition to the WiKi documentation, as platformIO tends to be more straightforward to use once set up properly, and more portable as it does not depend on an existing properly configured Arduino IDE.

@lei111
Copy link

lei111 commented Nov 23, 2019

I also encountered the same problem and hope to provide a configuration example. Thank you

@wap32
Copy link
Author

wap32 commented Dec 10, 2019

I forgot to update this issue, I ended up finding a working config for platformio, at least as of a couple of months ago (have not tested with latest Marlin build).

#
# RUMBA32
#
[env:rumba32_f446ve]
platform      = ststm32
framework     = arduino
board         = rumba32_f446ve
build_flags   = ${common.build_flags}
  -DSTM32F4xx
  -DARDUINO_RUMBA32_F446VE
  -DARDUINO_ARCH_STM32
  "-DBOARD_NAME=\"RUMBA32_F446VE\""
  -DSTM32F446xx
  -DUSBCON
  -DUSBD_VID=0x0483
  "-DUSB_MANUFACTURER=\"Unknown\""
  "-DUSB_PRODUCT=\"RUMBA32_F446VE\""
  -DHAL_PCD_MODULE_ENABLED
  -DUSBD_USE_CDC
  -DDISABLE_GENERIC_SERIALUSB
  -DHAL_UART_MODULE_ENABLED
  -Os
lib_deps      = ${common.lib_deps}
lib_ignore    = Adafruit NeoPixel
src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32> +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/STM32F7>
monitor_speed = 500000
upload_protocol = dfu

@deruben900
Copy link

Have you been able to use the board with the latest Marlin version (2,0) with platformio?
I am able to build, but not upload it firmware to my board.

@capibara1
Copy link

I have not been able to compile Marlin 2.0.x (2.0.5.3 as of today) or bugfix-2.0.x at all. Whether is it with the Arduino IDE or via Platform IO. The platform.ini entry for the RUMBA32 that @wap32 provided seems to be the one to use (better than the default entry that comes with Marlin) but still doesn't produce a successful compile.

@chrissbarr
Copy link
Contributor

The PlatformIO config included with the current bugfix-2.0.x Marlin branch is working for me - I've put together some instructions here: #22 (comment)

@chrissbarr
Copy link
Contributor

chrissbarr commented Jul 7, 2020

I've updated the wiki with instructions for using PlatformIO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants