Closed illigtr closed 6 months ago
Since you didn't provide any errors themselves, there is no way for us to know what's happening. One thing that recently came to light is that the lowest RA_SLEW_MICROSTEPPING and DEC_SLEW_MICROSTEPPING need to be 32 (you have them at 16). Until you provide us actual errors to examine (the errors explain what the problem is), we can't help you.
I inadvertantly forgot the errors from the build. Mea culpa!
In file included from .pio\libdeps\mksgenlv21\InterruptStepper\include/Stepper.h:25:0,
from src\StepperConfiguration.hpp:13,
from src\Mount.hpp:15,
from src\HallSensorHoming.hpp:5,
from src\Mount.cpp:5:
.pio\libdeps\mksgenlv21\InterruptStepper\include/AccelerationRamp.h: In instantiation of 'class AccelerationRamp<256, 16000000, 314, 314>':
.pio\libdeps\mksgenlv21\InterruptStepper\include/Stepper.h:306:65: required from 'static uint32_t Stepper<INTERRUPT, DRIVER, RAMP>::distanceToGo() [with INTERRUPT = IntervalInterrupt<(Timer)4>; DRIVER = Driver<Pin<60>, Pin<61> >; RAMP = AccelerationRamp<256, 16000000, 314, 314>; uint32_t = long unsigned int]'
src\InterruptAccelStepper.h:89:37: required from 'uint32_t InterruptAccelStepper<STEPPER>::distanceToGo() [with STEPPER = Stepper<IntervalInterrupt<(Timer)4>, Driver<Pin<60>, Pin<61> >, AccelerationRamp<256, 16000000, 314, 314> >; uint32_t = long unsigned int]'
src\Mount.cpp:1444:66: required from here
.pio\libdeps\mksgenlv21\InterruptStepper\include/AccelerationRamp.h:91:5: error: static assertion failed: Amount of steps per stair has to be at most 128
static_assert(STEPS_PER_STAIR <= 128, "Amount of steps per stair has to be at most 128");
^~~~~~~~~~~~~
.pio\libdeps\mksgenlv21\InterruptStepper\include/AccelerationRamp.h:92:5: error: static assertion failed: Amount of steps per stair has to be power of 2
static_assert(is_pow2(STEPS_PER_STAIR), "Amount of steps per stair has to be power of 2");
^~~~~~~~~~~~~
Compiling C:\Users\tony_\AppData\Local\Temp\tmphluryn50_patched_WInterrupts.c.o
*** [.pio\build\mksgenlv21\src\Mount.cpp.o] Error 1
================================================================================= [FAILED] Took 3.89 seconds =================================================================================
Environment Status Duration
------------- -------- ------------
mksgenlv21 FAILED 00:00:03.885
I changed the minium slew microstepping as suggested to 32 and the program compiled flawlessly! Thank you. It should be noted that those settings for the RA and DEC motors comes from the OTA Firmware Configurator v2.18. Perhaps this program should be updated to set the default values to 32 instead of 16...
For some reason, I have NEVER been able to compile using the NEW_STEPPER_LIB definition. Always get a pack of errors. Why won't this work?
My Configuration:
Here is my Configuration_local.hpp
Here is my modified pins_MKS_GEN_L_V21.h
Beyond that, the only other mod is to adjust the values for the up/down/left/right/enter of the LCD keypad. Hijacked Serial2 for debug output and moved LCD pins to new pins. All good.