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

Marlin 2.x Support for the GTM32 mini and pro boards #1

Open
redangel1984 opened this issue Jul 10, 2018 · 111 comments
Open

Marlin 2.x Support for the GTM32 mini and pro boards #1

redangel1984 opened this issue Jul 10, 2018 · 111 comments
Labels
to do list Put into to do list

Comments

@redangel1984
Copy link

It would be great if these two open source boards could support Marlin 2.x 32bit version.
I have no idea of coding. But this would be awesome if Geeetech or users who can code would make Marlin 2.x to be compatible with the GTM32 boards. So much possibilities and features would open up for the users and also for Marlin.
I’ve seen this issue posted on the Smartto firmware repository which in my opinion would belong here, it is not a firmware issue/feature but more like a hardware issue.

@Geeetech3D Geeetech3D added the to do list Put into to do list label Jul 26, 2018
@monrra
Copy link

monrra commented Aug 1, 2018

I totally agree with you. If we can install Marlin in our boards I’m sure that the community and contribution will grow up a lot. Please take this on count, I think it’s the best improvement.

@alexwoo1900
Copy link

@redangel1984 @monrra We are rewritting smartto-eclipse(reconstruct, complete command, fix bug etc.) It may take one or two months and then we will start discussion on marlin 2.x. We still not sure how many people would like to use marlin in these boards. Is it worth to do that? The issue need more research and supporter.

@monrra
Copy link

monrra commented Aug 1, 2018

Hi @alexwoo1900. I dont know if @redangel1984 thinks like me, but I really think that almost everyone prefer Marlin for being an open source reliable firmware since a lot of time ago. In fact, you just need to look for other printers with Marlin, people are very happy with it.

@redangel1984
Copy link
Author

@alexwoo1900
I am sure If you make Marin available for this printer and board more people will use it on Marlin than on Smartto.
And I am sure too that it you won’t make Smartto stable and improve it, you will loose current and future customers. Because as for now to use Smartto is a pain in the @$$.

@monrra
Copy link

monrra commented Aug 1, 2018

Totally agree with @redangel1984.

@macasero
Copy link

macasero commented Aug 1, 2018

Hi @alexwoo1900. I think @redangel1984 is right. It would be gorgeous

@redangel1984
Copy link
Author

Vote:

https://www.facebook.com/groups/315127105604393/permalink/509082706208831/

@BennyBoyW
Copy link

At this point, I believe we'd be better served with the Marlin Firmware. My A30 is currently bricked till I get chance to downgrade the firmware etc

@JordiKoki
Copy link

We need this project. Marlin Firwmare is more extended in the 3d print comunity. More functions, open code, etc... @alexwoo1900

@edusaul
Copy link

edusaul commented Aug 1, 2018

It would be great to have Marlin Firmware for A30 @alexwoo1900

@alexwoo1900
Copy link

@redangel1984 @monrra @macasero @BennyBoyW @JordiKoki
Hi, guys.
We have seen your posts and votes and made a long discussion about how to deal with Marlin and Smartto a few hours ago.
That's our plan:
First and foremost, we will repush newest firmware which fixed all fatal errors in a short time.
Secondly, we will continue our development on Smartto. At the same time, we will contact with marlin team and talk about how to make Marlin support GTM32 boards.
I will share our progress about Marlin supporting in this post or facebook group.
If you already have done something about it, please let us know.

@soydif
Copy link

soydif commented Aug 2, 2018

good morning, it is very interesting this proposal would be ideal to have that compatibility for our printers. I am also interested and I have two.

@schuko1982
Copy link

It would be great to have compatibility with Marlin, apart from the one we already have with smartoo, thank you very much for listening to us and wanting to improve the product.

@alexwoo1900
Copy link

Marlin team has no reply to us. But we had started to do transplant work.

@monrra
Copy link

monrra commented Aug 17, 2018

@alexwoo1900 that’s great! With Marlin, this printer will be one of the best in the market.

@monrra
Copy link

monrra commented Oct 8, 2018

Hi @alexwoo1900 . Are there any news?

@redangel1984
Copy link
Author

2 month and still nothing?

@alexwoo1900
Copy link

@monrra @redangel1984 Sorry for my late reply. Our firmware team met some very tricky problems. They make all works except for bootloader and SD card part. (The main dev is working on the latter). The market team had sent some copies to some customers to test. If you guys want to join us, please contact Emma.

@macasero
Copy link

I would love to test it

@Geeetech3D
Copy link
Owner

https://pan.baidu.com/s/1r_M4g5Q644flxyVpDe85Lg
Contains the Arduino compiler and A30 marlin source code, as well as instructions for use. Currently, serial port printing is supported, and SD card printing is not supported.

@macasero
Copy link

Can´t register without a china phone number. Could anybody upload somewhere else?

@macasero
Copy link

macasero commented Oct 25, 2018

exec: "/bin/arm-none-eabi-g++": file does not exist
Error compilando para la tarjeta Generic STM32F103V series.

any thoughts?

@alexwoo1900
Copy link

@macasero
In Arduino, tool->board->boards manager
Install the target board

@macasero
Copy link

macasero commented Oct 27, 2018

Solved, compiled, tested.
Fan are wrong. Hotend cooling fan does not work. If try to enable with gcode you turn on and off the fan at control box. Layer fan is allways on. Seams pin mapping needs to get review.

@alexwoo1900
Copy link

@macasero Thanks for your feedback. Our dev has started to review the code.

@macasero
Copy link

did you follow this schematics to do the mapping?
https://github.com/Geeetech3D/Diagram/blob/master/3DPrinter_A30_E180/Hardware_GTM32_MINI_S.pdf

@InnerBushman
Copy link

InnerBushman commented May 19, 2021

Hi @ldiegos,
I believe what you are looking for is here:
https://www.geeetech.com/forum/viewtopic.php?f=20&t=60425#p81311
I'm using the ST Flash demo tool myself to program my printer ;) There's only one catch: you need to know the entry point of your firmware and upload it accordingly. I suggest you try 8002000h like in the tutorial. If that doesn't work, you'll need to figure out your compilation's entry address. Please remember that flashing your firmware anywhere higher than 8002000h WILL overwrite Geeetech's boot-loader code and you won't be able to use factory flashing method until you restore it with ST flash tool.
If you have any additional questions, don't hesitate to ask :)

####EDIT####
I might have jumped the guns. Your board is GMT32_mini_s. I do not know if the procedure is 100% compatible. Please use your best judgment before attempting any of the steps in the tutorial posted above.

@ldiegos
Copy link

ldiegos commented May 19, 2021

@InnerBushman thank you so much, yes this is a GMT32_mini_s , i will use your tutorial and if i brick it, don't worry.
The fact is that i hate the smartto, so i rather prefer to brick it trying to install marlin than continue with it as is.
Again, thank you so much in advance
Luis.

@peakpwr
Copy link

peakpwr commented May 20, 2021

Good morning,
Someone kind who can explain the steps to update marlin into the GMT32_mini_s? never mind if is with arduino ide or vscode with platformio.

With vsCode/platformio and marlin 2.0.8.1 for example, after compiling correctly
-Upload directly from VsCode with "Auto build marlin" fail.
-Upload directly from VsCode with "Autobuild marlin" and jumper on BootOn(board) fail.
-Save the .bin to a sd card formatted on fat fail.
-Save the .bin to a sd card formatted on fat fail with jumper on BootOn(Board) fail.
-Using the flash firmware program from geeetech fail(the program hangs with the .bin)

The usb cable works, because if i use the smartto program to connect to the E180 i can change the parameters.

Funny I tried flashing Marlin on my A30 with GMT32_mini_s board as well today.
For me your described attempts didn't work either.
So I thought I should try flashing the firmware generated by platform io with my stlink v2.
Well it did flash from platformios interface. But after that nothing worked anymore. I'm not sure to which addresses platform io wrote so I can't tell if the boot loader is gone.

