Welcome! Log In Create A New Profile

Advanced

PULSE XL FIRMWARE ERROR

Posted by williamlynn 
PULSE XL FIRMWARE ERROR
September 30, 2022 09:29AM
I am trying to configure the MATTERHACKERS PULSE XL firmware located at the following site:

[github.com]

The source code does not compile and I have found most of the bugs except one. It will not compile when using the MINI 12864 or RepRapLCD panel. It will compile with the VICKY2 panel.
The error code I get is:
Marlin\src\lcd\dogm\ultralcd_DOGM.h:211:23: error: 'DOGLCD_CS' was not declared in this scope
Marlin\src\lcd\dogm\ultralcd_DOGM.h:211:34: error: 'DOGLCD_A0' was not declared in this scope

I have tried all the fixes I could find googling but no luck

Help appreciated

Thanks
Bill
Re: PULSE XL FIRMWARE ERROR
September 30, 2022 09:53AM
This depends on the boards pin.h file... which depend on what motherboard you selected

#define BoardPlatform 3 // 1 = Einsy RAMBo, 2 = Azteeg X5 GT 3 = SKR Turbo

What number did you set?
Re: PULSE XL FIRMWARE ERROR
September 30, 2022 10:09AM
After some guessing Azteeg X5 GT gives the errors you report

RepRapLCD == REPRAP_DISCOUNT_SMART_CONTROLLER
Mini 1864 == FYSETC_MINI_12864_2_1

Which make perfect sense as you cannot plug in either of theses LCD's directly into a Azteeg X5 GT as it has non standard plugs (ie it does not have the standard 2 * 10 pin connectors)



You would have to make custom cables then add the pin you used to the config files.

Edited 1 time(s). Last edit at 09/30/2022 10:27AM by Dust.
Re: PULSE XL FIRMWARE ERROR
September 30, 2022 12:22PM
Thanks for input
The board in the PULSE XL is a EINSY_RAMBO and the LCD is a FYSETC_MINI_12864_2_1
In Configeration.h I have selected the EINSY_RAMBO and the FYSETC_MINI_12864_2_1 as follows:

// Choose the name from boards.h that matches your setup
#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_EINSY_RAMBO
#endif
Configuration.h LINES 26-29
#define MachineType "E"
#define ExtruderType 4 // 1 = EZR, 2 = Bondtech QR 1.75mm, 3 = Bondtech QR 3mm, 4 = Bondtech BMG
#define HotEndType 5 // 1 = E3D Lite6, 2 = E3Dv6 , 3 = E3D Volcano, 4 = Mosquito, 5 = Mosquito Magnum
#define LCDType 4 // 1 = None, 2 = RepRapLCD, 3 = Viki2, 4 = Mini 1864

Configuration.h lines1916-1921
#elif LCDType == 4
#define FYSETC_MINI_12864_2_1
#define BABYSTEPPING
#define REVERSE_ENCODER_DIRECTION

#endif

Configuration.h lines 2142-2149
// FYSETC variant of the MINI12864 graphic controller with SD support
// [wiki.fysetc.com]
//
//#define FYSETC_MINI_12864_X_X // Type C/D/E/F. No tunable RGB Backlight by default
//#define FYSETC_MINI_12864_1_2 // Type C/D/E/F. Simple RGB Backlight (always on)
//#define FYSETC_MINI_12864_2_0 // Type A/B. Discreet RGB Backlight
#define FYSETC_MINI_12864_2_1 // Type A/B. Neopixel RGB Backlight
//#define FYSETC_GENERIC_12864_1_1 // Larger display with basic ON/OFF backlight.

I seems like the error code is looking for a pin defination for the CS and AO but I cannot find it anywhere.
The VICKY2 has a place where these definations are located. Shouls I be doing the ssame thing for the MINI??

Bill
Re: PULSE XL FIRMWARE ERROR
September 30, 2022 09:55PM
update Marlin/src/pins/rambo/pins_EINSY_RAMBO.h with this

Replace everything form Heaters / Fans section onwards

//
// Heaters / Fans
//
#define HEATER_0_PIN                           3
#define HEATER_BED_PIN                         4

#ifndef FAN_PIN
  #define FAN_PIN                              -1
#endif

#ifndef FAN1_PIN
  #define FAN1_PIN                             6
#endif


/**
 *             ------                           ------
 *     84 PH2 | 1  2 | PH6  9          50 MISO | 1  2 | SCK  52
 *     61 PF7 | 3  4 | PD5 82          72  PJ2 | 3  4 | SDSS 77
 *     59 PF5 | 5  6   PG4 70          14  TX3 | 5  6   MOSI 51
 *     85 PH7 | 7  8 | PG3 71          15  RX3 | 7  8 | RESET
 *        GND | 9 10 | 5V                  GND | 9 10 | PE3   5
 *             ------                           ------
 *              EXP1                             EXP2
 */
#define EXP1_01_PIN              84
#define EXP1_02_PIN               9
#define EXP1_03_PIN              61
#define EXP1_04_PIN              82
#define EXP1_05_PIN              59
#define EXP1_06_PIN              70
#define EXP1_07_PIN              85
#define EXP1_08_PIN              71

