Skip to content

Commit f7f29c6

Browse files
authored
✨ MKS Robin Nano 3.1 (MarlinFirmware#23795)
1 parent 358ffdd commit f7f29c6

File tree

4 files changed

+92
-10
lines changed

4 files changed

+92
-10
lines changed

Marlin/src/core/boards.h

+11-10
Original file line numberDiff line numberDiff line change
@@ -404,16 +404,17 @@
404404
#define BOARD_MKS_ROBIN2 4226 // MKS_ROBIN2 (STM32F407ZE)
405405
#define BOARD_MKS_ROBIN_PRO_V2 4227 // MKS Robin Pro V2 (STM32F407VE)
406406
#define BOARD_MKS_ROBIN_NANO_V3 4228 // MKS Robin Nano V3 (STM32F407VG)
407-
#define BOARD_MKS_MONSTER8 4229 // MKS Monster8 (STM32F407VG)
408-
#define BOARD_ANET_ET4 4230 // ANET ET4 V1.x (STM32F407VG)
409-
#define BOARD_ANET_ET4P 4231 // ANET ET4P V1.x (STM32F407VG)
410-
#define BOARD_FYSETC_CHEETAH_V20 4232 // FYSETC Cheetah V2.0
411-
#define BOARD_TH3D_EZBOARD_V2 4233 // TH3D EZBoard v2.0
412-
#define BOARD_INDEX_REV03 4234 // Index PnP Controller REV03 (STM32F407VE/VG)
413-
#define BOARD_MKS_ROBIN_NANO_V1_3_F4 4235 // MKS Robin Nano V1.3 and MKS Robin Nano-S V1.3 (STM32F407VE)
414-
#define BOARD_MKS_EAGLE 4236 // MKS Eagle (STM32F407VE)
415-
#define BOARD_ARTILLERY_RUBY 4237 // Artillery Ruby (STM32F401RC)
416-
#define BOARD_FYSETC_SPIDER_V2_2 4238 // FYSETC Spider V2.2 (STM32F446VE)
407+
#define BOARD_MKS_ROBIN_NANO_V3_1 4229 // MKS Robin Nano V3.1 (STM32F407VE)
408+
#define BOARD_MKS_MONSTER8 4230 // MKS Monster8 (STM32F407VG)
409+
#define BOARD_ANET_ET4 4231 // ANET ET4 V1.x (STM32F407VG)
410+
#define BOARD_ANET_ET4P 4232 // ANET ET4P V1.x (STM32F407VG)
411+
#define BOARD_FYSETC_CHEETAH_V20 4233 // FYSETC Cheetah V2.0
412+
#define BOARD_TH3D_EZBOARD_V2 4234 // TH3D EZBoard v2.0
413+
#define BOARD_INDEX_REV03 4235 // Index PnP Controller REV03 (STM32F407VE/VG)
414+
#define BOARD_MKS_ROBIN_NANO_V1_3_F4 4236 // MKS Robin Nano V1.3 and MKS Robin Nano-S V1.3 (STM32F407VE)
415+
#define BOARD_MKS_EAGLE 4237 // MKS Eagle (STM32F407VE)
416+
#define BOARD_ARTILLERY_RUBY 4238 // Artillery Ruby (STM32F401RC)
417+
#define BOARD_FYSETC_SPIDER_V2_2 4239 // FYSETC Spider V2.2 (STM32F446VE)
417418

418419
//
419420
// ARM Cortex M7

Marlin/src/pins/pins.h

+2
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@
669669
#include "stm32f4/pins_MKS_ROBIN_PRO_V2.h" // STM32F4 env:mks_robin_pro2
670670
#elif MB(MKS_ROBIN_NANO_V3)
671671
#include "stm32f4/pins_MKS_ROBIN_NANO_V3.h" // STM32F4 env:mks_robin_nano_v3 env:mks_robin_nano_v3_usb_flash_drive env:mks_robin_nano_v3_usb_flash_drive_msc
672+
#elif MB(MKS_ROBIN_NANO_V3_1)
673+
#include "stm32f4/pins_MKS_ROBIN_NANO_V3.h" // STM32F4 env:mks_robin_nano_v3_1 env:mks_robin_nano_v3_1_usb_flash_drive env:mks_robin_nano_v3_1_usb_flash_drive_msc
672674
#elif MB(ANET_ET4)
673675
#include "stm32f4/pins_ANET_ET4.h" // STM32F4 env:Anet_ET4_OpenBLT
674676
#elif MB(ANET_ET4P)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"build": {
3+
"core": "stm32",
4+
"cpu": "cortex-m4",
5+
"extra_flags": "-DSTM32F407xx -DSTM32F4",
6+
"f_cpu": "168000000L",
7+
"hwids": [
8+
[
9+
"0x1EAF",
10+
"0x0003"
11+
],
12+
[
13+
"0x0483",
14+
"0x3748"
15+
]
16+
],
17+
"mcu": "stm32f407vet6",
18+
"product_line": "STM32F407xx",
19+
"variant": "Generic_F4x7Vx"
20+
},
21+
"debug": {
22+
"default_tools": [
23+
"stlink"
24+
],
25+
"jlink_device": "STM32F407VE",
26+
"openocd_extra_args": [
27+
"-c",
28+
"reset_config none"
29+
],
30+
"openocd_target": "stm32f4x",
31+
"svd_path": "STM32F40x.svd"
32+
},
33+
"frameworks": [
34+
"arduino",
35+
"cmsis",
36+
"stm32cube",
37+
"libopencm3"
38+
],
39+
"name": "STM32F407VE (128k RAM, 64k CCM RAM, 512k Flash",
40+
"upload": {
41+
"disable_flushing": false,
42+
"maximum_ram_size": 131072,
43+
"maximum_size": 524288,
44+
"protocol": "stlink",
45+
"protocols": [
46+
"stlink",
47+
"dfu",
48+
"jlink"
49+
],
50+
"require_upload_port": true,
51+
"use_1200bps_touch": false,
52+
"wait_for_upload_port": false
53+
},
54+
"url": "https://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32-high-performance-mcus/stm32f4-series/stm32f407-417/stm32f407vg.html",
55+
"vendor": "Generic"
56+
}

ini/stm32f4.ini

+23
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,29 @@ build_flags = ${env:mks_robin_nano_v3_usb_flash_drive.build_flags}
440440
-DUSBD_USE_CDC_MSC
441441
build_unflags = -DUSBD_USE_CDC
442442

443+
#
444+
# MKS Robin Nano V3_1
445+
#
446+
[env:mks_robin_nano_v3_1]
447+
extends = env:mks_robin_nano_v3
448+
board = marlin_STM32F407VET6_CCM
449+
450+
#
451+
# MKS Robin Nano V3.1 with USB Flash Drive Support
452+
# Currently, using a STM32duino fork, until USB Host get merged
453+
#
454+
[env:mks_robin_nano_v3_1_usb_flash_drive]
455+
extends = env:mks_robin_nano_v3_usb_flash_drive
456+
board = marlin_STM32F407VET6_CCM
457+
458+
#
459+
# MKS Robin Nano V3.1 with USB Flash Drive Support and Shared Media
460+
# Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
461+
#
462+
[env:mks_robin_nano_v3_1_usb_flash_drive_msc]
463+
extends = env:mks_robin_nano_v3_usb_flash_drive_msc
464+
board = marlin_STM32F407VET6_CCM
465+
443466
#
444467
# MKS Eagle
445468
# 5 TMC2209 uart mode on board

0 commit comments

Comments
 (0)