Date   

Re: FYSETC S6 V2 compilation errors #S6

Khalid Baheyeldin
 

This error is very clear:

C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Pins.Mega2560Alt.h:88:2: error: #error "Wrong processor for this configuration!"
 
   88 | #error "Wrong processor for this configuration!"
So you may have not saved the Config.h in the directory that you are compiling from, or with the wrong name.


Re: FYSETC S6 V2 compilation errors #S6

fred1984
 

// PINMAP ---------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#PINMAP
//   *** See the matching Pins.xxx.h file for your setup (found by looking in src/pinmaps/Models.h) with detailed information ***
//   *** to be sure it matches your wiring.            *** USE AT YOUR OWN RISK ***                                           ***
 
//      Parameter Name              Value   Default  Notes                                                                      Hint
#define PINMAP                        FYSETC_S6_2 //    OFF, Choose from: MiniPCB, MiniPCB2, MaxPCB, MaxPCB2, STM32Blue,             <-Req'd
                                          //         Ramps14, MaxESP2, MaxESP3.  Check Constants.h for more info.
 
// SERIAL PORTS ---------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#SERIAL
#define SERIAL_A_BAUD_DEFAULT        9600 //   9600, n. Where n=9600,19200,57600,115200 (common baud rates.)                  Infreq
#define SERIAL_B_BAUD_DEFAULT        9600 //   9600, n. See (src/HAL/) for your MCU Serial port # etc.                        Option
#define SERIAL_B_ESP_FLASHING         OFF //    OFF, ON Upload ESP8266 WiFi firmware through SERIAL_B with :ESPFLASH# cmd.    Option
#define SERIAL_C_BAUD_DEFAULT         OFF //    OFF, n, ON for ESP32 Bluetooth.                                               Option
#define SERIAL_C_BLUETOOTH_NAME  "OnStep" // "On..", Bluetooth device name for ESP32.                                         Option
 
// MOUNT TYPE -------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#MOUNT_TYPE
#define MOUNT_TYPE                    GEM //    GEM, GEM for German Equatorial, FORK for Equatorial Fork, or ALTAZM          <-Req'd
                                          //         Dobsonian etc. mounts. GEM Eq mounts perform meridian flips.
 
// USER FEEDBACK -------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#USER_FEEDBACK
#define LED_STATUS                     ON //     ON, Blinks w/sidereal tracking otherwise steady on indicates activity.       Option
#define LED_STATUS2                   OFF //    OFF, ON Blinks 1s interval w/PPS sync, steady for gotos, off if in standby.   Option
#define LED_RETICLE                   OFF //    OFF, n. Where n=0..255 (0..100%) activates feature sets default brightness.   Option
#define BUZZER                        OFF //    OFF, ON, n. Where n=100..6000 (Hz freq.) for piezo speaker. ON for buzzer.    Option
#define BUZZER_STATE_DEFAULT          ON  //    OFF, ON Start with piezo buzzer/speaker enabled.                              Option
 
// TIME AND LOCATION -------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#TLS
#define TIME_LOCATION_SOURCE          GPS //    OFF, DS3231 (I2c,) DS3234 (Spi,) TEENSY (T3.2 internal,) or GPS source.       Option
                                          //         Provides Date/Time, and if available, PPS & Lat/Long also.
 
      #define SERIAL_GPS              Serial3
      #define SERIAL_GPS_BAUD         9600
    
 
// SENSORS -------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#SENSORS
// * = also supports ON_PULLUP or ON_PULLDOWN to activate MCU internal resistors if present.
#define WEATHER                       OFF //    OFF, BME280 (I2C 0x77,) BME280_0x76, BME280_SPI (see pinmap for CS.)          Option
                                          //         Provides temperature, pressure, humidity.
 
#define TELESCOPE_TEMPERATURE         OFF //    OFF, DS1820 for telescope temperature on one wire interface.                  Option
 
#define HOME_SENSE                    OFF //    OFF, ON*. Automatically detect and use home switches. For GEM mode only.      Option
#define HOME_SENSE_STATE_AXIS1       HIGH //   HIGH, State when clockwise of home position, as seen from front. Rev. w/LOW.   Adjust
#define HOME_SENSE_STATE_AXIS2       HIGH //   HIGH, State when clockwise of home position, as seen from above. Rev. w/LOW.   Adjust
                                          //         Signal state reverses when travel moves ccw past the home position.
 
#define LIMIT_SENSE                   OFF //    OFF, ON* limit sense switch close to Gnd stops gotos and/or tracking.         Option
#define LIMIT_SENSE_STATE             LOW //    LOW, For NO (normally open) switches, HIGH for NC (normally closed.)          Adjust
#define PEC_SENSE                     OFF //    OFF, ON*, n, sense digital OR n=0 to 1023 (0 to 3.3V or 5V) analog threshold. Option
#define PEC_SENSE_STATE              HIGH //   HIGH, Senses the PEC signal rising edge or use LOW for falling edge.           Adjust
                                          //         Ignored in ALTAZM mode.
 
#define PPS_SENSE                     ON //    OFF, ON* enables PPS (pulse per second,) senses signal rising edge.           Option
                                          //         Better tracking accuracy especially for Mega2560's w/ceramic resonator.
 
// ST4 INTERFACE ------------------------------------------------------ see https://onstep.groups.io/g/main/wiki/6-Configuration#ST4
// *** It is up to you to verify the interface meets the electrical specifications of any connected device, use at your own risk ***
#define ST4_INTERFACE                 OFF //    OFF, ON, ON_PULLUP enables interface. <= 1X guides unless hand control mode.  Option
                                          //         During goto btn press: aborts slew or continue meridian flip pause home
#define ST4_HAND_CONTROL              OFF //    OFF, ON for hand controller special features and SHC support.                 Option
                                          //         Hold [E]+[W] btns >2s: Guide rate   [E]-  [W]+  [N] trk on/off [S] sync
                                          //         Hold [N]+[S] btns >2s: Usr cat item [E]-  [W]+  [N] goto [S] snd on/off
#define ST4_HAND_CONTROL_FOCUSER      OFF //    OFF, ON alternate to above: Focuser move [E]f1 [W]f2 [N]-     [S]+            Option
 
// GUIDING BEHAVIOR ----------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#GUIDING
#define GUIDE_TIME_LIMIT                0 //      0, No guide time limit. Or n. Where n=1..120 second time limit guard.       Adjust
#define GUIDE_DISABLE_BACKLASH        OFF //    OFF, Disable backlash takeup during guiding at <= 1X                          Option
 
// TRACKING BEHAVIOUR -------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#TRACKING
#define TRACK_AUTOSTART               OFF //    OFF, ON Start with tracking enabled.                                          Option
#define TRACK_REFRACTION_RATE_DEFAULT OFF //    OFF, ON Start w/atmospheric refract. compensation (RA axis/Eq mounts only.)   Option
#define TRACK_BACKLASH_RATE            25 //     25, n. Where n=2..50 (x sidereal rate) during backlash takeup.               Option
                                          //         Too fast motors stall/gears slam or too slow and sluggish in backlash.
 
// SYNCING BEHAVIOUR ---------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#SYNCING
#define SYNC_CURRENT_PIER_SIDE_ONLY    ON //     ON, Disables ability of sync to change pier side, for GEM mounts.            Option
 
// SLEWING BEHAVIOUR ---------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#SLEWING
#define SLEW_RATE_BASE_DESIRED       1 //    1.0, n. Desired slew rate in deg/sec. Adjustable at run-time from            <-Req'd
                                          //         1/2 to 2x this rate, and as MCU performace considerations require.
#define SLEW_RATE_MEMORY              OFF //    OFF, ON Remembers rates set across power cycles.                              Option
#define SLEW_ACCELERATION_DIST        5.0 //    5.0, n, (degrees.) Approx. distance for acceleration (and deceleration.)      Adjust
#define SLEW_RAPID_STOP_DIST          2.5 //    2.0, n, (degrees.) Approx. distance required to stop when a slew              Adjust
                                          //         is aborted or a limit is exceeded.
                                          
#define MFLIP_SKIP_HOME               OFF //    OFF, ON Goto directly to the destination without visiting home position.      Option
#define MFLIP_PAUSE_HOME_MEMORY       OFF //    OFF, ON Remember meridian flip pause at home setting across power cycles.     Option
#define MFLIP_AUTOMATIC_MEMORY        OFF //    OFF, ON Remember automatic meridian flip setting across power cycles.         Option
 
