#wmosd1 #wemos #cnc #wemos #cnc #wmosd1


cronjerikus@...
 

Hi,
I am totally new to this forum.
Maybe I misunderstand the CNC3 shield configuration option, but I cant get the latest OnStep code to compile. (Both Onstep-mater and Onstep-4.24)
I have a CNC Shield V3, that I intend to use with a Wemos(LOLIN D1 R2) ESP8266 board.
As a test run, without connecting anything, I tried to compile the firmware using the CNC option in the Config.h file. The Arduino IDE is configured correctly and I have run through the various hello world and blinky excersises, so the board is OK and the environment is alive.
With the OnStep code I get the following errors:

Using core 'esp8266' from platform in folder: /home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2
Detecting libraries used...
/home/rikus/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/include -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/lwip2/include -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_455520/core -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_WEMOS_D1R1 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1R1\"" -DFLASHMODE_DIO -DESP8266 -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266 -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/variants/d1 /tmp/arduino_build_455520/sketch/OnStep.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Error while detecting libraries included by /tmp/arduino_build_455520/sketch/OnStep.ino.cpp
Generating function prototypes...
/home/rikus/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/include -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/lwip2/include -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_455520/core -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_WEMOS_D1R1 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1R1\"" -DFLASHMODE_DIO -DESP8266 -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266 -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/variants/d1 /tmp/arduino_build_455520/sketch/OnStep.ino.cpp -o /tmp/arduino_build_455520/preproc/ctags_target_for_gcc_minus_e.cpp -DARDUINO_LIB_DISCOVERY_PHASE
OnStep:49:2: error: #error "This master branch OnStep is for developers only, if you want the latest stable OnStep use the beta branch!"
   49 | #error "This master branch OnStep is for developers only, if you want the latest stable OnStep use the beta branch!"
      |  ^~~~~
OnStep:50:2: error: #error "If you must use this master... remove these #error lines but be aware this version will likely be discarded at some point and is not supported."
   50 | #error "If you must use this master... remove these #error lines but be aware this version will likely be discarded at some point and is not supported."
      |  ^~~~~
In file included from /tmp/arduino_build_455520/sketch/src/pinmaps/Models.h:50,
                 from /home/rikus/AthenaCloud/RatLabs/Telescope/FW/OnStep/OnStep.ino:70:
/tmp/arduino_build_455520/sketch/src/pinmaps/Pins.CNC3.h:87:2: error: #error "Wrong processor for this configuration!"
   87 | #error "Wrong processor for this configuration!"
      |  ^~~~~
In file included from /home/rikus/AthenaCloud/RatLabs/Telescope/FW/OnStep/OnStep.ino:71:
/tmp/arduino_build_455520/sketch/src/HAL/HAL.h:93:4: error: #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
   93 |   #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
      |    ^~~~~
exit status 1
#error "This master branch OnStep is for developers only, if you want the latest stable OnStep use the beta branch!"

I have had a look at the HAL files, but it does not seem to include options for the D1 R2, although there are references to the ESP8266 on the forums.
What am I missing?

Thanks

Rikus


Chad Gray
 

When i had problems compiling for Wemos/CNC I found in the WIki under the firmware section detailed instructions.
https://onstep.groups.io/g/main/wiki/3915

So under the IDE Preferences make sure you have these URLs to additional board managers

Then the specific versions are important also:  1.0.4 for ESP32 and 2.4.2 of ESP8266 if you are going to build the Smart Hand Controller
image.png

On Sun, Aug 29, 2021 at 10:31 AM <cronjerikus@...> wrote:

Hi,
I am totally new to this forum.
Maybe I misunderstand the CNC3 shield configuration option, but I cant get the latest OnStep code to compile. (Both Onstep-mater and Onstep-4.24)
I have a CNC Shield V3, that I intend to use with a Wemos(LOLIN D1 R2) ESP8266 board.
As a test run, without connecting anything, I tried to compile the firmware using the CNC option in the Config.h file. The Arduino IDE is configured correctly and I have run through the various hello world and blinky excersises, so the board is OK and the environment is alive.
With the OnStep code I get the following errors:

Using core 'esp8266' from platform in folder: /home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2
Detecting libraries used...
/home/rikus/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/include -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/lwip2/include -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_455520/core -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_WEMOS_D1R1 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1R1\"" -DFLASHMODE_DIO -DESP8266 -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266 -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/variants/d1 /tmp/arduino_build_455520/sketch/OnStep.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Error while detecting libraries included by /tmp/arduino_build_455520/sketch/OnStep.ino.cpp
Generating function prototypes...
/home/rikus/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/include -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/lwip2/include -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_455520/core -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_WEMOS_D1R1 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1R1\"" -DFLASHMODE_DIO -DESP8266 -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266 -I/home/rikus/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/variants/d1 /tmp/arduino_build_455520/sketch/OnStep.ino.cpp -o /tmp/arduino_build_455520/preproc/ctags_target_for_gcc_minus_e.cpp -DARDUINO_LIB_DISCOVERY_PHASE
OnStep:49:2: error: #error "This master branch OnStep is for developers only, if you want the latest stable OnStep use the beta branch!"
   49 | #error "This master branch OnStep is for developers only, if you want the latest stable OnStep use the beta branch!"
      |  ^~~~~
OnStep:50:2: error: #error "If you must use this master... remove these #error lines but be aware this version will likely be discarded at some point and is not supported."
   50 | #error "If you must use this master... remove these #error lines but be aware this version will likely be discarded at some point and is not supported."
      |  ^~~~~
In file included from /tmp/arduino_build_455520/sketch/src/pinmaps/Models.h:50,
                 from /home/rikus/AthenaCloud/RatLabs/Telescope/FW/OnStep/OnStep.ino:70:
/tmp/arduino_build_455520/sketch/src/pinmaps/Pins.CNC3.h:87:2: error: #error "Wrong processor for this configuration!"
   87 | #error "Wrong processor for this configuration!"
      |  ^~~~~
In file included from /home/rikus/AthenaCloud/RatLabs/Telescope/FW/OnStep/OnStep.ino:71:
/tmp/arduino_build_455520/sketch/src/HAL/HAL.h:93:4: error: #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
   93 |   #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
      |    ^~~~~
exit status 1
#error "This master branch OnStep is for developers only, if you want the latest stable OnStep use the beta branch!"

I have had a look at the HAL files, but it does not seem to include options for the D1 R2, although there are references to the ESP8266 on the forums.
What am I missing?

Thanks

Rikus


--
I am working on a CGE Pro conversion kit to OnStep
https://chadgray.info/cge-pro-bolt-on-stepper-motor-conversion-kit/


Khalid Baheyeldin
 

You should not use OnStep-master at all. It is abandoned.

The version you should use is 4.24 only.

To your specific problem: the CNC V3 is only usable with the ESP32 R32 board, and not the ESP8266.
In fact, OnStep does not support the ESP8266 as a platform to run OnStep on, at all.

The ESP8266 is suitable as a WiFi controller, using the SmartWebServer (SWS), but not OnStep itself.


Chad Gray
 

Oh I am sorry for saying the wrong thing.  I forgot I used the 8266 for the WiFi Controller.


On Sun, Aug 29, 2021 at 12:00 PM Khalid Baheyeldin <kbahey@...> wrote:
You should not use OnStep-master at all. It is abandoned.

The version you should use is 4.24 only.

To your specific problem: the CNC V3 is only usable with the ESP32 R32 board, and not the ESP8266.
In fact, OnStep does not support the ESP8266 as a platform to run OnStep on, at all.

The ESP8266 is suitable as a WiFi controller, using the SmartWebServer (SWS), but not OnStep itself.


--
I am working on a CGE Pro conversion kit to OnStep
https://chadgray.info/cge-pro-bolt-on-stepper-motor-conversion-kit/


Khalid Baheyeldin
 

On Sun, Aug 29, 2021 at 12:28 PM, Chad Gray wrote:
Oh I am sorry for saying the wrong thing.
No problem.

Related ...

A significant percentage of the questions on this group are either too brief, too vague or very wide.
When they are like that, I often skip them altogether if I don't understand them in 30 seconds or so,
hoping that others can best make sense of them.