From reading the geeetech forum the bootloader should be located At 8000000 and the firmware At 8002000 for the pro boards. As they seem to use the same stm32 I guess this should work for the mini boards aswell.

could you please backup your current firmware with bootloader so we can compare it?

My next try will be flashing the bootloader and the marlin at the given addresses of the pro board and see if that works.

@peakpwr
Copy link

peakpwr commented May 20, 2021

So some news concerning the GTM 32 Mini S Board:
Flashing the Marlin 2.0.8.1 at 8000000 works now. I don't know why it didn't yesterday.
Marlin boots and the following apears in the Terminal of Octorprint when it's trying to connect:

Changing monitoring state from "Offline" to "Detecting serial connection"
Performing autodetection with 1 port/baudrate candidates: /dev/ttyUSB0@115200
Trying port /dev/ttyUSB0, baudrate 115200
Connecting to port /dev/ttyUSB0, baudrate 115200
Handshake attempt #1 with timeout 2.0s
Connected to: Serial<id=0x6cd40d30, open=True>(port='/dev/ttyUSB0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=2.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Send: N0 M110 N0125
Recv: start
Changing monitoring state from "Detecting serial connection" to "Operational"
Recv: PowerUp
Recv: Marlin 2.0.8.1
Recv:
Recv: echo: Last Updated: 2021-05-15 | Author: (none, default config)
Send: N0 M110 N0
125
Communication timeout while idle, trying to trigger response from printer. Configure long running commands or increase communication timeout if that happens regularly on specific commands or long moves.
Send: N1 M11539
Communication timeout while idle, trying to trigger response from printer. Configure long running commands or increase communication timeout if that happens regularly on specific commands or long moves.
Send: N2 M21
18
No response from printer after 3 consecutive communication timeouts, considering it dead. Configure long running commands or increase communication timeout if that happens regularly on specific commands or long moves.
Changing monitoring state from "Operational" to "Offline after error"
Connection closed, closing down monitor

After 3 connection attempts it closes the connection. Also nothing can be controlled.
I think it could be a problem with Octoprint, but pronterface or similar don't show any information either.
Maybe the compiled binary includes faults? I used the pin_GTM32_MINI.h and the pin_GTM32_MINI_A30.h. What else could be a problem?

Conclusion:

  • flashing of the marlin binary works if flashed without geeetech bootloader and at 8000000
  • Marlin shows up in Octoprint but disconnects

@TheThomasD
Copy link

TheThomasD commented May 20, 2021

I had the same problem with my A30T (same board?). Flashing worked, got some output from Marlin, but then connection is lost (Repetier Server). I guess something in the config is not right, but I haven’t found the time to investigate, yet.

@peakpwr
Copy link

peakpwr commented Jun 7, 2021

What config could lead to this reproducible connection loss?
I thought die custom configs in the config repos A30 folder should have all settings (except the motor driver) preset?

I feel like we are very close to finding the issue and make the GTM32 Mini work but at the moment I don't have an idea.

Offtopic concerning going back to stock firmware as a quick fix until marlin works for the GTM32 Mini:
I managed to flash back the original firmware (adress 8002000) and bootloader (adress 8000000) and update it via the Smartto Upgrador. This works at least but I haven't fully tested the Firmware 1.39.62 during a print.

@ldiegos
Copy link

ldiegos commented Jun 12, 2021

I give up, i threw it to the trash and bought a bigtreetech Skr1.4Turbo with a TFT35 v3 and them are working since the beginning. Not to mention that everything inside the E180 is fully geeetech custom and nothing works as any other standard printers, so i had to redo all the cableling.

Don't waste your time... buy another board.

@peakpwr
Copy link

peakpwr commented Sep 19, 2021

I was close to giving up but I tried it one more time.
This time with a freshly compiled version 2.0.9.1 of marlin.
I don't know what changed but it works. The connection is stable and I can control X and Z Axis without problems.
Only the Y Axis and the extruder are not working. I checked for misconfigured pins in the gtm32 mini a30 config but everything seems to be ok. I even checked if pins on the microcontroller are broken but everything works with a test program, but as soon as marlin is flashed the Step/Dir pins of the stepper driver seem not to work (600mV constantly, no matter if step command is executed or not, by the way I use TMC2008 drivers but should be the same with others.

Now I'm even more confused and motivated. It can't be much but where should I keep on searching.
My problem is that the GTM32 Mini is a normal STM32 based mainboard. There is no reason it shouldn't work so I can't accept that. Would be great if we could discuss on this topic and some feedback is given. I'll keep on posting my results as I think a lot of A30 owners would like to use marlin ...

@Geeetech3D
Copy link
Owner

Geeetech3D commented Sep 24, 2021 via email

@krabbs
Copy link

krabbs commented Oct 3, 2021

I was close to giving up but I tried it one more time. This time with a freshly compiled version 2.0.9.1 of marlin. I don't know what changed but it works. The connection is stable and I can control X and Z Axis without problems. Only the Y Axis and the extruder are not working. I checked for misconfigured pins in the gtm32 mini a30 config but everything seems to be ok. I even checked if pins on the microcontroller are broken but everything works with a test program, but as soon as marlin is flashed the Step/Dir pins of the stepper driver seem not to work (600mV constantly, no matter if step command is executed or not, by the way I use TMC2008 drivers but should be the same with others.

Now I'm even more confused and motivated. It can't be much but where should I keep on searching. My problem is that the GTM32 Mini is a normal STM32 based mainboard. There is no reason it shouldn't work so I can't accept that. Would be great if we could discuss on this topic and some feedback is given. I'll keep on posting my results as I think a lot of A30 owners would like to use marlin ...

Hello,

i am running an A30 with the "GTM32 Pro VD" Board with bugfix tree . i got almost all things to working but i need more testing:
-BLtouch is working
-Beeper is working
-x,y,z and extruder axis is working
-SD Card is not working
-Serial Connection is limited because of following hotfix for y-axis
-fans are working but are buged (maybe a hardware problem of my a30)

According the y-Axis i run in the same problem but i could resolve it:

MarlinCore.cpp needs one modification at the end of the setup(). Add a line with:
Serial.end();

I dont think its a good idea to do this here but its working. The point is that my boad is using PA12 for some serial stuff. i dont know why. But this pin is in use for the y-axis

EDIT:

And yes i had the same problem with the extruder. There are couple of things wrong in the pinmapping for my board. the EXTRUDER E0 E1 E2 are party mixed up. And the z_min_pin and z_max_pin was swapped for me too:

here is my mapping for my board GTM32 Pro VD:


#pragma once

#include "env_validate.h"

#ifndef BOARD_INFO_NAME
  #define BOARD_INFO_NAME    "GTM32 Pro VB"
#endif
#define DEFAULT_MACHINE_NAME "STM32F103VET6"

#define BOARD_NO_NATIVE_USB

#define DISABLE_DEBUG

//
// It is required to disable JTAG function because its pins are
// used as GPIO to drive the Y axis stepper.
// DO NOT ENABLE!
//
#define DISABLE_JTAG

//
// If you don't need the SWDIO functionality (any more), you may
// disable SWD here to regain PA13/PA14 pins for other use.
//
#define DISABLE_JTAGSWD

// Ignore temp readings during development.
#define BOGUS_TEMPERATURE_GRACE_PERIOD    2000

// Enable EEPROM Emulation for this board as it doesn't have EEPROM
#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
  #define FLASH_EEPROM_EMULATION
  #define MARLIN_EEPROM_SIZE              0x1000  // 4KB
#endif

//
// Limit Switches
//
#define X_MIN_PIN                           PE5   // ENDSTOPS 15,17
#define X_MAX_PIN                           PE4   // ENDSTOPS 16,18
#define Y_MIN_PIN                           PE3   // ENDSTOPS 9,11
#define Y_MAX_PIN                           PE2   // ENDSTOPS 10,12
#define Z_MIN_PIN                           PE0   // ENDSTOPS 3,5
#define Z_MAX_PIN                           PE1   // ENDSTOPS 4,6                          

//
// Steppers
//
#define X_STEP_PIN                          PC6
#define X_DIR_PIN                           PD13
#define X_ENABLE_PIN                        PA8

#define Y_STEP_PIN                          PA12
#define Y_DIR_PIN                           PA11
#define Y_ENABLE_PIN                        PA15

#define Z_STEP_PIN                          PD6
#define Z_DIR_PIN                           PD3
#define Z_ENABLE_PIN                        PB3

// Extruder stepper pins
// NOTE: Numbering here is made according to EXT connector numbers,
//       the FANx_PWM line numbering in the schematics is reverse.
//       That is, E0_*_PIN are the E2_* lines connected to E2_A1 step
//       stick that drives the EXT0 output on the board.
//
#define Z2_STEP_PIN                         PC14
#define Z2_DIR_PIN                          PC13
#define Z2_ENABLE_PIN                       PC15

// #define E0_STEP_PIN                         PA0
// #define E0_DIR_PIN                          PB6
// #define E0_ENABLE_PIN                       PA1

#define E0_STEP_PIN                         PB2
#define E0_DIR_PIN                          PB11
#define E0_ENABLE_PIN                       PC4

//
// Heaters / Fans
//
#define SERVO0_PIN                          PA0

#define HEATER_0_PIN                        PB0   // EXT0 port
// #define HEATER_1_PIN                        PB5   // EXT1 port
// #define HEATER_2_PIN                        PB4   // EXT2 port
#define HEATER_BED_PIN                      PB1   // CON2X3 hotbed port

//
// These are FAN PWM pins on EXT0..EXT2 connectors.
//
//#define FAN_PIN                           PB9   // EXT0 port
#define FAN1_PIN                            PB8   // EXT1 port
#define FAN2_PIN                            PB7   // EXT2 port

#ifndef E0_AUTO_FAN_PIN
  #define E0_AUTO_FAN_PIN                   PB9   // EXT0 port, used as main extruder fan
#endif

//
// Temperature Sensors
//
#define TEMP_0_PIN                          PC2   // EXT0 port
#define TEMP_1_PIN                          PC1   // EXT1 port
#define TEMP_2_PIN                          PC0   // EXT2 port
#define TEMP_BED_PIN                        PC3   // CON2X3 hotbed port

//
// Misc. Functions
//
#define LED_PWM                             PD12  // External LED, pin 2 on LED labeled connector

//
// LCD / Controller
//
#if HAS_WIRED_LCD

  #if IS_RRD_SC
    //
    // LCD display on J2 FFC40
    // Geeetech's LCD2004A Control Panel is very much like
    // RepRapDiscount Smart Controller, but adds an FFC40 connector
    //
    #define LCD_PINS_RS                     PE6   // CS chip select /SS chip slave select
    #define LCD_PINS_ENABLE                 PE14  // SID (MOSI)
    #define LCD_PINS_D4                     PD8   // SCK (CLK) clock
    #define LCD_PINS_D5                     PD9
    #define LCD_PINS_D6                     PD10
    #define LCD_PINS_D7                     PE15

  #else
    //
    // Serial LCDs can be implemented in ExtUI
    //
    //#define LCD_UART_TX                   PD8
    //#define LCD_UART_RX                   PD9
  #endif

  // Alter timing for graphical display
  #if ENABLED(U8GLIB_ST7920)
    #define BOARD_ST7920_DELAY_1   DELAY_NS( 96)
    #define BOARD_ST7920_DELAY_2   DELAY_NS( 48)
    #define BOARD_ST7920_DELAY_3   DELAY_NS(715)
  #endif

#endif // HAS_WIRED_LCD

#if IS_RRD_SC
  //
  // Geeetech's LCD2004A Control Panel is very much like
  // RepRapDiscount Smart Controller, but adds an FFC40 connector
  // connected with a flat wire to J2 connector on the board.
  //
  #define BTN_EN1                           PE8
  #define BTN_EN2                           PE9
  #define BTN_ENC                           PE13

  // #define GTM32_PRO_VB_USE_LCD_BEEPER
  #define GTM32_PRO_VB_USE_EXT_SDCARD
#endif

//
// Beeper
//
#ifdef GTM32_PRO_VB_USE_LCD_BEEPER
  // This is pin 32 on J2 FFC40 and pin, goes to the beeper
  // on Geeetech's version of RepRapDiscount Smart Controller
  // (e.g. on Rostock 301)
  #define BEEPER_PIN                        PE12
#else
  // This is the beeper on the board itself
  #define BEEPER_PIN                        PB10
#endif

/**
 * The on-board TF_CARD_SOCKET microSD card socket has no SD Detect pin wired.
 *
 * The FFC10 (SD_CARD) connector has the same pins as those routed to the FFC40 (J2)
 * connector, which usually go to the SD Card slot on the Geeetech version of the
 * RepRapDiscount Smart Controller. Both connectors have the card detect signal.
 *
 * The on-board SD card and the external card (on either SD_CARD or J2) are two
 * separate devices and can work simultaneously. Unfortunately, Marlin only supports
 * a single SPI Flash device (as of 2019-07-05) so only one is enabled here.
 */
#if ENABLED(GTM32_PRO_VB_USE_EXT_SDCARD)
  //
  // SD Card on RepRapDiscount Smart Controller (J2) or on SD_CARD connector
  //

// #define SS_PIN PB12 // PC<<<11
// #define SCK_PIN PB13 // PC12 // PC1
// #define MOSI_PIN PB15 // PD2 // PD2
// #define MISO_PIN PB14 // PC8
// #define SD_DETECT_PIN PC7

  #define SD_SS_PIN                         PC11
  #define SD_SCK_PIN                        PC12
  #define SD_MOSI_PIN                       PD2
  #define SD_MISO_PIN                       PC8
  #define SD_DETECT_PIN                     PC7
#else
  //
  // Use the on-board card socket labeled TF_CARD_SOCKET
  //
  #define SD_SS_PIN                         PA4
  #define SD_SCK_PIN                        PA5
  #define SD_MOSI_PIN                       PA7
  #define SD_MISO_PIN                       PA6
  #define SD_DETECT_PIN                     -1    // Card detect is not connected
#endif

#define SDSS                           SD_SS_PIN

//
// ESP WiFi can be soldered to J9 connector which is wired to USART2.
// Must define WIFISUPPORT in Configuration.h for the printer.
//
#define ESP_WIFI_MODULE_COM                    2
#define ESP_WIFI_MODULE_BAUDRATE          115200
#define ESP_WIFI_MODULE_RESET_PIN           -1


@peakpwr
Copy link

peakpwr commented Oct 3, 2021

That sounds very interesting. I will try the hotfix and will check the pin mapping again.
I think we can make this work :)

@krabbs
Copy link

krabbs commented Oct 3, 2021

That sounds very interesting. I will try the hotfix and will check the pin mapping again. I think we can make this work :)

In Addition: i think i have a misstake in my mapping according the names of the FAN (or FAN0)

EDIT:1 I have some wiring problems (loose contact). I think my setup is working from the software side
EDIT:2 Got it working now. The crashes had nothing to do with the software. Last thing missing now is the sdcard

@peakpwr
Copy link

peakpwr commented Oct 4, 2021

Is your connection to octoprint stable?
I think this would be enough as printing would be fully possible at that stage.

@krabbs
Copy link

krabbs commented Oct 4, 2021

Is your connection to octoprint stable? I think this would be enough as printing would be fully possible at that stage.

I could not test very much yet but yes. it looks very very good to me.
i forked marlin into an new branch (if you interested for more informations)
Marlin GTM32ProVD

furthermore i have switched to Marlin 2.0.9.2

@peakpwr
Copy link

peakpwr commented Oct 4, 2021

It works on my GTM32 Mini as well.
Only the fans don't spin ... I need to recheck the pins on that. But Y Axis and extruder are working fine after inverting the directions.
Heating, limit switches work too.

So only fans left if I didn't miss something.
Octoprint is also stable. No problems so far.

@krabbs
Copy link

krabbs commented Oct 4, 2021

It works on my GTM32 Mini as well. Only the fans don't spin ... I need to recheck the pins on that. But Y Axis and extruder are working fine after inverting the directions. Heating, limit switches work too.

