Firmware upgrade on Tronxy X3 with Melzi 2.0 board

Hello.

I wanted to update the firmware on my Tronxy X3 (Melzi 2.0 board with Atmega1284p) to 1.0.4 repetier version (the current one is the one that came with the printer v0.91).
I need this update in order to have auto leveling, but when I try to upload I get the errors below, can anyone help me with this ? (Configuration.h file here https://pastebin.com/MTCFRtjg)

fastio.h:35:7: error: 'DIOUI_DISPLAY_RS_PIN_WPORT' was not declared in this scope
DIO##IO##_WPORT &= ~MASK(DIO##IO##_PIN); \
^
sketch\fastio.h:66:22: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
sketch\ui.cpp:531:5: note: in expansion of macro 'WRITE'
WRITE(UI_DISPLAY_RS_PIN, LOW);
^
fastio.h:35:32: error: 'DIOUI_DISPLAY_RS_PIN_PIN' was not declared in this scope
DIO##IO##_WPORT &= ~MASK(DIO##IO##_PIN); \
^
sketch\fastio.h:18:25: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
sketch\fastio.h:66:22: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
sketch\ui.cpp:531:5: note: in expansion of macro 'WRITE'
WRITE(UI_DISPLAY_RS_PIN, LOW);
^
exit status 1
'DIOUI_BUTTON_OK_DDR' was not declared in this scope

Comments

  • UI_DISPLAY_RS_PIN is set to a non existent pin. My guess is that the display has no pin assigment for that board and uses pins for RAMPS instead - and the mega2560 has more pins than the 1284. Search in displaylist.h the controller you selected and force your pins there.

    One other problem you might get is memory. 1.0.4 is quite big, so fitting it into 128kb is a bit demanding. So you might need to disable some features/languages so it fits at all.
  • edited December 2020
    Thank you for your answer. 
    I removed all languages to try and stay in the 128kb limit.
    Regarding the errors I tried to put  "FEATURE_CONTROLLER 1" from initial value of 8 and define in uiconfig.h the pins as here https://forum.repetier.com/discussion/1105/melzi-v2-0-with-lcd2004-and-5-keys (verified with a multimeter that the pins are corect E - 35, RS - 34, D4 - 11, D5 -12, D6 - 19, D7 - 20) and I get a lot of error regarding the display pins. Can anyone provide a configuration.h file (or entire repetier firmware solution) that works for a Tronxy X3 original, unmodified, so I have a reference to go from in modifing it? (I tried this one but it did not work https://github.com/nslythe/marlin-tronxy-x3
Sign In or Register to comment.