#define EXP2_01_PIN              50
#define EXP2_02_PIN              52
#define EXP2_03_PIN              72
#define EXP2_04_PIN              77
#define EXP2_05_PIN              14
#define EXP2_06_PIN              51
#define EXP2_07_PIN              15
#define EXP2_08_PIN              -1

//
// Misc. Functions
//
#define SDSS                                  EXP2_04_PIN // PB0_SD-SS
#define LED_PIN                               13
#define CASE_LIGHT_PIN                        EXP1_02_PIN

// LCD / Controller
//
#define BTN_EN1                         EXP2_05_PIN  // TX3
#define BTN_EN2                         EXP2_03_PIN  // PJ2
#define BTN_ENC                         EXP1_02_PIN  //
#define SD_DETECT_PIN                   EXP2_07_PIN  // RX3


#if defined(VIKI2) || defined(miniVIKI)
  #define BEEPER_PIN EXP1_01_PIN   // PH2
  #define DOGLCD_A0  EXP1_06_PIN   // PG4
  #define DOGLCD_CS  EXP1_08_PIN   // PG3
  //#define LCD_SCREEN_ROT_180
#endif // Viki2

#ifdef TEMP_STAT_LEDS
      #define STAT_LED_RED_PIN      EXP1_03_PIN  // PF7
      #define STAT_LED_BLUE_PIN     EXP1_05_PIN  // PF5
#endif

#if defined(REPRAP_DISCOUNT_SMART_CONTROLLER)
  #define LCD_PINS_RS                     EXP1_04_PIN
  #define LCD_PINS_ENABLE                 EXP1_03_PIN
  #define LCD_PINS_D4                     EXP1_05_PIN
  #define LCD_PINS_D5                     EXP1_06_PIN
  #define LCD_PINS_D6                     EXP1_07_PIN
  #define LCD_PINS_D7                     EXP1_08_PIN
  #define BEEPER_PIN                      EXP1_01_PIN
#endif

#if defined (FYSETC_MINI_12864_2_1)
  #define NEOPIXEL_PIN         EXP1_06_PIN
  #define BEEPER_PIN           EXP1_01_PIN

  #define DOGLCD_A0            EXP1_04_PIN
  #define DOGLCD_CS            EXP1_03_PIN

  //#define FORCE_SOFT_SPI                  // Use this if default of hardware SPI causes display problems
                                            //   results in LCD soft SPI mode 3, SD soft SPI mode 0

  #define LCD_RESET_PIN        EXP1_05_PIN  // Must be high or open for LCD to operate normally.
#endif

Edited 1 time(s). Last edit at 09/30/2022 09:58PM by Dust.
Re: PULSE XL FIRMWARE ERROR
October 01, 2022 08:14AM
That worked.

Thank you, you saved me a lot of work and I don't think I would ever come up with that solution.

Bill
Re: PULSE XL FIRMWARE ERROR
October 13, 2022 01:12PM
The code compiles and builds fine but the screen is blank when I download the firmware to PULSE printer.
I have checked everything I can think of with no success.
The only thing I see that is suspicious is that your code used EXP_05_PIN for LCD_RESET_PIN #define LCD_RESET_PIN EXP1_05_PIN
and STAT_LED_BLUE_PIN #define STAT_LED_BLUE_PIN EXP1_05_PIN // PF5


EXP1_03_PIN is also used in two places, #define DOGLCD_CS EXP1_03_PIN, #define STAT_LED_RED_PIN EXP1_03_PIN // PF7

any help appreciated.

Bill
Re: PULSE XL FIRMWARE ERROR
October 13, 2022 08:08PM
make sure you don't have #define TEMP_STAT_LEDS enabled anywhere.

Edited 1 time(s). Last edit at 10/13/2022 08:09PM by Dust.
Re: PULSE XL FIRMWARE ERROR
October 13, 2022 08:47PM
#define TEMP_STAT_LEDS are NOT enables anywhere
Re: PULSE XL FIRMWARE ERROR
October 13, 2022 08:54PM
Then there is no pin conflicts
Re: PULSE XL FIRMWARE ERROR
October 13, 2022 09:15PM
This LCD uses neopixels for back light

Ensure you have enabled

#define NEOPIXEL_LED
#if ENABLED(NEOPIXEL_LED)
  #define NEOPIXEL_TYPE          NEO_RGB // NEO_GRBW, NEO_RGBW, NEO_GRB, NEO_RBG, etc.
  //#define NEOPIXEL_PIN                4 // LED driving pin
  #define NEOPIXEL_PIXELS              3 // Number of LEDs in the strip. (Longest strip when NEOPIXEL2_SEPARATE is disabled.)
  #define NEOPIXEL_IS_SEQUENTIAL          // Sequential display for temperature change - LED by LED. Disable to change all LEDs at once.
  #define NEOPIXEL_BRIGHTNESS         127 // Initial brightness (0-255)


and I prefer #define NEOPIXEL_STARTUP_TEST
so the neopixels turn Red, then Green, then blue on startup

Make sure you have NEOPIXEL_PIN disabled in Configuration as this is set in your boards pin .h file.

Edited 1 time(s). Last edit at 10/13/2022 11:09PM by Dust.
Re: PULSE XL FIRMWARE ERROR
October 14, 2022 11:51AM
That fixed it

Thanks again

Bill
Sorry, only registered users may post in this forum.

Click here to login