// PARKING BEHAVIOUR ---------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#PARKING
#define STRICT_PARKING                OFF //    OFF, ON Un-parking is only allowed if successfully parked.                    Option
 
// MOTION CONTROL -------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#MOTION
#define STEP_WAVE_FORM             SQUARE // SQUARE, PULSE Step signal wave form faster rates. SQUARE best signal integrity.  Adjust
 
// Stepper driver models (also see ~/OnStep/src/sd_drivers/Models.h for additional infrequently used models and more info.): 
// A4988, DRV8825, LV8729, S109, SSS TMC2209*, TMC2130* **, and TMC5160* ***
// * = add _QUIET (stealthChop tracking) for example "TMC2130_QUIET"
// ** = SSS TMC2130 if you choose to set stepper driver current (in mA) set Vref pot. 2.5V instead of by motor current as usual.
// *** = SSS TMC5160 you must set stepper driver current (in mA) w/ #define AXISn_TMC_IRUN (IHOLD, etc.)
 
// AXIS1 RA/AZM
// see https://onstep.groups.io/g/main/wiki/6-Configuration#AXIS1
#define AXIS1_STEPS_PER_DEGREE     12757.333333333334 //  12800, n. Number of steps per degree:                                          <-Req'd
                                          //         n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0
#define AXIS1_STEPS_PER_WORMROT   33280 //  12800, n. Number of steps per worm rotation (PEC Eq mode only:)                <-Req'd
                                          //         n = (AXIS1_STEPS_PER_DEGREE*360)/reduction_final_stage
 
#define AXIS1_DRIVER_MODEL            TMC2130 //    OFF, (See above.) Stepper driver model.                                      <-Often
#define AXIS1_DRIVER_MICROSTEPS       32 //    OFF, n. Microstep mode when tracking.                                        <-Often
#define AXIS1_DRIVER_MICROSTEPS_GOTO  OFF //    OFF, n. Microstep mode used during gotos.                                     Option
#define AXIS1_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current during standstill. OFF uses IRUN/2.0                    Option
#define AXIS1_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc.    Option
#define AXIS1_DRIVER_IGOTO            OFF //    OFF, n, (mA.) Current during slews. OFF uses same as IRUN.                    Option
#define AXIS1_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.   <-Often
#define AXIS1_DRIVER_STATUS           OFF //    OFF, TMC_SPI, HIGH, or LOW.  Polling for driver status info/fault detection.  Option
 
#define AXIS1_LIMIT_UNDER_POLE        180 //    180, n. Where n=150..180 (degrees.) Max HA hour angle + or - for Eq modes.    Adjust
#define AXIS1_LIMIT_MAXAZM            360 //    360, n. Where n=180..360 (degrees.) Max Azimuth + or - for AltAzm mode only.  Adjust
 
// AXIS2 DEC/ALT
// see https://onstep.groups.io/g/main/wiki/6-Configuration#AXIS2
#define AXIS2_STEPS_PER_DEGREE    12515.555555555555 //  12800, n. Number of steps per degree:                                          <-Req'd
                                          //         n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0
 
#define AXIS2_DRIVER_MODEL            TMC2130 //    OFF, (See above.) Stepper driver model.                                      <-Often
#define AXIS2_DRIVER_MICROSTEPS       32 //    OFF, n. Microstep mode when tracking.                                        <-Often
#define AXIS2_DRIVER_MICROSTEPS_GOTO  OFF //    OFF, n. Microstep mode used during gotos.                                     Option
#define AXIS2_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current during standstill. OFF uses IRUN/2.0                    Option
#define AXIS2_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc.    Option
#define AXIS2_DRIVER_IGOTO            OFF //    OFF, n, (mA.) Current during slews. OFF uses same as IRUN.                    Option
#define AXIS2_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off 10sec after movement stops or 10min after last<=1x guide.  Option
#define AXIS2_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.   <-Often
#define AXIS2_DRIVER_STATUS           OFF //    OFF, TMC_SPI, HIGH, or LOW.  Polling for driver status info/fault detection.  Option
#define AXIS2_TANGENT_ARM             OFF //    OFF, ON +limit range below. Set cntr w/[Reset Home] Return cntr w/[Find Home] Infreq
 
