Issues with Sammy in 3.3b2
-
@dc42 OK so i think I am getting somewhere, the Master branch of the Duet Expansion is still 3.2 while the dev branch is the 3.3b2, but now when I attempt to compile it I keep getting an error about missing CoreIO.h which I cant seem to find in any of the source files.
Thanks.
-
The CoreIO.h file is in the CoreN2G project.
I have just verified that the SAMMYC21 Debug configuration builds OK, using the [edited] 3.3-dev branch of all projects.
-
@dc42 Im not sure if I am just doing something wrong but I keep coming up with build errors now saying something like this.
In file included from C:\Users\Tony\git\Duet3Expansion\src/Tasks.h:12,
from C:\Users\Tony\git\Duet3Expansion\src/Movement/DDA.h:12,
from ../src/Movement/Kinematics/CartesianKinematics.cpp:9:
C:\Users\Tony\git\RRFLibraries\src/RTOSIface/RTOSIface.h:23:11: fatal error: FreeRTOS.h: No such file or directory
23 | # include "FreeRTOS.h"
| ^~~~~~~~~~~~
compilation terminated.
make: *** [src/Movement/Kinematics/CartesianKinematics.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from C:\Users\Tony\git\Duet3Expansion\src/AdcAveragingFilter.h:12,
from C:\Users\Tony\git\Duet3Expansion\src/Platform.h:12,
from ../src/Movement/Kinematics/Kinematics.cpp:11:
C:\Users\Tony\git\RRFLibraries\src/RTOSIface/RTOSIface.h:23:11: fatal error: FreeRTOS.h: No such file or directory
23 | # include "FreeRTOS.h"
| ^~~~~~~~~~~~
compilation terminated.
make: *** [src/Movement/Kinematics/Kinematics.o] Error 1
In file included from C:\Users\Tony\git\Duet3Expansion\src/Tasks.h:12,
from C:\Users\Tony\git\Duet3Expansion\src/Movement/DDA.h:12,
from C:\Users\Tony\git\Duet3Expansion\src/Movement/Move.h:17,
from ../src/Movement/Kinematics/LinearDeltaKinematics.cpp:10:
C:\Users\Tony\git\RRFLibraries\src/RTOSIface/RTOSIface.h:23:11: fatal error: FreeRTOS.h: No such file or directory
23 | # include "FreeRTOS.h"
| ^~~~~~~~~~~~
compilation terminated.
make: *** [src/Movement/Kinematics/LinearDeltaKinematics.o] Error 1
In file included from C:\Users\Tony\git\Duet3Expansion\src/Tasks.h:12,
from ../src/Movement/DDA.h:12,
from ../src/Movement/DDA.cpp:8:
C:\Users\Tony\git\RRFLibraries\src/RTOSIface/RTOSIface.h:23:11: fatal error: FreeRTOS.h: No such file or directory
23 | # include "FreeRTOS.h"
| ^~~~~~~~~~~~
compilation terminated.
make: *** [src/Movement/DDA.o] Error 1
'Finished building: ../src/Movement/StepperDrivers/DriverMode.cpp'
' '
'Finished building: ../src/Movement/StepperDrivers/TMC51xx.cpp'
'Finished building: ../src/Movement/StepperDrivers/TMC22xx.cpp'
' '
' '
'Finished building: ../src/Movement/Kinematics/ZLeadscrewKinematics.cpp'
' '
"make -j8 all" terminated with exit code 2. Build might be incomplete.12:41:04 Build Failed. 9 errors, 0 warnings. (took 4s.179ms)
-
@dc42 Just realized I did not have FreeRTOS included.... it compiled OK now, will test and see if new binary works.
Thanks,
-
@dc42 OKay, so now the sammys show they are running 3.3b2 but I still do not have any movement at all....
-
@r3d, I haven't tested the external driver support on SAMMYC21 since I made major changes to the external driver code for the EXP1XD. So that code may be broken on the SAMMYC21.
The changes were to add the code enabled by macro definition USE_TC_FOR_STEP. When that is set to 0 (as it is for the SAMMYC21 build), the code should be essentially the same as it was previously.
-
@dc42 I do see that it is set to 0 in BoardDef.h, would you suggest to run a different firmware other than 3.3b2? Perhaps 3.2.2?
Thanks,
-
@dc42 So I rolled back to 3.2.2 and tested, again I had no movement. I wanted to see if I could see the step pulse being generated so I probed PA11 while commanding a long slow move to give me time to get a clear probe picture, and this was the only discernable signal I saw. I am no electrical engineer but this looks woefully inadequate as it looks like it hardly sinks 500mv, unless I am reading the scope wrong... any suggestions?...also the second pic was after the move had finished....looks just like the first.
Thanks.
-
The CAN movement message has changed between RRF 3.2.x and 3.3. This means that RRF 3.2.x cannot cause movement on a SAMMYC21 running firmware 3.3.
-
@dc42 Sorry if I wasn't clear, I rolled back firmware on both the MB6HC and the SammyC21s. Both are now running 3.2.2
Thanks,
-
@r3d, this is now fixed in the 3.3beta source code. I have put a binary at https://www.dropbox.com/sh/oxyezimiusnosxa/AAAgjLNKuTL8oEcXgihZqojXa?dl=0.