Menu

Error compiling TMC2209SG_328

Franck M
2023-10-06
2023-10-08
  • Franck M

    Franck M - 2023-10-06

    Hi Robert,
    I'm trying to compile the last firmware for TMC2209 and got the following error (see attached log file) :

    myBoards.h:104:3: error: 'TMC2209Stepper' does not name a type; did you mean 'TMC2209STEP'?
       TMC2209Stepper* mystepper;
    

    Do you know what to do to correct this ?

     
    • brownrb

      brownrb - 2023-10-07

      Hi Franck
      In summary,
      Arduino 1.8.19
      Nano 328P
      myFP2F_TMC2209SG_328.ino

      Your offending line is in myBoards.h Line
      TMC2209Stepper* mystepper;

      Now I just tried this with the above and I get
      Sketch uses 20358 bytes (66%) of program storage space. Maximum is 30720 bytes.
      Global variables use 503 bytes (24%) of dynamic memory,
      ResolveLibrary(TMCStepper.h)
      -> candidates: (TMCStepper@0.7.3)

      So, a course of action could be
      -Check what version of the TMCStepper library you are using

      I suspect it is not the same as 0.7.3 that I am using, there might have been a change to that recently? I have not kept up with 3rd party Library changes for some time now -

      I have attached the TMCStepper Library that I am using. Please
      delete you current tmc library and replace it with this one. If it compiles fine then I will have to look into this further.

      regards
      Robert

       
  • brownrb

    brownrb - 2023-10-07

    The link to the library for TMC2209 and TMC2225 is
    https://github.com/teemuatlut/TMCStepper

    I may have put the wrong link in the document and other myFP2 files

     
  • Franck M

    Franck M - 2023-10-07

    Hi Robert,
    What I have done:
    - Deleted my existing libraries folder
    - Create a new libraries folder with content of "myFocuserPro2libraries" from 328 firmware archive
    - Added TimerOne and TMCStepper libraires to that folder
    - Re-run the vérification (from Arduino IDE 2.2.1) and get the same error

    Regards
    Franck

     
  • brownrb

    brownrb - 2023-10-07

    Added TimerOne and TMCStepper libraires to that folder

    Sorry no, that is not where those go
    In Arduino IDE, File, Preferences.
    It will show you the folder where those must go
    The folder is shown under Skecthbook Location
    Put the TimeOne and TMC libs there

    Regards
    Robert

     
  • Franck M

    Franck M - 2023-10-07

    Oh, sorry Robert, I was not clear enought:
    - The Sketchbook location is : Documents\Arduino
    - The firmware files are locoated in: Documents\Arduino\myFP2F_TMC2209SG_328
    - The library files are located in: Documents\Arduino\libraries
    The compilation is able to find TimeOne librarie but keep failing with 'TMC2209Stepper' does not name a type;

    Regards
    Franck

     
  • brownrb

    brownrb - 2023-10-07

    Did you change IDE from 1.8.19? I think that was in the first post?

    I think the issue you have is a libray issue,
    Attached is my File Preferences for Arduino IDE.

    Is there another TMClibrary on your system?
    When you compile there is a long list of messages in the Output Window of the IDE.
    Please select ALL the text and post it back please. It should list all the libraries used.

     
  • Franck M

    Franck M - 2023-10-07

    Yes, I changed it to the last relese 2.2.1. I'm attaching my preferences capture + the log file of the compilation.

     
    • brownrb

      brownrb - 2023-10-07

      make sure Show Verbose Output during Compile is checked

       
  • Franck M

    Franck M - 2023-10-07

    log file

     
  • brownrb

    brownrb - 2023-10-07

    Something is not right

    When I compile I get this (attached)
    You can see its a lot more than what u are getting.
    Set the Arduino IDE Compiler Warnings to Default

    The detail output is what we need here. Sorry its not going as fast as it should.

     
  • Franck M

    Franck M - 2023-10-07

    Setting the compiler warning to All, here is the log

     
  • brownrb

    brownrb - 2023-10-08

    Hi Frank

    I have been looking at this for a few hours now,
    I am sending you this updated myFP2 file. Please use this newer file.
    Please use Arduino IDE 2.2.1 to compile the file.

     

    Last edit: brownrb 2023-10-08
  • Franck M

    Franck M - 2023-10-08

    Many thanks Robert, this one compiled perfectly !

     

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.