Issues Compiling Firmware [ui.h:1318: error: 'DIOUI_BUTTON_OK_DDR' was not declared in this scope]

Hi There,

I'm currently trying to update my firmware on a 'Tronxy' branded printer.

I've created the configuration using the generator based on a previous config file but I'm getting some errors when I'm trying to compile. I initially thought that it was due to using the newest version of Arduino IDE so I downgraded to 1.0.6.

My config file is in this pastebin link (I didn't want to make this post huge): http://pastebin.com/DWPUceCy ;

The errors I'm getting are:

In file included from Repetier.h:546,
                 from ui.cpp:20:
ui.h: In function 'void uiInitKeys()':
ui.h:1318: error: 'DIOUI_BUTTON_OK_DDR' was not declared in this scope
ui.h:1318: error: 'DIOUI_BUTTON_OK_PIN' was not declared in this scope
ui.h:1318: error: 'DIOUI_BUTTON_OK_WPORT' was not declared in this scope
ui.h:1318: error: 'DIOUI_BUTTON_OK_PIN' was not declared in this scope
ui.h:1318: error: 'DIOUI_BUTTON_OK_WPORT' was not declared in this scope
ui.h:1318: error: 'DIOUI_BUTTON_OK_PIN' was not declared in this scope
..etc

I've found that as soon as I put my configuration.h file into the firmware downloaded from Github it fails.

Does anyone have any ideas? I've run out of idea :(


Comments


  • My config file is in this pastebin link (I didn't want to make this post huge): http://pastebin.com/DWPUceCy ;


    My Mistake, the correct pastebin url is: http://pastebin.com/DWPUceCy    (no ; at the end... Not sure what happened there.)
  • The problem is taht you are using UI_BUTTON_OK where it should have been a pin number for your displays ok button.

    I guess the error is in ui.h for display 8 and your board or there is no section for your board and that display at all.
    In this case there are no pin definitions for pi displays for non pi boards. Sou you have to add your pin combination yourself there.
  • edited November 2016
    Hi There,

    Thank you so much for that. I was able to try and find what was going on and where.

    I've made some great progress, I'm still fairly new to custom 3D printing (have been coding with Arduino for years though).


    I've been able to cut down the errors quite dramatically but now I'm completely stumped over the following error.


    In file included from Repetier.h:546, from ui.cpp:20: ui.h: In function 'void uiInitKeys()': 
    ui.h:1322: error: 'DIO42_DDR' was not declared in this scope 
    ui.h:1322: error: 'DIO42_PIN' was not declared in this scope 
    ui.h:1322: error: 'DIO42_WPORT' was not declared in this scope 
    ui.h:1322: error: 'DIO42_PIN' was not declared in this scope 
    ui.h:1322: error: 'DIO42_WPORT' was not declared in this scope 
    ui.h:1322: error: 'DIO42_PIN' was not declared in this scope 
    ui.h: In function 'void uiCheckKeys(uint16_t&)': 
    ui.h:1329: error: 'DIO42_RPORT' was not declared in this scope 
    ui.h:1329: error: 'DIO42_PIN' was not declared in this scope

    Not sure if it helps or not, but I've found that I'm only getting this error if I change the board from Arduino Mega 2560 to Sanguino ATMEGA1284. If I leave it on Arduino Mega 2560 there is no error at all.

    Heres my current config: http://pastebin.com/apPtJPDS

    Any help would be awesome.
  • Forget that.. hehe. I just found it. :)

    I had to set Feature Controller to 24 (for zonestar) and not 8 or 16 (which the delear had set)
Sign In or Register to comment.