So only fans left if I didn't miss something. Octoprint is also stable. No problems so far.

And maybe have a look at the labeling in the mapping. im not sure if its FAN or FAN0. Furthermore and i dont know for what E0_AUTO_FAN PIN ist for.
(i am pretty new to marlin settings)

@peakpwr
Copy link

peakpwr commented Oct 5, 2021

Ok fans are working now (for GTM32 Mini S Mainboard).

What I changed:

  • in Configuration_adv.h :
#define E0_AUTO_FAN_PIN PB5 // Extruder fan that should start running as soon as 50degree are reached
  • pins_GTM32_PRO_VB.h:
#define FAN_PIN       PB4   // EXT0 port, part cooler fan that get's started in gcode M106 S255 after some layers of printing
#define FAN1_PIN     PB5/   // EXT1 port,  Extruder fan that should start running as soon as 50degree are reached

This way I can be sure the heat break fan is always running (above 50degree) and is not dependent on a gcode config and the part blower can be used if needed.

@TheThomasD
Copy link

TheThomasD commented Nov 14, 2021

@krabbs (and sorry for being sligthly offtopic, although the question is about a GTM32 board and Marlin 2.x)

I'm currently working on a GTM32_103_V1 board in my Geeetech A30T to make it work with Marlin. I have a good starting point now (e0-2, x, y, dual-z, endstops, filament sensors, heaters, temp sensors, SD card all running good; display is on my list). I had a similar problem that you had with your Y axis (using pin PA12) but in my case the pin is used for the X axis. Did you overcome the issue that you had to put the "Serial.end()" command in the MarlinCore.cpp#setup() method? If so, how did you manage to do so? Appreciate your help!