#define AXIS2_LIMIT_MIN               -91 //    -91, n. Where n=-91..0 (degrees.) Minimum allowed declination.                Infreq
#define AXIS2_LIMIT_MAX                91 //     91, n. Where n=0..91 (degrees.) Maximum allowed declination.                 Infreq
 
// AXIS3 ROTATOR
// see https://onstep.groups.io/g/main/wiki/6-Configuration#AXIS3
#define ROTATOR                       OFF //    OFF, ON to enable the rotator (or de-rotator for ALTAZM mounts.)              Option
#define AXIS3_STEPS_PER_DEGREE       64.0 //   64.0, n. Number of steps per degree for rotator/de-rotator.                    Adjust
                                          //         Alt/Az de-rotation: n = (num_circumference_pixels * 2)/360, minimum
#define AXIS3_STEP_RATE_MAX           8.0 //    8.0, n, (millisec.) Minimum ms/step depends on processor.                     Adjust
 
#define AXIS3_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.         Option
#define AXIS3_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS3_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "       Option
#define AXIS3_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "       Option
#define AXIS3_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.                                  Option
#define AXIS3_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option
 
#define AXIS3_LIMIT_MIN              -180 //   -180, n. Where n=-360..0 (degrees.) Minimum allowed rotator angle.             Infreq
#define AXIS3_LIMIT_MAX               180 //    180, n. Where n=0..360 (degrees.) Maximum allowed rotator angle.              Infreq
 
// AXIS4 FOCUSER 1
// see https://onstep.groups.io/g/main/wiki/6-Configuration#AXIS4
#define FOCUSER1                      OFF //    OFF, ON to enable this focuser.                                               Option
#define AXIS4_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per micrometer. Figure this out by testing or other means.      Adjust
#define AXIS4_STEP_RATE_MAX           8.0 //    8.0, n, (millisec.) Min. ms/step depends on processor. In DC mode, PWM freq.  Adjust
 
#define AXIS4_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.         Option
#define AXIS4_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS4_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "       Option
#define AXIS4_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "       Option
#define AXIS4_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.                                  Option
#define AXIS4_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option
#define AXIS4_DRIVER_DC_MODE          OFF //    OFF, DRV8825 for pwm dc motor control on stepper driver outputs.              Option
 
#define AXIS4_LIMIT_MIN_RATE           10 //     10, n. Where n=1..1000 (um/s.) Minimum microns/second. In DC mode, min pwr.  Adjust
#define AXIS4_LIMIT_MIN                 0 //      0, n. Where n=0..500 (millimeters.) Minimum allowed position.               Adjust
#define AXIS4_LIMIT_MAX                50 //     50, n. Where n=0..500 (millimeters.) Maximum allowed position.               Adjust
 
// AXIS5 FOCUSER 2
// see https://onstep.groups.io/g/main/wiki/6-Configuration#AXIS5
#define FOCUSER2                      OFF //    OFF, ON to enable this focuser.                                               Option
#define AXIS5_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per micrometer. Figure this out by testing or other means.      Adjust
#define AXIS5_STEP_RATE_MAX           8.0 //    8.0, n, (millisec.) Min. ms/step depends on processor. In DC mode, PWM freq.  Adjust
 
#define AXIS5_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.         Option
#define AXIS5_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS5_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "       Option
#define AXIS5_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "       Option
#define AXIS5_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.                                  Option
#define AXIS5_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option
#define AXIS5_DRIVER_DC_MODE          OFF //    OFF, DRV8825 for pwm dc motor control on stepper driver outputs.              Option
 
#define AXIS5_LIMIT_MIN_RATE           10 //     10, n. Where n=1..1000 (um/s.) Minimum microns/second. In DC mode, min pwr.  Adjust
#define AXIS5_LIMIT_MIN                 0 //      0, n. Where n=0..500 (millimeters.) Minimum allowed position.               Adjust
#define AXIS5_LIMIT_MAX                50 //     50, n. Where n=0..500 (millimeters.) Maximum allowed position.               Adjust
 
// THAT'S IT FOR USER CONFIGURATION!
 
// -------------------------------------------------------------------------------------------------------------------------
#define FileVersionConfig 3


Re: FYSETC S6 V2 compilation errors #S6

fred1984
 

When generating another configuration "config.h" for onstep 3x version, I will get the following errors:

Arduino: 1.8.15 (Windows 7), Placa:"3D printer boards, FYSETC_S6, STM32CubeProgrammer (DFU), Enabled (generic 'Serial'), CDC (generic 'Serial' supersede U(S)ART), Low/Full Speed, Fastest (-O3), Newlib Nano + Float Printf/Scanf"
 
 
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Models.h:11,
 
                 from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:61:
 
C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Pins.Mega2560Alt.h:88:2: error: #error "Wrong processor for this configuration!"
 
   88 | #error "Wrong processor for this configuration!"
 
      |  ^~~~~
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Models.h:32,
 
                 from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:61:
 
C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Pins.MaxESP.h:66:2: error: #error "Wrong processor for this configuration!"
 
   66 | #error "Wrong processor for this configuration!"
 
      |  ^~~~~
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:62:
 
C:\Users\aki\Desktop\OnStep\OnStep\src\HAL\HAL.h:67:4: error: #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
 
   67 |   #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
 
      |    ^~~~~
 
In file included from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:173,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/stm32_def.h:34,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/clock.h:43,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/wiring_time.h:23,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/wiring.h:38,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/Arduino.h:36,
 
                 from sketch\OnStep.ino.cpp:1:
 
C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h:1094:44: error: operator '*' has no right operand
 
 1094 | #define RTC                 ((RTC_TypeDef *) RTC_BASE)
 
      |                                            ^
 
C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Validate.MaxESP.h:41:5: note: in expansion of macro 'RTC'
 
   41 | #if RTC == DS3231
 
      |     ^~~
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\ValidatePins.h:45,
 
                 from C:\Users\aki\Desktop\OnStep\OnStep\Validate.h:828,
 
                 from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:63:
 
C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Validate.MaxESP.h:47:6: error: #error "Configuration (Config.h): PPS_SENSE enabled but Aux0 is already in use, choose one feature on Aux0"
 
   47 |     #error "Configuration (Config.h): PPS_SENSE enabled but Aux0 is already in use, choose one feature on Aux0"
 
      |      ^~~~~
 
In file included from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:173,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/stm32_def.h:34,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/clock.h:43,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/wiring_time.h:23,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/wiring.h:38,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/Arduino.h:36,
 
                 from sketch\OnStep.ino.cpp:1:
 
C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h:1094:44: error: operator '*' has no right operand
 
 1094 | #define RTC                 ((RTC_TypeDef *) RTC_BASE)
 
      |                                            ^
 
C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\ValidatePins.h:131:6: note: in expansion of macro 'RTC'
 
  131 | #if (RTC == DS3234S || RTC == DS3234M) && !defined(DS3234_CS_PIN)
 
      |      ^~~
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:94:
 
C:\Users\aki\Desktop\OnStep\OnStep\src\lib\TLS.h:16:4: error: #error "Configuration (Config.h): Setting TLS GPS, requires adding a line to identify the serial port '#define SerialGPS Serial6' for example."
 
   16 |   #error "Configuration (Config.h): Setting TLS GPS, requires adding a line to identify the serial port '#define SerialGPS Serial6' for example."
 
      |    ^~~~~
 
exit status 1
 
Erro compilando para a placa 3D printer boards
 
 
 


Re: FYSETC S6 V2 compilation errors #S6

Khalid Baheyeldin
 

You have the wrong pinmap in Config.h.

Go to the Online Configuration Generator, and enter your paramaters to get a new Config.h there.


Re: FYSETC S6 V2 compilation errors #S6

fred1984
 


FYSETC S6 V2 compilation errors #S6

fred1984
 

good morning, I'm using a fysetc s6 v2, two tmc2130 v3.0 (bigtreetech), a gps ATGM3336H, and a WeMoS D1 Mini. as per the photos. I installed the STM32CubeProgrammer. And I configured in ARDUINO:

  • Board -> 3D printer boards
  • Board part number -> FYSETC_S6
  • U(S)ART Support -> Enabled (generic 'Serial')
  • USB Support (if available) -> CDC (generic 'Serial' supercede U(S)ART)
  • USB Speed (if available) -> Low/Full Speed
  • Optimize -> Fastest (-O3)
  • C Runtime Library -> Newlib Nano + Float Printf/Scanf
  • Upload Method -> STM32CubeProgrammer (DFU)


When trying to compile I received the following error:

 #error "Configuration (Config.h): FileVersionConfig (Config.h version) must be 3 for this OnStep."
Arduino: 1.8.15 (Windows 7), Placa:"3D printer boards, FYSETC_S6, STM32CubeProgrammer (DFU), Enabled (generic 'Serial'), CDC (generic 'Serial' supersede U(S)ART), Low/Full Speed, Fastest (-O3), Newlib Nano + Float Printf/Scanf"
 
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Models.h:11,
 
                 from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:61:
 
C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Pins.Mega2560Alt.h:88:2: error: #error "Wrong processor for this configuration!"
 
   88 | #error "Wrong processor for this configuration!"
 
      |  ^~~~~
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Models.h:32,
 
                 from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:61:
 
C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Pins.MaxESP.h:66:2: error: #error "Wrong processor for this configuration!"
 
   66 | #error "Wrong processor for this configuration!"
 
      |  ^~~~~
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:62:
 
C:\Users\aki\Desktop\OnStep\OnStep\src\HAL\HAL.h:67:4: error: #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
 
   67 |   #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
 
      |    ^~~~~
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:63:
 
Validate.h:9:4: error: #error "Configuration (Config.h): FileVersionConfig (Config.h version) must be 3 for this OnStep."
 
    9 |   #error "Configuration (Config.h): FileVersionConfig (Config.h version) must be 3 for this OnStep."
 
      |    ^~~~~
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:63:
 
Validate.h:530:4: error: #error "Configuration (Config.h): Setting SYNC_CURRENT_PIER_SIDE_ONLY must be present!"
 
  530 |   #error "Configuration (Config.h): Setting SYNC_CURRENT_PIER_SIDE_ONLY must be present!"
 
      |    ^~~~~
 
Validate.h:575:4: error: #error "Configuration (Config.h): Setting AXIS1_LIMIT_UNDER_POLE must be present!"
 
  575 |   #error "Configuration (Config.h): Setting AXIS1_LIMIT_UNDER_POLE must be present!"
 
      |    ^~~~~
 
Validate.h:581:4: error: #error "Configuration (Config.h): Setting AXIS1_LIMIT_MAXAZM must be present!"
 
  581 |   #error "Configuration (Config.h): Setting AXIS1_LIMIT_MAXAZM must be present!"
 
      |    ^~~~~
 
In file included from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:173,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/stm32_def.h:34,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/clock.h:43,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/wiring_time.h:23,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/wiring.h:38,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/Arduino.h:36,
 
                 from sketch\OnStep.ino.cpp:1:
 
C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h:1094:44: error: operator '*' has no right operand
 
 1094 | #define RTC                 ((RTC_TypeDef *) RTC_BASE)
 
      |                                            ^
 
C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Validate.MaxESP.h:41:5: note: in expansion of macro 'RTC'
 
   41 | #if RTC == DS3231
 
      |     ^~~
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\ValidatePins.h:45,
 
                 from C:\Users\aki\Desktop\OnStep\OnStep\Validate.h:828,
 
                 from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:63:
 
C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\Validate.MaxESP.h:47:6: error: #error "Configuration (Config.h): PPS_SENSE enabled but Aux0 is already in use, choose one feature on Aux0"
 
   47 |     #error "Configuration (Config.h): PPS_SENSE enabled but Aux0 is already in use, choose one feature on Aux0"
 
      |      ^~~~~
 
In file included from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:173,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/stm32_def.h:34,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/clock.h:43,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/wiring_time.h:23,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/wiring.h:38,
 
                 from C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/Arduino.h:36,
 
                 from sketch\OnStep.ino.cpp:1:
 
C:\Users\aki\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h:1094:44: error: operator '*' has no right operand
 
 1094 | #define RTC                 ((RTC_TypeDef *) RTC_BASE)
 
      |                                            ^
 
C:\Users\aki\Desktop\OnStep\OnStep\src\pinmaps\ValidatePins.h:131:6: note: in expansion of macro 'RTC'
 
  131 | #if (RTC == DS3234S || RTC == DS3234M) && !defined(DS3234_CS_PIN)
 
      |      ^~~
 
In file included from C:\Users\aki\Desktop\OnStep\OnStep\OnStep.ino:94:
 
C:\Users\aki\Desktop\OnStep\OnStep\src\lib\TLS.h:16:4: error: #error "Configuration (Config.h): Setting TLS GPS, requires adding a line to identify the serial port '#define SerialGPS Serial6' for example."
 
   16 |   #error "Configuration (Config.h): Setting TLS GPS, requires adding a line to identify the serial port '#define SerialGPS Serial6' for example."
 
      |    ^~~~~
 
exit status 1
 
#error "Configuration (Config.h): FileVersionConfig (Config.h version) must be 3 for this OnStep."

 
 
 
 


Re: MaxPCB2 + GPS +BME280, is it possible?

Marco Lorenzi
 

On Sat, Oct 9, 2021 at 10:16 AM, Dave Schwartz wrote:
I don't know why you'd consider that as incorrect
I just quoted what the linked page in the wiki said :"on the MaxPCB version 2.0, the PPS signal was incorrectly routed to the 32KHZ pin of the DS3231 where it should have gone to the SQW pin". But you are right, that error is fixed in the schematic.
Thanks for the comment on the PPS, good to know!
Regards
Marco


Re: New G11 OnStep Conversion

Alexander Varakin
 

Lloyd,
Great conversion!
You have a huge 1:3 reduction, DEC stalling should not be happening. 
Most likely you are trying to run the motor too fast. Reduce the speed of it and stalling should stop.
Once it is stable, you can reduce the current.


Re: motorizing my mount.

Glenn Sammes
 

I have been using an old Meade DSI imager fitted with a 25mm x 140mm FL (ex finder) scope and PHD2 on a home built Dobby mount.

The configuration settings in this guide got me going properly.

STM32 blue pill / TMC2130 for the OnStep side.

Agreed it is well worth consideration.

Cheers,

Glenn.

 

From: main@onstep.groups.io <main@onstep.groups.io> On Behalf Of Alain K
Sent: Saturday, 9 October 2021 4:17 PM
To: main@onstep.groups.io
Subject: Re: [onstep] motorizing my mount.

 

Hello guys,

You must seethis artiche on guiding Alt-Az with PHD2

Guiding the Panther Alt-Az mount with PHD2 - Telescope Mounts Explained


Base Slew Rate and :R1-9# values

Allen Irvan
 

On the configuration spreadsheet there is the “Base Slew Rate Desired” value. The RPM of the motor is calculated from this value in the spreadsheet.  In the OnStep control syntax, do any of the “R” values for slew speed correspond to this “base rate”?  


thanks,
Allen


Re: S6 + Dual Focuser success

Khalid Baheyeldin
 

On Sat, Oct 9, 2021 at 01:32 PM, Jamie Flinn wrote:
If I install the DFU-UTIL do I also need stm32flash seperately?
No, different boards use different firmware flashing programs.

For the S6, only dfu-util will work.
For the Blue Pill, only stm32flash will work.


Re: S6 + Dual Focuser success

Jamie Flinn
 

Look at your bld script
# Installed using: sudo apt install stm32flash
STM32FLASH="stm32flash"

If I install the DFU-UTIL do I also need stm32flash seperately?


Re: MaxPCB2 + GPS +BME280, is it possible?

Dave Schwartz
 

From the Schematic and board layout, SQW (which is the 1Hz output from the DS3231) is connected to Pin 28 of the Teensy which is defined as the PPS pin in the pinmap so I don't know why you'd consider that as incorrect. That should be good enough for all intents and purposes as the PPS from the GPS. Of course, you could modify your DS3231 so as not to connect SQW to the socket and instead run PPS from your GPS to it. Seems like a lot of work for no foreseeable benefit - you'll never be able to tell the difference.

On 2021-10-09 12:34 p.m., Marco Lorenzi wrote:
On Sat, Oct 9, 2021 at 08:36 AM, Dave Schwartz wrote:

And the MaxPCB2 design on EasyEDA
(https://easyeda.com/hdutton/maxpcb2) says that the second serial
port (Serial4), to which you would connect the GPS, is on the 5
pin header J13 which is under the DS3231.

Thanks Dave. I got a bit confused as on the wiki <https://onstep.groups.io/g/main/wiki/26601> it is reported "adding a GPS to OnStep requires specifying an otherwise un-allocated hardware serial port for GPS use..for a Teensy3.5/3.6 you could use Serial6 for instance and add the following line to Config.h: "#define SerialGPS Serial6", and serial 6 was also mentioned <https://onstep.groups.io/g/main/topic/81777915#32058> by the fella which used a Neo-6M in the past.. So in fact I can just use the Serial 4 for the GPS, thanks for clarifying :)
But what about the PPS signal? Should I re-route it from the DS3231 RTC (which seems also to be incorrectly connected <https://onstep.groups.io/g/main/wiki/8960>) to the GPS module instead?
Thanks for your suggestion :)
Marco
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Re: MaxPCB2 + GPS +BME280, is it possible?

Marco Lorenzi
 

On Sat, Oct 9, 2021 at 08:36 AM, Dave Schwartz wrote:
And the MaxPCB2 design on EasyEDA (https://easyeda.com/hdutton/maxpcb2) says that the second serial port (Serial4), to which you would connect the GPS, is on the 5 pin header J13 which is under the DS3231.
Thanks Dave. I got a bit confused as on the wiki it is reported "adding a GPS to OnStep requires specifying an otherwise un-allocated hardware serial port for GPS use..for a Teensy3.5/3.6 you could use Serial6 for instance and add the following line to Config.h: "#define SerialGPS Serial6", and serial 6 was also mentioned by the fella which used a Neo-6M in the past.. So in fact I can just use the Serial 4 for the GPS, thanks for clarifying :) 
But what about the PPS signal? Should I re-route it from the DS3231 RTC (which seems also to be incorrectly connected) to the GPS module instead?
Thanks for your suggestion :)
Marco


Re: motorizing my mount.

Khalid Baheyeldin
 

Alain,

That is a great find.

There was a user on AstroBin that used a 16" Goto Dob to
get great results.

But as I said, it is a lot of short exposures, and probably solves
field rotation in Deep Sky Tracker.

https://www.astrobin.com/users/ellu/

The closer to the celestial pole, the better the results.


Re: MaxPCB2 + GPS +BME280, is it possible?

Dave Schwartz
 

Just from reading up on it, the BME280 (an I2C device) would be supported by connecting to the unused 4-pin end of the DS3231. Those 4 pins just bring the I2C bus from the 6-pin end of the DS3231 and that's the standard way of doing that on the STM32 Blue Pill PCB.

And the MaxPCB2 design on EasyEDA (https://easyeda.com/hdutton/maxpcb2) says that the second serial port (Serial4), to which you would connect the GPS, is on the 5 pin header J13 which is under the DS3231.

On 2021-10-09 10:37 a.m., Marco Lorenzi wrote:
Hi all, I am wondering if the MaxPCB can supports at the same time a GPS module (I have a U-Blox NEO 7M which works well on a FYSETC) and a BME280 (I2C).
I saw in the past somebody got it working with a GPS module (here <https://onstep.groups.io/g/main/message/32058>) and the BME280 support is declared in the wiki, but how to connect both at the same time? Any suggestion?
Thanks
Marco
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


MaxPCB2 + GPS +BME280, is it possible?

Marco Lorenzi
 

Hi all, I am wondering if the MaxPCB can supports at the same time a GPS module (I have a U-Blox NEO 7M which works well on a FYSETC) and a BME280 (I2C).
I saw in the past somebody got it working with a GPS module (here) and the BME280 support is declared in the wiki, but how to connect both at the same time? Any suggestion?
Thanks
Marco


Re: motorizing my mount.

Alain K
 

Hello guys,

You must seethis artiche on guiding Alt-Az with PHD2

Guiding the Panther Alt-Az mount with PHD2 - Telescope Mounts Explained


Re: S6 + Dual Focuser success

Jesse Lichtenberg
 

Congrats! I've got my two focusers and rotator working well on the S6 now as well thanks to Howard's fix. I'm controlling them with the app as well as NINA for the time being. 

And I definitely agree with Khalid on using the dfu-util program under Linux. Much, much more simple that way.


Re: New G11 OnStep Conversion

Jesse Lichtenberg
 

This looks great! How has it been working out for you with astrophotography? I'm using a converted Exos-2 at the moment but I'm going to run into payload issues soon. I really like the idea of finding a G11 like Howard, you, and a few others have done.

3821 - 3840 of 41085