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

BlackBeezMini 3d Board #26406

Merged
merged 10 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Marlin/src/core/boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@
#define BOARD_I3DBEEZ9_V1 5247 // I3DBEEZ9 V1 (STM32F407ZG)
#define BOARD_MELLOW_FLY_E3_V2 5248 // Mellow Fly E3 V2 (STM32F407VG)
#define BOARD_FYSETC_CHEETAH_V30 5249 // FYSETC Cheetah V3.0 (STM32F446RC)
#define BOARD_BLACKBEEZMINI_V1 5250 // BlackBeezMini V1 (STM32F401CCU6)

//
// ARM Cortex-M7
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/pins/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,8 @@
#include "stm32f4/pins_I3DBEEZ9.h" // STM32F4 env:I3DBEEZ9_V1
#elif MB(MELLOW_FLY_E3_V2)
#include "stm32f4/pins_MELLOW_FLY_E3_V2.h" // STM32F4 env:FLY_E3_V2
#elif MB(BLACKBEEZMINI_V1)
#include "stm32f4/pins_BLACKBEEZMINI.h" // STM32F4 env:BLACKBEEZMINI_V1

//
// ARM Cortex-M7
Expand Down
164 changes: 164 additions & 0 deletions Marlin/src/pins/stm32f4/pins_BLACKBEEZMINI.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2023 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once

#if NOT_TARGET(STM32F4)
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
#elif HOTENDS > 1 || E_STEPPERS > 1
#error "STM32F401CCU6 boards support one hotend / E-steppers only."
#endif

#include "env_validate.h"

#ifndef DEFAULT_MACHINE_NAME
#define DEFAULT_MACHINE_NAME "I3DBEE BP_01"
#endif
#define TEMP_TIMER 5
//#define DISABLE_DEBUG false // DISABLE_(DEBUG|JTAG) is not supported for STM32F4.
//#define ALLOW_STM32F4
//#define BOARD_NO_NATIVE_USB

//
// EEPROM
//
#define FLASH_EEPROM_EMULATION
#define FLASH_EEPROM_LEVELING
#define EEPROM_SIZE 0x4000 // 16kB
#define FLASH_SECTOR (FLASH_SECTOR_TOTAL - 1)
#define FLASH_UNIT_SIZE 0x4000 // 16kB
/*
#if NO_EEPROM_SELECTED
#define IIC_BL24CXX_EEPROM // EEPROM on I2C-0
#define SDCARD_EEPROM_EMULATION
#endif
*/

//
// Limit Switches
//
#ifndef X_STOP_PIN
#ifndef X_MIN_PIN
#define X_MIN_PIN PB9
#endif
#ifndef X_MAX_PIN
#define X_MAX_PIN PB9
#endif
#endif
#ifndef Y_STOP_PIN
#ifndef Y_MIN_PIN
#define Y_MIN_PIN PB3
#endif
#ifndef Y_MAX_PIN
#define Y_MAX_PIN PB3
#endif
#endif
#ifndef Z_STOP_PIN
#ifndef Z_MIN_PIN
#define Z_MIN_PIN PA9
#endif
#ifndef Z_MAX_PIN
#define Z_MAX_PIN PA9
#endif
#endif

//
// Steppers
//
// X & Y enable are the same
#define X_STEP_PIN PB7
#define X_DIR_PIN PB6
#define X_ENABLE_PIN PB8

#define Y_STEP_PIN PB5
#define Y_DIR_PIN PB4
#define Y_ENABLE_PIN X_ENABLE_PIN

#define Z_STEP_PIN PA15
#define Z_DIR_PIN PA10
#define Z_ENABLE_PIN X_ENABLE_PIN

#define E0_STEP_PIN PA8
#define E0_DIR_PIN PB15
#define E0_ENABLE_PIN X_ENABLE_PIN

//
// Temperature Sensors
//
#define TEMP_0_PIN PB1 // Analog Input (HOTEND thermistor)
#define TEMP_BED_PIN PB0 // Analog Input (BED thermistor)

//
// Heaters / Fans
//
#define HEATER_0_PIN PA2 // HOTEND MOSFET
#define HEATER_BED_PIN PA0 // BED MOSFET

#define FAN1_PIN PA1 // FAN1 header on board - PRINT FAN

//Encoder
#define BTN_EN1 PC15
#define BTN_EN2 PC14
#define BTN_ENC PC13

// SDCard
#define SDSS PA4
#define SD_DETECT_PIN -1
#define BEEPER_PIN PB10
#define KILL_PIN -1

//
// SPI
//
#define SD_SCK_PIN PA5
#define SD_MISO_PIN PA6
#define SD_MOSI_PIN PA7

//LCD REPRAP_DISCOUNT_SMART_CONTROLLER
//
#define LCD_PINS_RS PB12
#define LCD_PINS_EN PB13
#define LCD_PINS_D4 PB14
#define LCD_PINS_D5 PA3
//#define LCD_PINS_D6 PB1 //
//#define LCD_PINS_D7 PB2 ///<- Ты вонючий алкашь, что блядь это такое, сука, я тебя спрашиваю!
I3DBeeTech marked this conversation as resolved.
Show resolved Hide resolved

#if ENABLED(FYSETC_MINI_12864)
#define DOGLCD_CS PB13
#define DOGLCD_A0 PB12
//#define LCD_BACKLIGHT_PIN -1
#define LCD_RESET_PIN PB14 // Must be high or open for LCD to operate normally.
#if ENABLED(FYSETC_MINI_12864_2_1)
#define NEOPIXEL_PIN PA3
#endif
#endif // !FYSETC_MINI_12864
// GLCD features
//
//#define LCD_CONTRAST 190

// Uncomment screen orientation
//
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270

//#define DISABLE_JTAG
//#define FAN_SOFT_PWM
2 changes: 1 addition & 1 deletion buildroot/share/PlatformIO/scripts/offset_and_rename.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# offset_and_rename.py
#
# - If 'build.offset' is provided, either by JSON or by the environment...
# - If 'board_build.offset' is provided, either by JSON or by the environment...
# - Set linker flag LD_FLASH_OFFSET and relocate the VTAB based on 'build.offset'.
# - Set linker flag LD_MAX_DATA_SIZE based on 'build.maximum_ram_size'.
# - Define STM32_FLASH_SIZE from 'upload.maximum_size' for use by Flash-based EEPROM emulation.
Expand Down
14 changes: 14 additions & 0 deletions ini/stm32f4.ini
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,20 @@ build_flags = ${stm32_variant.build_flags} -DSTM32F407_5ZX
debug_tool = stlink
upload_protocol = stlink

#
# BlackBeezMini (blackpill_f401cc)
#
[env:BLACKBEEZMINI_V1]
platform = ststm32
extends = common_stm32
board = blackpill_f401cc
board_build.offset = 0x0000
build_flags = ${common_stm32.build_flags}
-Os -DHAL_PCD_MODULE_ENABLED
-DHAL_UART_MODULE_ENABLED
monitor_speed = 250000
upload_protocol = dfu

#
# Mellow Fly E3 V2 (STM32F407VGT6 ARM Cortex-M4)
#
Expand Down