@krabbs
Copy link

krabbs commented Nov 15, 2021

Unfortunately, I haven't even made progress and I don't know where to look for the mistake. I am using still this stupid work around :-(

@yoroboticscolombia
Copy link

Hi thpparent,
As you can see in my config file i also use the code for REPRAP_DISCOUNT_SMART_CONTROLLER.
I have the stock LCD/encoder/SD reader from Geeetech that seems to be based on the Discount Smart Controller, only with different ribbon cable.
The SD card seems to work ok with this config. I can start a print from the SD (haven't actually printed anything tho) and get no errors, the printer homes and starts to heat up.
What exactly isn't working? And how are you testing?

Hi,

Thanks for your answer.

I have the feeling that something is wrong in the SD pins definition referenced above. Card inserted / removed is detected, but result is always the same "no media". It fail in the three case : power ON with card, Card inserted and Remotly reading card from repetier.

If you take a look to the Hardware_GTM32_PRO_VB. pdf, the connector seems to connect SPI2 (which could be the SD Interface), in the published as part of Marlin2.0, matched PIN with SD interface doesn't seem to be logic and are not following the same logic that the onboard SD interface PAx.

Coud you confirm that your working configuration is based on the following PIN definition ?

Thank you so much

  • The on-board SD card and the external card (on either SD_CARD or J2) are two
  • separate devices and can work simultaneously. Unfortunately, Marlin only supports
  • a single SPI Flash device (as of 2019-07-05) so only one is enabled here.
    */
    #if ENABLED(GTM32_PRO_VB_USE_EXT_SDCARD)
    //
    // SD Card on RepRapDiscount Smart Controller (J2) or on SD_CARD connector
    //
    #define SS_PIN PC11
    #define SCK_PIN PC12
    #define MOSI_PIN PD2
    #define MISO_PIN PC8
    #define SD_DETECT_PIN PC7
    #else
    //
    // Use the on-board card socket labeled TF_CARD_SOCKET
    //
    #define SS_PIN PA4
    #define SCK_PIN PA5
    #define MOSI_PIN PA7
    #define MISO_PIN PA6
    #define SD_DETECT_PIN -1 // Card detect is not connected
    #endif

My Facebook Account is Radagast Stufly

Thierry

hi, hope youre doing ok,
I was trying with the pins you mentioned, but still did not work the sd, its failing to recognise it,

is there any way you can share the complete folder of marlin to compile, I have rostock 301 with stm32103vet6 gtm32 thanks.

@yoroboticscolombia
Copy link

Hi, guys.
Did you get the sd card socket working, if so, can you please share the complete folder of marlin, please

@Geeetech3D
Copy link
Owner

Geeetech3D commented Mar 10, 2022 via email

@yoroboticscolombia
Copy link

THANKS

Hi, If you mean our source code, please check the link: https://github.com/Geeetech3D/Prusa_I3_3Dprinter Best regards yoroboticscolombia @.> 于2022年3月4日周五 02:22写道:

Hi, guys. Did you get the sd card socket working, if so, can you please share the complete folder of marlin, please — Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJJSAKRZBTECUGZCFIINVW3U6D7O7ANCNFSM4FJFNPJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.
>
-- Tom.yuan Technical Support B&D TEL: 0755-26584110-801 Do you want to find more fun things about 3d print? You can join our official facebook group http://www.facebook.com/groups/315127105604393/

HI, BUT for the rostock 301 with gtm32 board,

@Gonjilome
Copy link

Working Klipper config for E180: printer.cfg.zip

Any chance you could describe how you went about flashing the firmware?

@SonOfSardaar
Copy link

SonOfSardaar commented Jan 27, 2024

Working Klipper config for E180: printer.cfg.zip

@Tapchicoma could you please supply your menuconfig options for building klipper binary? I tried but it is not responding . I would be really helpful if you could provide any other details like , stm32flash parameter or anything that would help flashing the binary to GTM32 Mini S (E180). Thanks

@SonOfSardaar
Copy link

SonOfSardaar commented Feb 4, 2024

Working Klipper config for E180: printer.cfg.zip

Any chance you could describe how you went about flashing the firmware?

I finally got it to work with Klipper on my GTM32_Mini_S . Apply power to board, set the boot0 jumper, plug in the usb to board and connect it to raspberry pi or linux and Follow Klipper documentation to flash it to stm32 board for most parts. For "make menuconfig" choose STM32F103 with "No Bootloader" and Choose UART1 (PA10/PA9) NOT!!! the USB rest of the things are default. You might see a timeout problem when flashing , in that case update your Makefile and introduce some delay in flash comand by sending som commas in the start sequence. Also after flashing if you get "got byte 0x0 instead of ACK, failed" ignore that message, flashing is all good. Make sure you have correct /dev/serial/by-id/**** selected in printer config. Feel free to ask if you need more details.

Most Important things are

  • Apply power to board and put the boot0 jumper
  • Choose UART1 (menuconfig)
  • Choose no bootloader (menuconfig)
  • Choose correct serial device in printer config

NOTE: one of my boards is not responding now, i think bootloadr is gone.

@bsafh
Copy link

bsafh commented Oct 17, 2024

Does Klipper work on the GTM32PRO VD as well?

@SonOfSardaar
Copy link

SonOfSardaar commented Oct 17, 2024 via email

@bsafh
Copy link

bsafh commented Oct 18, 2024

Yes

Ok! Do you have a printer config for Klipper and this board (for an A30 printer)? Is there any description how to flash the printer? (I guess that the dispaöy of the A30 will not work with Klipper, as well as the SDcard?)

@SonOfSardaar
Copy link

SonOfSardaar commented Oct 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to do list Put into to do list
Projects
None yet
Development

No branches or pull requests