MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
15.94k stars 19.08k forks source link

Preliminary CR4NS200320C13 board (Ender-3 V3) support #27003

Open mriscoc opened 3 weeks ago

mriscoc commented 3 weeks ago

Preliminary CR4NS200320C13 board support, as found in the Ender-3 V3 SE

Driver configuration and display pin-out must be verified, this board uses the GD32F303 RET6 SoC, it could be compatible with the STM32F103 as in other boards with the same SoC.

  /**
   *    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                       // To be verified
  #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

Seems that MS35774 driver is a clone of the TMC2208, TMC_UART configuration was found only for X, Y and Z drivers, so maybe E0 is working in TMC2208_STANDALONE mode.

Based on the disclosed board configuration, images and Creality's printer.cfg

image Image from Ebay store

thinkyhead commented 3 weeks ago

could be compatible with the STM32F103 as in other boards with the same SoC

It may be, although this is labeled as GD32F303... so if it follows the same numbering as STM32 the MCU is a Cortex-M4 instead of a Cortex-M3, so it may have a few more built-in ports and capabilites. In any case, it's very fast! 168 megahertz is fast enough to outrun even the bigger imperial cruisers.

mriscoc commented 3 weeks ago

It is a Cortex-M4 at 120MHz https://www.gigadevice.com/product/mcu/arm-cortex-m4/gd32f303ret6

thinkyhead commented 3 weeks ago

120MHz

Aha! Probably can still outrun most tie fighters.

mriscoc commented 3 weeks ago

Aha! Probably can still outrun most tie fighters.

Maybe even Tie interceptors and close to the USS Defiant.