failing to compile - extruder z-offset error

I'm trying to upload the latest firmware to my Azteeg X3 pro, downloaded through the 0.92.4 config page. 
I'm getting an error about Z_PROBE_Z_OFFSET was not declared with a pointer to line 710 of the eeprom.cpp file.
Any help would really be appreciated. The Repetier firmware has been working quite well, but the z-offset didn't seem to be working quite as expected prompting me to try updating (eg. the step values didn't directly seem to correspond/match the expected height/offset changes).

The Arduino IDE was updated on my machine since I last updated the firmware and I am re-using my configuration.h file from my previous working build (using whatever was current back in early August).

Error message follows:

Arduino: 1.6.5 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Eeprom.cpp: In static member function 'static void EEPROM::initalizeUncached()':
Eeprom.cpp:456: error: 'Z_PROBE_Z_OFFSET' was not declared in this scope
     HAL::eprSetFloat(EPR_Z_PROBE_Z_OFFSET,Z_PROBE_Z_OFFSET);
                                           ^
Eeprom.cpp: In static member function 'static void EEPROM::readDataFromEEPROM(bool)':
Eeprom.cpp:711: error: 'Z_PROBE_Z_OFFSET' was not declared in this scope
             HAL::eprSetFloat(EPR_Z_PROBE_Z_OFFSET,Z_PROBE_Z_OFFSET);
                                                   ^
Exception in thread "AWT-EventQueue-0" java.lang.Error: Error: could not match input

at org.fife.ui.rsyntaxtextarea.modes.CPlusPlusTokenMaker.zzScanError(CPlusPlusTokenMaker.java:2077)

at org.fife.ui.rsyntaxtextarea.modes.CPlusPlusTokenMaker.yylex(CPlusPlusTokenMaker.java:2311)

at org.fife.ui.rsyntaxtextarea.modes.CPlusPlusTokenMaker.getTokenList(CPlusPlusTokenMaker.java:1901)

at org.fife.ui.rsyntaxtextarea.RSyntaxDocument.getTokenListForLine(RSyntaxDocument.java:416)

at org.fife.ui.rsyntaxtextarea.SyntaxView.paint(SyntaxView.java:719)

at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1434)

at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:737)

at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:881)

at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:860)

at org.fife.ui.rtextarea.RTextAreaBase.paintComponent(RTextAreaBase.java:719)

at org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.paintComponent(RSyntaxTextArea.java:1993)

at javax.swing.JComponent.paint(JComponent.java:1056)

at javax.swing.JComponent.paintChildren(JComponent.java:889)

at javax.swing.JComponent.paint(JComponent.java:1065)

at javax.swing.JViewport.paint(JViewport.java:728)

at javax.swing.JComponent.paintChildren(JComponent.java:889)

at javax.swing.JComponent.paint(JComponent.java:1065)

at javax.swing.JComponent.paintToOffscreen(JComponent.java:5219)

at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1572)

at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1495)

at javax.swing.RepaintManager.paint(RepaintManager.java:1265)

at javax.swing.JComponent._paintImmediately(JComponent.java:5167)

at javax.swing.JComponent.paintImmediately(JComponent.java:4978)

at javax.swing.RepaintManager$4.run(RepaintManager.java:824)

at javax.swing.RepaintManager$4.run(RepaintManager.java:807)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)

at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:807)

at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:782)

at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:731)

at javax.swing.RepaintManager.access$1300(RepaintManager.java:64)

at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1720)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)

at java.awt.EventQueue.access$500(EventQueue.java:97)

at java.awt.EventQueue$3.run(EventQueue.java:709)

at java.awt.EventQueue$3.run(EventQueue.java:703)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

'Z_PROBE_Z_OFFSET' was not declared in this scope

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

Comments

  • Z_PROBE_Z_OFFSET is a new setting, so you need to add it to your existing one. See original config for explaination.

    If you made it with config tool uploading and downloading will also fix it.
  • I love the option to upload my old config and download an updated version, but your wizard appears to read from the commented configuration string at the bottom of the Configuration.h file rather than the actual settings within the file. I've made a lot of changes over the months since generating the original file.

    I didn't find a description for the following variables in the config wizard, but adding them in fixed the compile error. 
    #define Z_PROBE_Z_OFFSET 0
    #define Z_PROBE_Z_OFFSET_MODE 0

    Thanks.
  • Yes, it only understands the json string at the end. So you should always make changes in config tool. These are in features->

    Bed Coating.

Sign In or Register to comment.