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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
Hi Robert,
I'm trying to compile the last firmware for TMC2209 and got the following error (see attached log file) :
Do you know what to do to correct this ?
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
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
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
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
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
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.
Yes, I changed it to the last relese 2.2.1. I'm attaching my preferences capture + the log file of the compilation.
make sure Show Verbose Output during Compile is checked
log file
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.
Setting the compiler warning to All, here is the log
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
Many thanks Robert, this one compiled perfectly !