0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-02-02 07:00:42 +00:00

Ender-3 V3 board CR4NS200320C13 (#27003)

This commit is contained in:
Miguel Risco-Castillo 2024-05-21 15:20:12 -05:00 committed by GitHub
parent 1845056014
commit 5f32698da5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 142 additions and 0 deletions

View file

@ -468,6 +468,11 @@
#define BOARD_FYSETC_CHEETAH_V30 5250 // FYSETC Cheetah V3.0 (STM32F446RC)
#define BOARD_BLACKBEEZMINI_V1 5251 // BlackBeezMini V1 (STM32F401CCU6)
//
// Other ARM Cortex-M4
//
#define BOARD_CREALITY_CR4NS 5300 // Creality CR4NS200320C13 (GD32F303RET6) as found in the Ender-3 V3 SE
//
// ARM Cortex-M7
//

View file

@ -712,6 +712,8 @@
#include "gd32f1/pins_VOXELAB_AQUILA.h" // GD32F1, N32G4, STM32F1 env:GD32F103RC_voxelab_maple env:N32G455RE_voxelab_maple env:STM32F103RE_creality_maple env:STM32F103RE_creality
#elif MB(SPRINGER_CONTROLLER)
#include "stm32f1/pins_ORCA_3D_SPRINGER.h" // STM32F1 env:STM32F103VC_orca3d
#elif MB(CREALITY_CR4NS)
#include "stm32f1/pins_CREALITY_CR4NS.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_maple
//
// ARM Cortex-M4F

View file

@ -0,0 +1,135 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2024 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
/**
* Creality CREALITY_CR4NS (GD32F303RET6) board pin assignments
* Sold as "Creality Ender-3 V3 SE CR4NS200320C13 Motherboard"
* Preliminary support for the Professional Firmwware
*/
#include "env_validate.h"
#if HOTENDS > 1 || E_STEPPERS > 1
#error "CR4NS200320C13 only supports one hotend / E-stepper."
#endif
// Validate stepper driver selections.
//#if !AXIS_DRIVER_TYPE_X(TMC2208) || !AXIS_DRIVER_TYPE_Y(TMC2208) || !AXIS_DRIVER_TYPE_Z(TMC2208) || !AXIS_DRIVER_TYPE_E0(TMC2208)
// #error "This board has onboard TMC2208 drivers for X, Y, Z, and E0."
//#endif
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "CR4NS200320C13"
#endif
#ifndef DEFAULT_MACHINE_NAME
#define DEFAULT_MACHINE_NAME "Ender-3 V3 SE"
#endif
#define BOARD_WEBSITE_URL "www.creality.com"
//
// Servos
//
#ifndef SERVO0_PIN
#define SERVO0_PIN PC14
#endif
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN PC13 // BLTouch IN
#endif
//
// Limit Switches
//
//#ifndef Z_STOP_PIN
// #define Z_STOP_PIN PA15 // else PA7
//#endif
//
// Filament Runout Sensor
//
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN PC15 // "Pulled-high"
#endif
//
// Heaters / Fans
//
#define HEATER_BED_PIN PB2 // HOT BED
#define FAN1_PIN PC1 // extruder fan
//#define FAN2_PIN PB1 // Controller fan FET
//
// Auto fans
//
//#ifndef CONTROLLER_FAN_PIN
// #define CONTROLLER_FAN_PIN FAN2_PIN
//#endif
#if HAS_TMC_UART
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
// Software serial
#define X_SERIAL_TX_PIN PB12
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PB13
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PB14
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#endif // HAS_TMC_UART
#if ANY(RET6_12864_LCD, HAS_DWIN_E3V2, IS_DWIN_MARLINUI)
/**
* LCD PIN OUT
* ------
* NC | 1 2 | NC
* RX | 3 4 | TX
* EN 5 6 | BEEP
* B | 7 8 | A
* GND | 9 10 | +5V
* ------
*/
#define EXP3_01_PIN -1
#define EXP3_02_PIN -1
#define EXP3_03_PIN PA2
#define EXP3_04_PIN PA3
#define EXP3_05_PIN PB1
#define EXP3_06_PIN -1
#define EXP3_07_PIN PA12
#define EXP3_08_PIN PA11
#ifndef BEEPER_PIN
#define BEEPER_PIN EXP1_06_PIN // BEEP
#endif
#define BTN_ENC EXP1_05_PIN // EN
#define BTN_EN1 EXP1_08_PIN // A
#define BTN_EN2 EXP1_07_PIN // B
#endif
#include "pins_CREALITY_V4.h"