Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
⚡️ BTT002 (STM32F407VET6) variant, MK3_FAN_PINS flag (MarlinFirmware#…
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiskeithb authored and 0xk1f0 committed Dec 26, 2021
1 parent b04e79a commit 875b55f
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/pins/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@
#elif MB(BTT_GTR_V1_0)
#include "stm32f4/pins_BTT_GTR_V1_0.h" // STM32F4 env:BIGTREE_GTR_V1_0 env:BIGTREE_GTR_V1_0_usb_flash_drive
#elif MB(BTT_BTT002_V1_0)
#include "stm32f4/pins_BTT_BTT002_V1_0.h" // STM32F4 env:BIGTREE_BTT002
#include "stm32f4/pins_BTT_BTT002_V1_0.h" // STM32F4 env:BIGTREE_BTT002 env:BIGTREE_BTT002_VET6
#elif MB(BTT_E3_RRF)
#include "stm32f4/pins_BTT_E3_RRF.h" // STM32F4 env:BIGTREE_E3_RRF
#elif MB(BTT_SKR_V2_0_REV_A)
Expand Down
20 changes: 18 additions & 2 deletions Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

#define BOARD_INFO_NAME "BTT BTT002 V1.0"

//#define MK3_FAN_PINS

#define USES_DIAG_PINS

// Ignore temp readings during development.
Expand Down Expand Up @@ -169,8 +171,22 @@
//
#define HEATER_0_PIN PE6 // Heater0
#define HEATER_BED_PIN PE5 // Hotbed
#define FAN_PIN PB8 // Fan1
#define FAN1_PIN PB9 // Fan0

#ifndef FAN_PIN
#ifdef MK3_FAN_PINS
#define FAN_PIN PB8 // Fan1
#else
#define FAN_PIN PB9 // Fan0
#endif
#endif

#ifndef FAN1_PIN
#ifdef MK3_FAN_PINS
#define FAN1_PIN PB9 // Fan0
#else
#define FAN1_PIN PB8 // Fan1
#endif
#endif

/**
* -----------------------------------BTT002 V1.0----------------------------------------
Expand Down
46 changes: 46 additions & 0 deletions buildroot/share/PlatformIO/boards/marlin_BigTree_BTT002_VET6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"build": {
"core": "stm32",
"cpu": "cortex-m4",
"extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
"f_cpu": "168000000L",
"hwids": [
[
"0x1EAF",
"0x0003"
],
[
"0x0483",
"0x3748"
]
],
"mcu": "stm32f407vet6",
"variant": "MARLIN_BIGTREE_BTT002"
},
"debug": {
"jlink_device": "STM32F407VE",
"openocd_target": "stm32f4x",
"svd_path": "STM32F40x.svd"
},
"frameworks": [
"arduino"
],
"name": "STM32F407VE (192k RAM. 512k Flash)",
"upload": {
"disable_flushing": false,
"maximum_ram_size": 131072,
"maximum_size": 524288,
"protocol": "stlink",
"protocols": [
"stlink",
"dfu",
"jlink"
],
"offset_address": "0x8008000",
"require_upload_port": true,
"use_1200bps_touch": false,
"wait_for_upload_port": false
},
"url": "https://www.st.com/en/microcontrollers-microprocessors/stm32f407ve.html",
"vendor": "ST"
}
8 changes: 8 additions & 0 deletions ini/stm32f4.ini
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,14 @@ build_flags = ${stm32_variant.build_flags}
-DPIN_SERIAL2_RX=PD_6
-DPIN_SERIAL2_TX=PD_5

#
# BigTreeTech BTT002 V1.x with 512k of flash (STM32F407VET6 ARM Cortex-M4)
#
[env:BIGTREE_BTT002_VET6]
platform = ${env:BIGTREE_BTT002.platform}
extends = env:BIGTREE_BTT002
board = marlin_BigTree_BTT002_VET6

#
# BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Flash Drive Support
#
Expand Down

0 comments on commit 875b55f

Please sign in to comment.