Firmware v1.1.8 not compatible with GT2560A board

Post Reply
e415ldc
Posts: 14
Joined: Sat Dec 24, 2016 4:51 am

Firmware v1.1.8 not compatible with GT2560A board

Post by e415ldc » Thu Jul 11, 2019 5:50 am

I recently attempted to load the new Marlin 1.1.8 code referenced in this forum on my GT2560A board. This is the none PLUS board.

I am using a 3D-Touch bed leveling sensor configured as per the instructions I was provided two and a half years ago. The printer works fine with the old 1.0.x code, but i want to use some of the newer features of the 1.1.x code.

I found the PINs files are "sort of hard coded" to the new PLUS version of the board.

If you have the BOARD_NAME defined as the GT2560A+ the pins-gt2560a+ file is included at compile time. that file looks like this:

Code: Select all

/**
 * Geeetech GT2560 Revision A+ board pin assignments
 */

#define BOARD_NAME "GT2560 Rev.A+"

#include "pins_GT2560_REV_A.h"

#if ENABLED(BLTOUCH)
  #define SERVO0_PIN  11
#else
  #define SERVO0_PIN  32
#endif
__________________________________________________________________________________________________________________

If you have the BOARD_NAME defined as the GT2560A there is no reference for a BL-Touch in the pins_GT2560A file. It looks like this:

Code: Select all

/**
 * Geeetech GT2560 Revision A board pin assignments, based on the work of
 * George Robles (https://georges3dprinters.com) and
 * Richard Smith <galorin@gmail.com>
 */

#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
#endif

//#ifndef BOARD_NAME
  #define BOARD_NAME "GT2560 Rev.A"
//#endif
#define DEFAULT_MACHINE_NAME "Prusa i3 Pro B"

//
// Limit Switches
//
#define X_MIN_PIN          22
#define X_MAX_PIN          24
#define Y_MIN_PIN          26
#define Y_MAX_PIN          28
#define Z_MIN_PIN          30
#define Z_MAX_PIN          32

//
// Steppers
//
#define X_STEP_PIN         25
#define X_DIR_PIN          23
#define X_ENABLE_PIN       27

#define Y_STEP_PIN         31
#define Y_DIR_PIN          33
#define Y_ENABLE_PIN       29

#define Z_STEP_PIN         37
#define Z_DIR_PIN          39
#define Z_ENABLE_PIN       35

#define E0_STEP_PIN        43
#define E0_DIR_PIN         45
#define E0_ENABLE_PIN      41

#define E1_STEP_PIN        49
#define E1_DIR_PIN         47
#define E1_ENABLE_PIN      48

//
// Temperature Sensors
//
#define TEMP_0_PIN          8   // Analog Input
#define TEMP_1_PIN          9   // Analog Input
#define TEMP_BED_PIN       10   // Analog Input

//
// Heaters / Fans
//
#define HEATER_0_PIN        2
#define HEATER_1_PIN        3
#define HEATER_BED_PIN      4
#define FAN_PIN             7

//
// Misc. Functions
//
#define SDPOWER            -1
#define SDSS               53
#define LED_PIN            13
#define PS_ON_PIN          12
#define SUICIDE_PIN        54  // Must be enabled at startup to keep power flowing
#define KILL_PIN           -1

#if ENABLED(ULTRA_LCD)

  #define BEEPER_PIN       18

  #if ENABLED(NEWPANEL)

    #if ENABLED(MKS_MINI_12864)
      #define DOGLCD_A0     5
      #define DOGLCD_CS    21
      #define BTN_EN1      40
      #define BTN_EN2      42
    #else
      #define LCD_PINS_RS  20
      #define LCD_PINS_ENABLE 17
      #define LCD_PINS_D4  16
      #define LCD_PINS_D5  21
      #define LCD_PINS_D6   5
      #define LCD_PINS_D7   6
      #define BTN_EN1      42
      #define BTN_EN2      40
    #endif

    #define BTN_ENC        19
    #define SD_DETECT_PIN  38

  #else // !NEWPANEL

    #define SHIFT_CLK      38
    #define SHIFT_LD       42
    #define SHIFT_OUT      40
    #define SHIFT_EN       17

    #define LCD_PINS_RS    16
    #define LCD_PINS_ENABLE 5
    #define LCD_PINS_D4     6
    #define LCD_PINS_D5    21
    #define LCD_PINS_D6    20
    #define LCD_PINS_D7    19

    #define SD_DETECT_PIN  -1

  #endif // !NEWPANEL

#endif // ULTRA_LCD

I have a work around that corrects the lack of BL-Touch pin assignments for a GT2560A. I would not try to use this modified code for a GT2560A+ board however.

My work around:

Code: Select all

//
// Limit Switches
//
#define X_MIN_PIN          22
#define X_MAX_PIN          24
#define Y_MIN_PIN          26
#define Y_MAX_PIN          28
#define Z_MIN_PIN          30
//#define Z_MAX_PIN          32

#if ENABLED(BLTOUCH)
     #define Z_MAX_PIN -1
     #define SERVO0_PIN 32
#else
     #define Z_MAX_PIN 32
     #define SERVO0_PIN 13
#endif

//
// Steppers
/
___________________________________________________________________________________________________________________________

With these changes the auto homing and bed leveling from the control panel appear to work fine.

User avatar
William
Site Admin
Posts: 5111
Joined: Tue Jun 07, 2016 9:38 am

Re: Firmware v1.1.8 not compatible with GT2560A board

Post by William » Thu Jul 11, 2019 10:21 am

Thanks for your share. :D
-Keep your mind and try to test it. :)
-Everything will be fun!-Support all Getech printer.
-You can ask me the questions and I will kindly reply.
-Respect others is the best way you can get help!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests