Arduino IDE compilation error

Hi All....
I have one error during compilation of V092:
motion.cpp:32:2: error: #error STEP_DOUBLER_FREQUENCY should be in range 10000-16000.
I'm leaving the default value for all setup in configuration tools.
Any idea?
TNK
  MArco

Comments

  • I have the same problem...
  • Here is the code causing it:

    #ifndef STEP_DOUBLER_FREQUENCY
    #error Please add new parameter STEP_DOUBLER_FREQUENCY to your configuration.
    #if STEP_DOUBLER_FREQUENCY<10000 || STEP_DOUBLER_FREQUENCY>20000
    #if CPU_ARCH==ARCH_AVR
    #error STEP_DOUBLER_FREQUENCY should be in range 10000-16000.

    as you see you get the error if you are < 10000 or > 20000. Please check what you have in your configuration.h for STEP_DOUBLER_FREQUENCY. It should be something like 12000 not 12.000 and not 12,000.
  • Do you have someone please functional version for delta printer with auto bed leveling, which I can compile without errors
  • Default 0.92 with switched printer type to delta compiles.There was a compile error recently for autoleveling that has been fixed.
  • I checked the value of STEP_DOUBLER_FREQUENC in configuration.h is equal 12 as defaut but I still have the error during compilation..
  • [RESOLVED] I change the STEP_DOUBLER_FREQUENC=12000
  • Hi there,

    I also have some issues to compile the Firmware V0.92 in the Arduino IDE V1.5.8.

    At the Moment I have 3 different Configurations.h at my pc.

    The first one was made with the Configuration Tool and is the only one that compiles without an error. Because this Configuration doesn't matches my Printer I uploaded it in the Configuration Tool and made a few changes. With This new Configurations.h I get These errors:

    Commands.cpp:53:20: error: #if with no expression
     #if ECHO_ON_EXECUTE
                        ^
    Commands.cpp:122:20: error: #if with no expression
     #if ECHO_ON_EXECUTE
                        ^
    In file included from Repetier.h:463:0,
                     from Commands.cpp:22:
    motion.h:200:27: error: 'DELTASEGMENTS_PER_PRINTLINE' was not declared in this scope
         DeltaSegment segments[DELTASEGMENTS_PER_PRINTLINE];
                               ^
    motion.h: In static member function 'static void PrintLine::removeCurrentLineForbidInterrupt()':
    motion.h:643:24: error: 'PRINTLINE_CACHE_SIZE' was not declared in this scope
             if(linesPos >= PRINTLINE_CACHE_SIZE) linesPos=0;
                            ^
    motion.h: In static member function 'static void PrintLine::pushLine()':
    motion.h:656:29: error: 'PRINTLINE_CACHE_SIZE' was not declared in this scope
             if(linesWritePos >= PRINTLINE_CACHE_SIZE) linesWritePos = 0;
                                 ^
    In file included from Repetier.h:463:0,
                     from Commands.cpp:22:
    motion.h: In static member function 'static void PrintLine::previousPlannerIndex(uint8_t&)':
    motion.h:684:24: error: 'PRINTLINE_CACHE_SIZE' was not declared in this scope
             p = (p ? p-1 : PRINTLINE_CACHE_SIZE-1);
                            ^
    motion.h: In static member function 'static void PrintLine::nextPlannerIndex(uint8_t&)':
    motion.h:688:19: error: 'PRINTLINE_CACHE_SIZE' was not declared in this scope
             p = (p == PRINTLINE_CACHE_SIZE - 1 ? 0 : p + 1);

    So I decided to make it without the Configuration Tool and downloaded the everything from Github. I have made my changes and tried to upload it, but then I get these errors:

    Eeprom.cpp: In static member function 'static void EEPROM::initalizeUncached()':
    Eeprom.cpp:448:41: error: 'AXISCOMP_TANXY' was not declared in this scope
         HAL::eprSetFloat(EPR_AXISCOMP_TANXY,AXISCOMP_TANXY);
                                             ^
    Eeprom.cpp:449:41: error: 'AXISCOMP_TANYZ' was not declared in this scope
         HAL::eprSetFloat(EPR_AXISCOMP_TANYZ,AXISCOMP_TANYZ);
                                             ^
    Eeprom.cpp:450:41: error: 'AXISCOMP_TANXZ' was not declared in this scope
         HAL::eprSetFloat(EPR_AXISCOMP_TANXZ,AXISCOMP_TANXZ);
                                             ^
    Eeprom.cpp: In static member function 'static void EEPROM::readDataFromEEPROM()':
    Eeprom.cpp:656:49: error: 'AXISCOMP_TANXY' was not declared in this scope
                 HAL::eprSetFloat(EPR_AXISCOMP_TANXY,AXISCOMP_TANXY);
                                                     ^
    Eeprom.cpp:657:49: error: 'AXISCOMP_TANYZ' was not declared in this scope
                 HAL::eprSetFloat(EPR_AXISCOMP_TANYZ,AXISCOMP_TANYZ);
                                                     ^
    Eeprom.cpp:658:49: error: 'AXISCOMP_TANXZ' was not declared in this scope
                 HAL::eprSetFloat(EPR_AXISCOMP_TANXZ,AXISCOMP_TANXZ)

    I hope someone can help me, and sorry for this huge post.


    Chris

  • Looks like you created the config with 0.91 online config tool. All these parameters were changed/added in 0.92. So try uploading to 0.92 online tool and download again from there.
  • Tried again and it works, although I was sure that I had already 0.92 selected last time. But what the hell.

    However, with the Github version seems to be something wrong. Because even with the unaltered work-branch comes the 'AXISCOMP_..' -Error, at least in the due version.

    Well thank you first and have a nice day

  • Thanks for the hint of the due version. Had in deed forgotten to copy new config parameter to that config.
Sign In or Register to comment.