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

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

Conversation

mriscoc
Copy link
Contributor

@mriscoc mriscoc commented Apr 23, 2024

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

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.

```cpp
  /**
   *    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
@thinkyhead
Copy link
Member

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
Copy link
Contributor Author

mriscoc commented Apr 24, 2024

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

@thinkyhead
Copy link
Member

120MHz

Aha! Probably can still outrun most tie fighters.

@mriscoc
Copy link
Contributor Author

mriscoc commented Apr 24, 2024

Aha! Probably can still outrun most tie fighters.

Maybe even Tie interceptors and close to the USS Defiant.

@thinkyhead thinkyhead merged commit 5f32698 into MarlinFirmware:bugfix-2.1.x May 21, 2024
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Boards/Pins help wanted S: Don't Merge Work in progress or under discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants