Browse Source

PIO env for MKS Nano boards in STM32 (#19905)

vanilla_fb_2.0.x
Victor Oliveira 4 years ago
committed by Scott Lahteine
parent
commit
cec9075361
  1. 2
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO_V2.h
  2. 22
      platformio.ini

2
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO_V2.h

@ -25,7 +25,7 @@
* MKS Robin nano (STM32F130VET6) board pin assignments * MKS Robin nano (STM32F130VET6) board pin assignments
*/ */
#if NOT_TARGET(__STM32F1__) #if NOT_TARGET(__STM32F1__, STM32F1)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'" #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2 #elif HOTENDS > 2 || E_STEPPERS > 2
#error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue." #error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."

22
platformio.ini

@ -1322,6 +1322,28 @@ board = rumba32_f446ve
upload_protocol = dfu upload_protocol = dfu
monitor_speed = 500000 monitor_speed = 500000
#
# MKS Robin Nano V1.2 and V2 using hal STM32
#
[env:mks_robin_nano35_stm32]
platform = ${common_stm32.platform}
extends = common_stm32
build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
board = genericSTM32F103VE
board_build.core = stm32
board_build.variant = MARLIN_F103Vx
board_build.ldscript = ldscript.ld
board_build.offset = 0x7000
board_build.firmware = Robin_nano35.bin
board_upload.offset_address = 0x08007000
build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
debug_tool = jlink
upload_protocol = jlink
extra_scripts = ${common.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
buildroot/share/PlatformIO/scripts/mks_encrypt.py
################################# #################################
# # # #
# Other Architectures # # Other Architectures #

Loading…
Cancel
Save