Menu

error uploading Focuserv254_L298N firmware

Pascal
2017-04-23
2017-04-23
  • Pascal

    Pascal - 2017-04-23

    Hello,
    first thank you to brownrb for its fantastic job. I would like to try MyFocuserPro 2 but I have some trouble uploading the firmware for the L298 driver, all the libraries seems to be correctly installed byt I get an error befor the upload.

    Arduino : 1.6.4 (Windows 7), Carte : "Arduino Uno"

    In file included from Focuserv254_L298N_M.ino:107:0:
    HalfStepper.h:156: error: 'SteppingMode' is not a class or namespace
    HalfStepper(dword, byte, byte, SteppingMode = SteppingMode::HALF);
    ^
    HalfStepper.h:157: error: 'SteppingMode' is not a class or namespace
    HalfStepper(dword, byte, byte, byte, byte, SteppingMode = SteppingMode::HALF,
    ^
    HalfStepper.h:158: error: 'PhasingMode' is not a class or namespace
    PhasingMode = PhasingMode::DUAL, SequenceType = SequenceType::ALTERNATING);
    ^
    HalfStepper.h:158: error: 'SequenceType' is not a class or namespace
    PhasingMode = PhasingMode::DUAL, SequenceType = SequenceType::ALTERNATING);
    ^
    HalfStepper.h:221: error: 'SteppingMode' is not a class or namespace
    SteppingMode _SteppingMode = SteppingMode::HALF;
    ^
    HalfStepper.h:222: error: 'PhasingMode' is not a class or namespace
    PhasingMode _PhasingMode = PhasingMode::DUAL;
    ^
    HalfStepper.h:223: error: 'SequenceType' is not a class or namespace
    SequenceType _SequenceType = SequenceType::ALTERNATING;
    ^
    HalfStepper.h:226: error: 'Direction' is not a class or namespace
    Direction _Direction = Direction::FORWARD;
    ^
    Focuserv254_L298N_M:128: error: call to 'HalfStepper::HalfStepper(dword, byte, byte, byte, byte, HalfStepperOptions::SteppingMode, HalfStepperOptions::PhasingMode, HalfStepperOptions::SequenceType)' uses the default argument for parameter 6, which is not yet defined
    Focuserv254_L298N_M:128: error: call to 'HalfStepper::HalfStepper(dword, byte, byte, byte, byte, HalfStepperOptions::SteppingMode, HalfStepperOptions::PhasingMode, HalfStepperOptions::SequenceType)' uses the default argument for parameter 7, which is not yet defined
    Focuserv254_L298N_M:128: error: call to 'HalfStepper::HalfStepper(dword, byte, byte, byte, byte, HalfStepperOptions::SteppingMode, HalfStepperOptions::PhasingMode, HalfStepperOptions::SequenceType)' uses the default argument for parameter 8, which is not yet defined
    Focuserv254_L298N_M.ino: In function 'void setstepmode(int)':
    Focuserv254_L298N_M:351: error: 'SteppingMode' is not a class or namespace
    Focuserv254_L298N_M:355: error: 'SteppingMode' is not a class or namespace
    Focuserv254_L298N_M:359: error: 'SteppingMode' is not a class or namespace
    'SteppingMode' is not a class or namespace

    Ce rapport contiendrait plus d'informations si l'option
    "Montrer les informations de sortie pendant la compilation"
    était activée dans Fichier > Préférences.

    May be something with the stepper librairi.
    A bit of help would be welcome.
    Thanks.
    Pascal

     
  • brownrb

    brownrb - 2017-04-24

    Hi Pascal
    You do not need to install any stepper library - the default one that comes with Arduino IDE is fine.
    If you have any stepper library installed in the Documents\Arduino\libraries folder I suggest removing it.

    Please remove your current Aruino version and download and install 1.6.8

    Have you placed all the files in the same folder (eepromanything.h, Focuserv254_L298N_M.ino, HalfStepper.h, HalfStepper.cpp)

    Have you enabled File-Preferences-Show Verbose Output during compilation

    You didnt download the half stepper library and try to install that? If so remove it. You only need the two files on this site and they must be in the same folder as the Focuserv254_L298N.ino file.

    Did you set the Tools-Board to Arduino Nano?

    Attached is the focuser v255 l298n_M folder in a zip fle.

    You do not need to load any libraries for this. Please do not edit any file. Try this with 1.6.8 and let me know what happens.

    I would temporarily move the documents/Arduino/libraries contents to a temp location. Then remove 1.6.4 then install 1.6.8, then try to comple the attached file and send me the output list if it does not compile.

    Also consider joining the yahoo group as there are people there who can assist, as well as all the latest versions

    Regards
    Robert

     
  • Pascal

    Pascal - 2017-04-25

    Hi Robert,
    thank you very much, it works with your new file, I corrected the others versions with the temperature probe and lcd and all are ok with the l298.
    Regards.
    Pascal

     
  • brownrb

    brownrb - 2017-04-25

    Hi Pascal
    Good to hear all is now ok. The yahoo group does have all the firmware files for v255.

    Regards

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.