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

mriscoc commented Jul 18, 2024

Creality published the sources for the Ender-3 V3 SE and the board pin file is there: https://github.com/CrealityOfficial/Ender-3V3-SE/blob/main/Marlin/src/pins/stm32f1/pins_CREALITY_V3_GD303.h
So, some pin definitions need to be updated.

@leonardola
Copy link

leonardola commented Sep 20, 2024

@mriscoc any progress on updating the pins? I'm trying to compile marlin for my ender 3 V3 SE and would like to help fixing the pins if you haven't started it yet.

I've started a PR to merge the Creality official repo configs into the latest marlin repo here

I only noticed now that the board was already supported

@mriscoc
Copy link
Contributor Author

mriscoc commented Sep 23, 2024

@mriscoc any progress on updating the pins

Hi, I don't have the printer to do the necessary test, it is not only a problem with pins, also the screen is different from other Ender 3 editions. But I think that I have a more updated board pin definition file here: mriscoc/Ender3V2S1@404e13a#diff-98d676e6f66dab4f9542d7a68843115ba18b0af88f410703c148c11b9525d27b

@queeup
Copy link

queeup commented Oct 3, 2024

@mriscoc, Thank you for your work. Hope some one test it and upstream this pins.

@ellensp
Copy link
Contributor

ellensp commented Oct 5, 2024

if anyone is particularly keen these board are half off on aliexpress at present...
Since they have custom plugs (30 pin ribbon cable) and contain a GD32F303 Im not personally interested.

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.

6 participants