FastAccelStepper icon indicating copy to clipboard operation
FastAccelStepper copied to clipboard

Not working with esp-idf

Open RizwanHamid opened this issue 4 years ago • 13 comments

I have done my best but have not been able to compile successfully as an idf component. I would highly appreciate if someone can have a look at the errors that I am facing below:

idf.py fullclean build
Executing action: fullclean
Executing action: all (aliases: build)
Running cmake in directory /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3"...
-- Found Git: /usr/bin/git (found version "2.25.1") 
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/sdkconfig
-- Found PythonInterp: /home/rizwan/.espressif/python_env/idf4.4_py3.8_env/bin/python (found version "3.8.10") 
-- Found Perl: /usr/bin/perl (found version "5.30.0") 
-- App "Model-H" version: 1
-- Adding linker script /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Components: FastAccelStepper app_trace app_update arduino asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test ieee802154 jsmn json libsodium log lwip mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/components/FastAccelStepper /home/rizwan/esp/esp-idf/components/app_trace /home/rizwan/esp/esp-idf/components/app_update /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/components/arduino /home/rizwan/esp/esp-idf/components/asio /home/rizwan/esp/esp-idf/components/bootloader /home/rizwan/esp/esp-idf/components/bootloader_support /home/rizwan/esp/esp-idf/components/bt /home/rizwan/esp/esp-idf/components/cbor /home/rizwan/esp/esp-idf/components/cmock /home/rizwan/esp/esp-idf/components/coap /home/rizwan/esp/esp-idf/components/console /home/rizwan/esp/esp-idf/components/cxx /home/rizwan/esp/esp-idf/components/driver /home/rizwan/esp/esp-idf/components/efuse /home/rizwan/esp/esp-idf/components/esp-tls /home/rizwan/esp/esp-idf/components/esp32 /home/rizwan/esp/esp-idf/components/esp_adc_cal /home/rizwan/esp/esp-idf/components/esp_common /home/rizwan/esp/esp-idf/components/esp_eth /home/rizwan/esp/esp-idf/components/esp_event /home/rizwan/esp/esp-idf/components/esp_gdbstub /home/rizwan/esp/esp-idf/components/esp_hid /home/rizwan/esp/esp-idf/components/esp_http_client /home/rizwan/esp/esp-idf/components/esp_http_server /home/rizwan/esp/esp-idf/components/esp_https_ota /home/rizwan/esp/esp-idf/components/esp_https_server /home/rizwan/esp/esp-idf/components/esp_hw_support /home/rizwan/esp/esp-idf/components/esp_ipc /home/rizwan/esp/esp-idf/components/esp_lcd /home/rizwan/esp/esp-idf/components/esp_local_ctrl /home/rizwan/esp/esp-idf/components/esp_netif /home/rizwan/esp/esp-idf/components/esp_phy /home/rizwan/esp/esp-idf/components/esp_pm /home/rizwan/esp/esp-idf/components/esp_ringbuf /home/rizwan/esp/esp-idf/components/esp_rom /home/rizwan/esp/esp-idf/components/esp_serial_slave_link /home/rizwan/esp/esp-idf/components/esp_system /home/rizwan/esp/esp-idf/components/esp_timer /home/rizwan/esp/esp-idf/components/esp_websocket_client /home/rizwan/esp/esp-idf/components/esp_wifi /home/rizwan/esp/esp-idf/components/espcoredump /home/rizwan/esp/esp-idf/components/esptool_py /home/rizwan/esp/esp-idf/components/expat /home/rizwan/esp/esp-idf/components/fatfs /home/rizwan/esp/esp-idf/components/freemodbus /home/rizwan/esp/esp-idf/components/freertos /home/rizwan/esp/esp-idf/components/hal /home/rizwan/esp/esp-idf/components/heap /home/rizwan/esp/esp-idf/components/idf_test /home/rizwan/esp/esp-idf/components/ieee802154 /home/rizwan/esp/esp-idf/components/jsmn /home/rizwan/esp/esp-idf/components/json /home/rizwan/esp/esp-idf/components/libsodium /home/rizwan/esp/esp-idf/components/log /home/rizwan/esp/esp-idf/components/lwip /home/rizwan/esp/esp-idf/components/mbedtls /home/rizwan/esp/esp-idf/components/mdns /home/rizwan/esp/esp-idf/components/mqtt /home/rizwan/esp/esp-idf/components/newlib /home/rizwan/esp/esp-idf/components/nghttp /home/rizwan/esp/esp-idf/components/nvs_flash /home/rizwan/esp/esp-idf/components/openssl /home/rizwan/esp/esp-idf/components/openthread /home/rizwan/esp/esp-idf/components/partition_table /home/rizwan/esp/esp-idf/components/perfmon /home/rizwan/esp/esp-idf/components/protobuf-c /home/rizwan/esp/esp-idf/components/protocomm /home/rizwan/esp/esp-idf/components/pthread /home/rizwan/esp/esp-idf/components/sdmmc /home/rizwan/esp/esp-idf/components/soc /home/rizwan/esp/esp-idf/components/spi_flash /home/rizwan/esp/esp-idf/components/spiffs /home/rizwan/esp/esp-idf/components/tcp_transport /home/rizwan/esp/esp-idf/components/tcpip_adapter /home/rizwan/esp/esp-idf/components/tinyusb /home/rizwan/esp/esp-idf/components/ulp /home/rizwan/esp/esp-idf/components/unity /home/rizwan/esp/esp-idf/components/usb /home/rizwan/esp/esp-idf/components/vfs /home/rizwan/esp/esp-idf/components/wear_levelling /home/rizwan/esp/esp-idf/components/wifi_provisioning /home/rizwan/esp/esp-idf/components/wpa_supplicant /home/rizwan/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/build
Running ninja in directory /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/build
Executing "ninja all"...
[9/1424] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
sec_cert,63,6,0xd000,12K,
nvs,data,nvs,0x10000,24K,
otadata,data,ota,0x16000,8K,
phy_init,data,phy,0x18000,4K,
ota_0,app,ota_0,0x20000,1600K,
ota_1,app,ota_1,0x1b0000,1600K,
fctry,data,nvs,0x340000,24K,
*******************************************************************************
[218/1424] Performing configure step for 'bootloader'
-- Found Git: /usr/bin/git (found version "2.25.1") 
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/sdkconfig
-- Adding linker script /home/rizwan/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script /home/rizwan/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32 esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /home/rizwan/esp/esp-idf/components/bootloader /home/rizwan/esp/esp-idf/components/bootloader_support /home/rizwan/esp/esp-idf/components/efuse /home/rizwan/esp/esp-idf/components/esp32 /home/rizwan/esp/esp-idf/components/esp_common /home/rizwan/esp/esp-idf/components/esp_hw_support /home/rizwan/esp/esp-idf/components/esp_rom /home/rizwan/esp/esp-idf/components/esp_system /home/rizwan/esp/esp-idf/components/esptool_py /home/rizwan/esp/esp-idf/components/freertos /home/rizwan/esp/esp-idf/components/hal /home/rizwan/esp/esp-idf/components/log /home/rizwan/esp/esp-idf/components/bootloader/subproject/main /home/rizwan/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /home/rizwan/esp/esp-idf/components/newlib /home/rizwan/esp/esp-idf/components/partition_table /home/rizwan/esp/esp-idf/components/soc /home/rizwan/esp/esp-idf/components/spi_flash /home/rizwan/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/build/bootloader
[278/1424] Performing build step for 'bootloader'
[1/97] Generating project_elf_src_esp32.c
[2/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj
[3/97] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32.c.obj
[4/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[5/97] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[6/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/gpio_periph.c.obj
[7/97] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj
[8/97] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/cpu_hal.c.obj
[9/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/dac_periph.c.obj
[10/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2c_periph.c.obj
[11/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/adc_periph.c.obj
[12/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/lcd_periph.c.obj
[13/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/interrupts.c.obj
[14/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2s_periph.c.obj
[15/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/ledc_periph.c.obj
[16/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/mcpwm_periph.c.obj
[17/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdmmc_periph.c.obj
[18/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rmt_periph.c.obj
[19/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/pcnt_periph.c.obj
[20/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sigmadelta_periph.c.obj
[21/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_io_periph.c.obj
[22/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdio_slave_periph.c.obj
[23/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/timer_periph.c.obj
[24/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/spi_periph.c.obj
[25/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/touch_sensor_periph.c.obj
[26/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/uart_periph.c.obj
[27/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[28/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[29/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[30/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[31/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[32/97] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32/spi_flash_rom_patch.c.obj
[33/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32.c.obj
[34/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[35/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[36/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj
[37/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[38/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32.c.obj
[39/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[40/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj
[41/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32.c.obj
[42/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[43/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[44/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[45/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[46/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[47/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_sha.c.obj
[48/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_soc.c.obj
[49/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[50/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_table.c.obj
[51/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[52/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_fields.c.obj
[53/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_utility.c.obj
[54/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_esp32.c.obj
[55/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compare_set.c.obj
[56/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[57/97] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj
[58/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api_key_esp32.c.obj
[59/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[60/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu_util.c.obj
[61/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_pm.c.obj
[62/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk_init.c.obj
[63/97] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[64/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_init.c.obj
[65/97] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/eri.c.obj
[66/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/chip_info.c.obj
[67/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_wdt.c.obj
[68/97] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/xt_trax.c.obj
[69/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[70/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_time.c.obj
[71/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_sleep.c.obj
[72/97] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj
[73/97] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj
[74/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_tjpgd.c.obj
[75/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[76/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[77/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk.c.obj
[78/97] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[79/97] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[80/97] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[81/97] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[82/97] Linking C static library esp-idf/log/liblog.a
[83/97] Linking C static library esp-idf/esp_rom/libesp_rom.a
[84/97] Linking C static library esp-idf/esp_common/libesp_common.a
[85/97] Linking C static library esp-idf/xtensa/libxtensa.a
[86/97] Linking C static library esp-idf/esp_hw_support/libesp_hw_support.a
[87/97] Linking C static library esp-idf/esp_system/libesp_system.a
[88/97] Linking C static library esp-idf/efuse/libefuse.a
[89/97] Linking C static library esp-idf/bootloader_support/libbootloader_support.a
[90/97] Linking C static library esp-idf/spi_flash/libspi_flash.a
[91/97] Linking C static library esp-idf/micro-ecc/libmicro-ecc.a
[92/97] Linking C static library esp-idf/soc/libsoc.a
[93/97] Linking C static library esp-idf/hal/libhal.a
[94/97] Linking C static library esp-idf/main/libmain.a
[95/97] Linking C executable bootloader.elf
[96/97] Generating binary image from built executable
esptool.py v3.2-dev
Merged 1 ELF section
Generated /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/build/bootloader/bootloader.bin
[97/97] cd /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/build/bootloader/esp-idf/esptool_py && /home/rizwan/.espressif/python_env/idf4.4_py3.8_env/bin/python /home/rizwan/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/build/bootloader/bootloader.bin
Bootloader binary size 0x6350 bytes. 0xcb0 bytes (11%) free.
[1297/1424] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-i2c-slave.c.obj
../components/arduino/cores/esp32/esp32-hal-i2c-slave.c: In function 'i2c_slave_isr_handler':
../components/arduino/cores/esp32/esp32-hal-i2c-slave.c:798:13: warning: unused variable 'tx_fifo_len' [-Wunused-variable]
     uint8_t tx_fifo_len = SOC_I2C_FIFO_LEN - i2c_ll_get_txfifo_len(i2c->dev);
             ^~~~~~~~~~~
[1302/1424] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-rmt.c.obj
../components/arduino/cores/esp32/esp32-hal-rmt.c:118:25: warning: 'g_rmt_objlocks' defined but not used [-Wunused-variable]
 static xSemaphoreHandle g_rmt_objlocks[MAX_CHANNELS] = {
                         ^~~~~~~~~~~~~~
[1305/1424] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/libb64/cdecode.c.obj
../components/arduino/cores/esp32/libb64/cdecode.c: In function 'base64_decode_block_signed':
../components/arduino/cores/esp32/libb64/cdecode.c:42:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
         *plainchar    = (fragment & 0x03f) << 2;
         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../components/arduino/cores/esp32/libb64/cdecode.c:43:7: note: here
       case step_b:
       ^~~~
../components/arduino/cores/esp32/libb64/cdecode.c:53:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
         *plainchar    = (fragment & 0x00f) << 4;
         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../components/arduino/cores/esp32/libb64/cdecode.c:54:7: note: here
       case step_c:
       ^~~~
../components/arduino/cores/esp32/libb64/cdecode.c:64:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
         *plainchar    = (fragment & 0x003) << 6;
         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../components/arduino/cores/esp32/libb64/cdecode.c:65:7: note: here
       case step_d:
       ^~~~
[1306/1424] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/libb64/cencode.c.obj
../components/arduino/cores/esp32/libb64/cencode.c: In function 'base64_encode_block':
../components/arduino/cores/esp32/libb64/cencode.c:46:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
             result = (fragment & 0x003) << 4;
             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../components/arduino/cores/esp32/libb64/cencode.c:47:9: note: here
         case step_B:
         ^~~~
../components/arduino/cores/esp32/libb64/cencode.c:56:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
             result = (fragment & 0x00f) << 2;
             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../components/arduino/cores/esp32/libb64/cencode.c:57:9: note: here
         case step_C:
         ^~~~
[1327/1424] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/libraries/BluetoothSerial/src/BTScanResultsSet.cpp.obj
../components/arduino/libraries/BluetoothSerial/src/BTScanResultsSet.cpp: In member function 'virtual BTAdvertisedDevice* BTScanResultsSet::getDevice(uint32_t)':
../components/arduino/libraries/BluetoothSerial/src/BTScanResultsSet.cpp:67:8: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
  if (i < 0)
      ~~^~~
[1369/1424] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/libraries/WiFiClientSecure/src/ssl_client.cpp.obj
../components/arduino/libraries/WiFiClientSecure/src/ssl_client.cpp:23:4: warning: #warning "Please configure IDF framework to include mbedTLS -> Enable pre-shared-key ciphersuites and activate at least one cipher" [-Wcpp]
 #  warning "Please configure IDF framework to include mbedTLS -> Enable pre-shared-key ciphersuites and activate at least one cipher"
    ^~~~~~~
[1379/1424] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/libraries/WiFi/src/WiFiScan.cpp.obj
../components/arduino/libraries/WiFi/src/WiFiScan.cpp:45:21: warning: 'const char* cipher_str(int)' defined but not used [-Wunused-function]
 static const char * cipher_str(int cipher)
                     ^~~~~~~~~~
[1380/1424] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/libraries/WiFi/src/WiFiGeneric.cpp.obj
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp: In function 'void _arduino_event_cb(void*, esp_event_base_t, int32_t, void*)':
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:278:41: warning: unused variable 'event' [-Wunused-variable]
      wifi_event_sta_authmode_change_t * event = (wifi_event_sta_authmode_change_t*)event_data;
                                         ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:283:35: warning: unused variable 'event' [-Wunused-variable]
      wifi_event_sta_connected_t * event = (wifi_event_sta_connected_t*)event_data;
                                   ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:288:38: warning: unused variable 'event' [-Wunused-variable]
      wifi_event_sta_disconnected_t * event = (wifi_event_sta_disconnected_t*)event_data;
                                      ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:293:28: warning: unused variable 'event' [-Wunused-variable]
         ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data;
                            ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:305:35: warning: unused variable 'event' [-Wunused-variable]
      wifi_event_sta_scan_done_t * event = (wifi_event_sta_scan_done_t*)event_data;
                                   ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:320:34: warning: unused variable 'event' [-Wunused-variable]
   wifi_event_ap_probe_req_rx_t * event = (wifi_event_ap_probe_req_rx_t*)event_data;
                                  ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:325:33: warning: unused variable 'event' [-Wunused-variable]
   wifi_event_ap_staconnected_t* event = (wifi_event_ap_staconnected_t*) event_data;
                                 ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:330:36: warning: unused variable 'event' [-Wunused-variable]
   wifi_event_ap_stadisconnected_t* event = (wifi_event_ap_stadisconnected_t*) event_data;
                                    ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:335:36: warning: unused variable 'event' [-Wunused-variable]
      ip_event_ap_staipassigned_t * event = (ip_event_ap_staipassigned_t*)event_data;
                                    ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:345:23: warning: unused variable 'eth_handle' [-Wunused-variable]
      esp_eth_handle_t eth_handle = *(esp_eth_handle_t *)event_data;
                       ^~~~~~~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:358:28: warning: unused variable 'event' [-Wunused-variable]
         ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data;
                            ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:385:41: warning: unused variable 'event' [-Wunused-variable]
      wifi_event_sta_wps_fail_reason_t * event = (wifi_event_sta_wps_fail_reason_t*)event_data;
                                         ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:391:36: warning: unused variable 'event' [-Wunused-variable]
      wifi_event_sta_wps_er_pin_t * event = (wifi_event_sta_wps_er_pin_t*)event_data;
                                    ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:401:32: warning: unused variable 'event' [-Wunused-variable]
      wifi_event_ftm_report_t * event = (wifi_event_ftm_report_t*)event_data;
                                ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:416:44: warning: unused variable 'event' [-Wunused-variable]
         smartconfig_event_got_ssid_pswd_t *event = (smartconfig_event_got_ssid_pswd_t *)event_data;
                                            ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:442:28: warning: unused variable 'event' [-Wunused-variable]
         wifi_sta_config_t *event = (wifi_sta_config_t *)event_data;
                            ^~~~~
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp: At global scope:
../components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:187:21: warning: 'const char* auth_mode_str(int)' defined but not used [-Wunused-function]
 static const char * auth_mode_str(int authmode)
                     ^~~~~~~~~~~~~
[1385/1424] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/libraries/Wire/src/Wire.cpp.obj
../components/arduino/libraries/Wire/src/Wire.cpp: In member function 'uint8_t TwoWire::requestFrom(uint16_t, uint8_t, bool)':
../components/arduino/libraries/Wire/src/Wire.cpp:363:15: warning: variable 'err' set but not used [-Wunused-but-set-variable]
     esp_err_t err = ESP_OK;
               ^~~
[1387/1424] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/libraries/WiFiProv/src/WiFiProv.cpp.obj
../components/arduino/libraries/WiFiProv/src/WiFiProv.cpp:69:18: warning: 'esp_err_t custom_prov_data_handler(uint32_t, const uint8_t*, ssize_t, uint8_t**, ssize_t*, void*)' defined but not used [-Wunused-function]
 static esp_err_t custom_prov_data_handler(uint32_t session_id, const uint8_t *inbuf, ssize_t inlen, uint8_t **outbuf, ssize_t *outlen, void *priv_data){
                  ^~~~~~~~~~~~~~~~~~~~~~~~
[1399/1424] Building CXX object esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/RampGenerator.cpp.obj
In file included from ../components/FastAccelStepper/src/RampCalculator.h:3,
                 from ../components/FastAccelStepper/src/RampGenerator.cpp:10:
../components/FastAccelStepper/src/RampGenerator.cpp: In function 'void _getNextCommand(const ramp_ro_s*, const ramp_rw_s*, const queue_end_s*, NextCommand*)':
../components/FastAccelStepper/src/RampGenerator.h:190:25: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
 #define fas_abs(x) ((x) >= 0 ? (x) : (-x))
                     ~~~~^~~~
../components/FastAccelStepper/src/PoorManFloat.h:3:27: note: in definition of macro 'min'
 #define min(a, b) ((a) > (b) ? (b) : (a))
                           ^
../components/FastAccelStepper/src/RampGenerator.cpp:469:22: note: in expansion of macro 'fas_abs'
   steps = min(steps, fas_abs(remaining_steps));  // This could be problematic
                      ^~~~~~~
../components/FastAccelStepper/src/RampGenerator.h:190:25: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
 #define fas_abs(x) ((x) >= 0 ? (x) : (-x))
                     ~~~~^~~~
../components/FastAccelStepper/src/PoorManFloat.h:3:33: note: in definition of macro 'min'
 #define min(a, b) ((a) > (b) ? (b) : (a))
                                 ^
../components/FastAccelStepper/src/RampGenerator.cpp:469:22: note: in expansion of macro 'fas_abs'
   steps = min(steps, fas_abs(remaining_steps));  // This could be problematic
                      ^~~~~~~
[1414/1424] Building CXX object esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32.cpp.obj
FAILED: esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32.cpp.obj 
/home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++  -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/FastAccelStepper/src -I/home/rizwan/esp/esp-idf/components/newlib/platform_include -I/home/rizwan/esp/esp-idf/components/freertos/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions/freertos -I/home/rizwan/esp/esp-idf/components/freertos/port/xtensa/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/rizwan/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/rizwan/esp/esp-idf/components/heap/include -I/home/rizwan/esp/esp-idf/components/log/include -I/home/rizwan/esp/esp-idf/components/lwip/include/apps -I/home/rizwan/esp/esp-idf/components/lwip/include/apps/sntp -I/home/rizwan/esp/esp-idf/components/lwip/lwip/src/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/rizwan/esp/esp-idf/components/soc/include -I/home/rizwan/esp/esp-idf/components/soc/esp32/. -I/home/rizwan/esp/esp-idf/components/soc/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/include -I/home/rizwan/esp/esp-idf/components/hal/platform_port/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include/esp32 -I/home/rizwan/esp/esp-idf/components/esp_rom/esp32 -I/home/rizwan/esp/esp-idf/components/esp_common/include -I/home/rizwan/esp/esp-idf/components/esp_system/include -I/home/rizwan/esp/esp-idf/components/esp_system/port/soc -I/home/rizwan/esp/esp-idf/components/esp_system/port/public_compat -I/home/rizwan/esp/esp-idf/components/esp32/include -I/home/rizwan/esp/esp-idf/components/xtensa/include -I/home/rizwan/esp/esp-idf/components/xtensa/esp32/include -I/home/rizwan/esp/esp-idf/components/driver/include -I/home/rizwan/esp/esp-idf/components/driver/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_pm/include -I/home/rizwan/esp/esp-idf/components/esp_ringbuf/include -I/home/rizwan/esp/esp-idf/components/efuse/include -I/home/rizwan/esp/esp-idf/components/efuse/esp32/include -I/home/rizwan/esp/esp-idf/components/vfs/include -I/home/rizwan/esp/esp-idf/components/esp_wifi/include -I/home/rizwan/esp/esp-idf/components/esp_event/include -I/home/rizwan/esp/esp-idf/components/esp_netif/include -I/home/rizwan/esp/esp-idf/components/esp_eth/include -I/home/rizwan/esp/esp-idf/components/tcpip_adapter/include -I/home/rizwan/esp/esp-idf/components/esp_phy/include -I/home/rizwan/esp/esp-idf/components/esp_phy/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_ipc/include -I/home/rizwan/esp/esp-idf/components/app_trace/include -I/home/rizwan/esp/esp-idf/components/esp_timer/include -I../components/arduino/variants/esp32 -I../components/arduino/cores/esp32 -I../components/arduino/libraries/ArduinoOTA/src -I../components/arduino/libraries/AsyncUDP/src -I../components/arduino/libraries/BLE/src -I../components/arduino/libraries/BluetoothSerial/src -I../components/arduino/libraries/DNSServer/src -I../components/arduino/libraries/EEPROM/src -I../components/arduino/libraries/ESP32/src -I../components/arduino/libraries/ESPmDNS/src -I../components/arduino/libraries/FFat/src -I../components/arduino/libraries/FS/src -I../components/arduino/libraries/HTTPClient/src -I../components/arduino/libraries/HTTPUpdate/src -I../components/arduino/libraries/LittleFS/src -I../components/arduino/libraries/NetBIOS/src -I../components/arduino/libraries/Preferences/src -I../components/arduino/libraries/RainMaker/src -I../components/arduino/libraries/SD_MMC/src -I../components/arduino/libraries/SD/src -I../components/arduino/libraries/SimpleBLE/src -I../components/arduino/libraries/SPIFFS/src -I../components/arduino/libraries/SPI/src -I../components/arduino/libraries/Ticker/src -I../components/arduino/libraries/Update/src -I../components/arduino/libraries/USB/src -I../components/arduino/libraries/WebServer/src -I../components/arduino/libraries/WiFiClientSecure/src -I../components/arduino/libraries/WiFi/src -I../components/arduino/libraries/WiFiProv/src -I../components/arduino/libraries/Wire/src -I/home/rizwan/esp/esp-idf/components/spi_flash/include -I/home/rizwan/esp/esp-idf/components/mbedtls/port/include -I/home/rizwan/esp/esp-idf/components/mbedtls/mbedtls/include -I/home/rizwan/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I/home/rizwan/esp/esp-idf/components/mdns/include -I/home/rizwan/esp/esp-idf/components/console -I/home/rizwan/esp/esp-idf/components/esp_adc_cal/include -I/home/rizwan/esp/esp-idf/components/wifi_provisioning/include -I/home/rizwan/esp/esp-idf/components/protocomm/include/common -I/home/rizwan/esp/esp-idf/components/protocomm/include/security -I/home/rizwan/esp/esp-idf/components/protocomm/include/transports -I/home/rizwan/esp/esp-idf/components/bt/common/osi/include -I/home/rizwan/esp/esp-idf/components/bt/include/esp32/include -I/home/rizwan/esp/esp-idf/components/bt/common/api/include/api -I/home/rizwan/esp/esp-idf/components/bt/common/btc/profile/esp/blufi/include -I/home/rizwan/esp/esp-idf/components/bt/common/btc/profile/esp/include -I/home/rizwan/esp/esp-idf/components/bt/host/bluedroid/api/include/api -I/home/rizwan/esp/esp-idf/components/nvs_flash/include -I/home/rizwan/esp/esp-idf/components/nghttp/port/include -I/home/rizwan/esp/esp-idf/components/nghttp/nghttp2/lib/includes -I/home/rizwan/esp/esp-idf/components/esp_https_ota/include -I/home/rizwan/esp/esp-idf/components/esp_http_client/include -I/home/rizwan/esp/esp-idf/components/bootloader_support/include -mlongcalls -Wno-frame-address   -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=/mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3=. -fmacro-prefix-map=/home/rizwan/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER=\"v4.4-dev-3636-g6438af2ef9\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -DARDUINO=10812 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD=\"ESP32_DEV\" -DARDUINO_VARIANT=\"esp32\" -DESP32 -MD -MT esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32.cpp.obj -MF esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32.cpp.obj.d -o esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32.cpp.obj -c ../components/FastAccelStepper/src/StepperISR_esp32.cpp
../components/FastAccelStepper/src/StepperISR_esp32.cpp: In function 'void apply_command(StepperQueue*, const queue_entry*)':
../components/FastAccelStepper/src/StepperISR_esp32.cpp:110:27: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'status'; did you mean 'timer_status'?
   if (mcpwm->timer[timer].status.value <= 1) {  // mcpwm Timer is stopped ?
                           ^~~~~~
                           timer_status
../components/FastAccelStepper/src/StepperISR_esp32.cpp:111:25: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'period'
     mcpwm->timer[timer].period.upmethod = 0;    // 0 = immediate update, 1 = TEZ
                         ^~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:113:25: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'period'
     mcpwm->timer[timer].period.upmethod = 1;  // 0 = immediate update, 1 = TEZ
                         ^~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:115:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'period'
   mcpwm->timer[timer].period.period = ticks;
                       ^~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:118:12: error: 'struct mcpwm_dev_t' has no member named 'channel'
     mcpwm->channel[timer].generator[0].utea = 1;
            ^~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:170:12: error: 'struct mcpwm_dev_t' has no member named 'channel'
     mcpwm->channel[timer].generator[0].utea = 2;
            ^~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp: In function 'void init_stop(StepperQueue*)':
../components/FastAccelStepper/src/StepperISR_esp32.cpp:182:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'mode'
   mcpwm->timer[timer].mode.start = 0;  // 0: stop at TEZ
                       ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp: In function 'void mcpwm0_isr_service(void*)':
../components/FastAccelStepper/src/StepperISR_esp32.cpp:223:20: error: 'volatile union mcpwm_int_st_reg_t' has no member named 'cmpr0_tea_int_st'
   if (mcpwm.int_st.cmpr##TIMER##_tea_int_st != 0) {   \
                    ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:233:3: note: in expansion of macro 'MCPWM_SERVICE'
   MCPWM_SERVICE(MCPWM0, 0, 0);
   ^~~~~~~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:223:20: error: 'volatile union mcpwm_int_st_reg_t' has no member named 'cmpr1_tea_int_st'
   if (mcpwm.int_st.cmpr##TIMER##_tea_int_st != 0) {   \
                    ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:234:3: note: in expansion of macro 'MCPWM_SERVICE'
   MCPWM_SERVICE(MCPWM0, 1, 1);
   ^~~~~~~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:223:20: error: 'volatile union mcpwm_int_st_reg_t' has no member named 'cmpr2_tea_int_st'
   if (mcpwm.int_st.cmpr##TIMER##_tea_int_st != 0) {   \
                    ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:235:3: note: in expansion of macro 'MCPWM_SERVICE'
   MCPWM_SERVICE(MCPWM0, 2, 2);
   ^~~~~~~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp: In function 'void mcpwm1_isr_service(void*)':
../components/FastAccelStepper/src/StepperISR_esp32.cpp:223:20: error: 'volatile union mcpwm_int_st_reg_t' has no member named 'cmpr0_tea_int_st'
   if (mcpwm.int_st.cmpr##TIMER##_tea_int_st != 0) {   \
                    ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:238:3: note: in expansion of macro 'MCPWM_SERVICE'
   MCPWM_SERVICE(MCPWM1, 0, 3);
   ^~~~~~~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:223:20: error: 'volatile union mcpwm_int_st_reg_t' has no member named 'cmpr1_tea_int_st'
   if (mcpwm.int_st.cmpr##TIMER##_tea_int_st != 0) {   \
                    ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:239:3: note: in expansion of macro 'MCPWM_SERVICE'
   MCPWM_SERVICE(MCPWM1, 1, 4);
   ^~~~~~~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:223:20: error: 'volatile union mcpwm_int_st_reg_t' has no member named 'cmpr2_tea_int_st'
   if (mcpwm.int_st.cmpr##TIMER##_tea_int_st != 0) {   \
                    ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:240:3: note: in expansion of macro 'MCPWM_SERVICE'
   MCPWM_SERVICE(MCPWM1, 2, 5);
   ^~~~~~~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp: In member function 'void StepperQueue::init(uint8_t, uint8_t)':
../components/FastAccelStepper/src/StepperISR_esp32.cpp:288:55: error: 'PERIPH_PWM0_MODULE' was not declared in this scope
     periph_module_enable(mcpwm_unit == MCPWM_UNIT_0 ? PERIPH_PWM0_MODULE
                                                       ^~~~~~~~~~~~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:288:55: note: suggested alternative: 'PERIPHS_IO_MUX_MTDO_U'
     periph_module_enable(mcpwm_unit == MCPWM_UNIT_0 ? PERIPH_PWM0_MODULE
                                                       ^~~~~~~~~~~~~~~~~~
                                                       PERIPHS_IO_MUX_MTDO_U
../components/FastAccelStepper/src/StepperISR_esp32.cpp:289:55: error: 'PERIPH_PWM1_MODULE' was not declared in this scope
                                                     : PERIPH_PWM1_MODULE);
                                                       ^~~~~~~~~~~~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:289:55: note: suggested alternative: 'PERIPHS_IO_MUX_MTDO_U'
                                                     : PERIPH_PWM1_MODULE);
                                                       ^~~~~~~~~~~~~~~~~~
                                                       PERIPHS_IO_MUX_MTDO_U
../components/FastAccelStepper/src/StepperISR_esp32.cpp:288:5: error: 'periph_module_enable' was not declared in this scope
     periph_module_enable(mcpwm_unit == MCPWM_UNIT_0 ? PERIPH_PWM0_MODULE
     ^~~~~~~~~~~~~~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:288:5: note: suggested alternative: 'esp_intr_enable'
     periph_module_enable(mcpwm_unit == MCPWM_UNIT_0 ? PERIPH_PWM0_MODULE
     ^~~~~~~~~~~~~~~~~~~~
     esp_intr_enable
../components/FastAccelStepper/src/StepperISR_esp32.cpp:294:62: warning: 'esp_err_t mcpwm_isr_register(mcpwm_unit_t, void (*)(void*), void*, int, intr_handle_data_t**)' is deprecated: interrupt events are handled by driver, please use callback [-Wdeprecated-declarations]
         NULL, ESP_INTR_FLAG_IRAM | ESP_INTR_FLAG_SHARED, NULL);
                                                              ^
In file included from ../components/FastAccelStepper/src/StepperISR.h:58,
                 from ../components/FastAccelStepper/src/StepperISR_esp32.cpp:2:
/home/rizwan/esp/esp-idf/components/driver/include/driver/mcpwm.h:926:11: note: declared here
 esp_err_t mcpwm_isr_register(mcpwm_unit_t mcpwm_num, void (*fn)(void *), void *arg, int intr_alloc_flags,
           ^~~~~~~~~~~~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:294:62: warning: 'esp_err_t mcpwm_isr_register(mcpwm_unit_t, void (*)(void*), void*, int, intr_handle_data_t**)' is deprecated: interrupt events are handled by driver, please use callback [-Wdeprecated-declarations]
         NULL, ESP_INTR_FLAG_IRAM | ESP_INTR_FLAG_SHARED, NULL);
                                                              ^
In file included from ../components/FastAccelStepper/src/StepperISR.h:58,
                 from ../components/FastAccelStepper/src/StepperISR_esp32.cpp:2:
/home/rizwan/esp/esp-idf/components/driver/include/driver/mcpwm.h:926:11: note: declared here
 esp_err_t mcpwm_isr_register(mcpwm_unit_t mcpwm_num, void (*fn)(void *), void *arg, int intr_alloc_flags,
           ^~~~~~~~~~~~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:297:20: error: 'volatile union mcpwm_clk_cfg_reg_t' has no member named 'prescale'
     mcpwm->clk_cfg.prescale = 5 - 1;
                    ^~~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:299:12: error: 'struct mcpwm_dev_t' has no member named 'timer_sel'; did you mean 'timer'?
     mcpwm->timer_sel.operator0_sel = 0;  // timer 0 is input for operator 0
            ^~~~~~~~~
            timer
../components/FastAccelStepper/src/StepperISR_esp32.cpp:300:12: error: 'struct mcpwm_dev_t' has no member named 'timer_sel'; did you mean 'timer'?
     mcpwm->timer_sel.operator1_sel = 1;  // timer 1 is input for operator 1
            ^~~~~~~~~
            timer
../components/FastAccelStepper/src/StepperISR_esp32.cpp:301:12: error: 'struct mcpwm_dev_t' has no member named 'timer_sel'; did you mean 'timer'?
     mcpwm->timer_sel.operator2_sel = 2;  // timer 2 is input for operator 2
            ^~~~~~~~~
            timer
../components/FastAccelStepper/src/StepperISR_esp32.cpp:303:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'period'
   mcpwm->timer[timer].period.upmethod = 1;  // 0 = immediate update, 1 = TEZ
                       ^~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:304:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'period'
   mcpwm->timer[timer].period.prescale = TIMER_PRESCALER;
                       ^~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:305:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'period'
   mcpwm->timer[timer].period.period = 400;  // Random value
                       ^~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:306:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'mode'
   mcpwm->timer[timer].mode.mode = 3;        // 3=up/down counting
                       ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:307:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'mode'
   mcpwm->timer[timer].mode.start = 0;       // 0: stop at TEZ
                       ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:310:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'sync'
   mcpwm->timer[timer].sync.timer_phase = 0;  // prepare value of 0
                       ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:311:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'sync'
   mcpwm->timer[timer].sync.in_en = 1;        // enable sync
                       ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:312:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'sync'
   mcpwm->timer[timer].sync.sync_sw ^= 1;     // force a sync
                       ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:313:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'sync'
   mcpwm->timer[timer].sync.in_en = 0;        // disable sync
                       ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:315:10: error: 'struct mcpwm_dev_t' has no member named 'channel'
   mcpwm->channel[timer].cmpr_cfg.a_upmethod = 0;     // 0 = immediate update
          ^~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:316:10: error: 'struct mcpwm_dev_t' has no member named 'channel'
   mcpwm->channel[timer].cmpr_value[0].cmpr_val = 1;  // set compare value A
          ^~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:317:10: error: 'struct mcpwm_dev_t' has no member named 'channel'
   mcpwm->channel[timer].generator[0].val = 0;   // clear all trigger actions
          ^~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:318:10: error: 'struct mcpwm_dev_t' has no member named 'channel'
   mcpwm->channel[timer].generator[1].val = 0;   // clear all trigger actions
          ^~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:319:10: error: 'struct mcpwm_dev_t' has no member named 'channel'
   mcpwm->channel[timer].generator[0].dtep = 1;  // low at period
          ^~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:320:10: error: 'struct mcpwm_dev_t' has no member named 'channel'
   mcpwm->channel[timer].db_cfg.val = 0;         // edge delay disabled
          ^~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp:321:10: error: 'struct mcpwm_dev_t' has no member named 'channel'
   mcpwm->channel[timer].carrier_cfg.val = 0;    // carrier disabled
          ^~~~~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp: In member function 'bool StepperQueue::isRunning()':
../components/FastAccelStepper/src/StepperISR_esp32.cpp:367:27: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'status'; did you mean 'timer_status'?
   if (mcpwm->timer[timer].status.value > 1) {
                           ^~~~~~
                           timer_status
../components/FastAccelStepper/src/StepperISR_esp32.cpp:370:31: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'mode'
   return (mcpwm->timer[timer].mode.start == 2);  // 2=run continuous
                               ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp: In member function 'void StepperQueue::commandAddedToQueue(bool)':
../components/FastAccelStepper/src/StepperISR_esp32.cpp:408:25: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'mode'
     mcpwm->timer[timer].mode.start = 2;  // 2=run continuous
                         ^~~~
../components/FastAccelStepper/src/StepperISR_esp32.cpp: In member function 'int8_t StepperQueue::startPreparedQueue()':
../components/FastAccelStepper/src/StepperISR_esp32.cpp:418:23: error: 'volatile struct mcpwm_timer_regs_t' has no member named 'mode'
   mcpwm->timer[timer].mode.start = 2;  // 2=run continuous
                       ^~~~
[1417/1424] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/libraries/BLE/src/GeneralUtils.cpp.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

RizwanHamid avatar Nov 13 '21 06:11 RizwanHamid

Please try to use the branch espidf4.4. This should be at least compatible to the new mcpwm definitions.

gin66 avatar Nov 13 '21 10:11 gin66

The warning related to fas_abs() use is valid. Will fix it

gin66 avatar Nov 13 '21 11:11 gin66

Fixed the warning and merged the branch espidf4.4 in master

gin66 avatar Nov 13 '21 11:11 gin66

Thank you so much for your help. I highly appreciate that. However, I am facing the following error now. My esp-idf is v4.4.

Generated /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/build/bootloader/bootloader.bin [97/97] cd /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/build/bootloader/esp-idf/esptool_py && /home/rizwan/.espressif/python_env/idf4.4_py3.8_env/bin/python /home/rizwan/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3/build/bootloader/bootloader.bin Bootloader binary size 0x6350 bytes. 0xcb0 bytes (11%) free. [1291/1425] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-i2c-slave.c.obj FAILED: esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-i2c-slave.c.obj /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -Iconfig -I../components/arduino/variants/esp32 -I../components/arduino/cores/esp32 -I../components/arduino/libraries/ArduinoOTA/src -I../components/arduino/libraries/AsyncUDP/src -I../components/arduino/libraries/BLE/src -I../components/arduino/libraries/BluetoothSerial/src -I../components/arduino/libraries/DNSServer/src -I../components/arduino/libraries/EEPROM/src -I../components/arduino/libraries/ESP32/src -I../components/arduino/libraries/ESPmDNS/src -I../components/arduino/libraries/FFat/src -I../components/arduino/libraries/FS/src -I../components/arduino/libraries/HTTPClient/src -I../components/arduino/libraries/HTTPUpdate/src -I../components/arduino/libraries/LittleFS/src -I../components/arduino/libraries/NetBIOS/src -I../components/arduino/libraries/Preferences/src -I../components/arduino/libraries/RainMaker/src -I../components/arduino/libraries/SD_MMC/src -I../components/arduino/libraries/SD/src -I../components/arduino/libraries/SimpleBLE/src -I../components/arduino/libraries/SPIFFS/src -I../components/arduino/libraries/SPI/src -I../components/arduino/libraries/Ticker/src -I../components/arduino/libraries/Update/src -I../components/arduino/libraries/USB/src -I../components/arduino/libraries/WebServer/src -I../components/arduino/libraries/WiFiClientSecure/src -I../components/arduino/libraries/WiFi/src -I../components/arduino/libraries/WiFiProv/src -I../components/arduino/libraries/Wire/src -I../components/arduino/cores/esp32/libb64 -I/home/rizwan/esp/esp-idf/components/newlib/platform_include -I/home/rizwan/esp/esp-idf/components/freertos/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions/freertos -I/home/rizwan/esp/esp-idf/components/freertos/port/xtensa/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/rizwan/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/rizwan/esp/esp-idf/components/heap/include -I/home/rizwan/esp/esp-idf/components/log/include -I/home/rizwan/esp/esp-idf/components/lwip/include/apps -I/home/rizwan/esp/esp-idf/components/lwip/include/apps/sntp -I/home/rizwan/esp/esp-idf/components/lwip/lwip/src/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/rizwan/esp/esp-idf/components/soc/include -I/home/rizwan/esp/esp-idf/components/soc/esp32/. -I/home/rizwan/esp/esp-idf/components/soc/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/include -I/home/rizwan/esp/esp-idf/components/hal/platform_port/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include/esp32 -I/home/rizwan/esp/esp-idf/components/esp_rom/esp32 -I/home/rizwan/esp/esp-idf/components/esp_common/include -I/home/rizwan/esp/esp-idf/components/esp_system/include -I/home/rizwan/esp/esp-idf/components/esp_system/port/soc -I/home/rizwan/esp/esp-idf/components/esp_system/port/public_compat -I/home/rizwan/esp/esp-idf/components/esp32/include -I/home/rizwan/esp/esp-idf/components/xtensa/include -I/home/rizwan/esp/esp-idf/components/xtensa/esp32/include -I/home/rizwan/esp/esp-idf/components/driver/include -I/home/rizwan/esp/esp-idf/components/driver/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_pm/include -I/home/rizwan/esp/esp-idf/components/esp_ringbuf/include -I/home/rizwan/esp/esp-idf/components/efuse/include -I/home/rizwan/esp/esp-idf/components/efuse/esp32/include -I/home/rizwan/esp/esp-idf/components/vfs/include -I/home/rizwan/esp/esp-idf/components/esp_wifi/include -I/home/rizwan/esp/esp-idf/components/esp_event/include -I/home/rizwan/esp/esp-idf/components/esp_netif/include -I/home/rizwan/esp/esp-idf/components/esp_eth/include -I/home/rizwan/esp/esp-idf/components/tcpip_adapter/include -I/home/rizwan/esp/esp-idf/components/esp_phy/include -I/home/rizwan/esp/esp-idf/components/esp_phy/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_ipc/include -I/home/rizwan/esp/esp-idf/components/app_trace/include -I/home/rizwan/esp/esp-idf/components/esp_timer/include -I/home/rizwan/esp/esp-idf/components/spi_flash/include -I/home/rizwan/esp/esp-idf/components/mbedtls/port/include -I/home/rizwan/esp/esp-idf/components/mbedtls/mbedtls/include -I/home/rizwan/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I/home/rizwan/esp/esp-idf/components/mdns/include -I/home/rizwan/esp/esp-idf/components/console -I/home/rizwan/esp/esp-idf/components/esp_adc_cal/include -I/home/rizwan/esp/esp-idf/components/wifi_provisioning/include -I/home/rizwan/esp/esp-idf/components/protocomm/include/common -I/home/rizwan/esp/esp-idf/components/protocomm/include/security -I/home/rizwan/esp/esp-idf/components/protocomm/include/transports -I/home/rizwan/esp/esp-idf/components/bt/common/osi/include -I/home/rizwan/esp/esp-idf/components/bt/include/esp32/include -I/home/rizwan/esp/esp-idf/components/bt/common/api/include/api -I/home/rizwan/esp/esp-idf/components/bt/common/btc/profile/esp/blufi/include -I/home/rizwan/esp/esp-idf/components/bt/common/btc/profile/esp/include -I/home/rizwan/esp/esp-idf/components/bt/host/bluedroid/api/include/api -I/home/rizwan/esp/esp-idf/components/nvs_flash/include -I/home/rizwan/esp/esp-idf/components/nghttp/port/include -I/home/rizwan/esp/esp-idf/components/nghttp/nghttp2/lib/includes -I/home/rizwan/esp/esp-idf/components/fatfs/diskio -I/home/rizwan/esp/esp-idf/components/fatfs/vfs -I/home/rizwan/esp/esp-idf/components/fatfs/src -I/home/rizwan/esp/esp-idf/components/wear_levelling/include -I/home/rizwan/esp/esp-idf/components/sdmmc/include -I/home/rizwan/esp/esp-idf/components/app_update/include -I/home/rizwan/esp/esp-idf/components/bootloader_support/include -I/home/rizwan/esp/esp-idf/components/spiffs/include -I/home/rizwan/esp/esp-idf/components/openssl/include -I/home/rizwan/esp/esp-idf/components/esp_hid/include -I/home/rizwan/esp/esp-idf/components/esp_https_ota/include -I/home/rizwan/esp/esp-idf/components/esp_http_client/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=/mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v3=. -fmacro-prefix-map=/home/rizwan/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER="v4.4-dev-3636-g6438af2ef9" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -DARDUINO=10812 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32_DEV" -DARDUINO_VARIANT="esp32" -DESP32 -MD -MT esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-i2c-slave.c.obj -MF esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-i2c-slave.c.obj.d -o esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-i2c-slave.c.obj -c ../components/arduino/cores/esp32/esp32-hal-i2c-slave.c ../components/arduino/cores/esp32/esp32-hal-i2c-slave.c: In function 'i2cSlaveDeinit': ../components/arduino/cores/esp32/esp32-hal-i2c-slave.c:363:12: error: 'i2c_slave_struct_t' {aka 'struct i2c_slave_struct_t'} has no member named 'lock' if(!i2c->lock){ ^~ ../components/arduino/cores/esp32/esp32-hal-i2c-slave.c: In function 'i2cSlaveWrite': ../components/arduino/cores/esp32/esp32-hal-i2c-slave.c:380:12: error: 'i2c_slave_struct_t' {aka 'struct i2c_slave_struct_t'} has no member named 'lock' if(!i2c->lock){ ^~ ../components/arduino/cores/esp32/esp32-hal-i2c-slave.c: In function 'i2c_slave_isr_handler': ../components/arduino/cores/esp32/esp32-hal-i2c-slave.c:694:13: warning: unused variable 'tx_fifo_len' [-Wunused-variable] uint8_t tx_fifo_len = SOC_I2C_FIFO_LEN - i2c_ll_get_txfifo_len(i2c->dev); ^~~~~~~~~~~ [1296/1425] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-sigmadelta.c.obj ninja: build stopped: subcommand failed. ninja failed with exit code 1

RizwanHamid avatar Nov 13 '21 12:11 RizwanHamid

I cannot see an error related to,FastAccelStepper. Looks like the esp-idf is buggy.

gin66 avatar Nov 13 '21 12:11 gin66

I think this problem pertains to the arduino component. which esp-idf and arduino component version are you using please?

RizwanHamid avatar Nov 13 '21 13:11 RizwanHamid

I do not use esp-idf. Normally I use only platformio. In order to check for esp-idf4.4, I have fired up the Arduino-IDE with this board definitions, installed version 2.0.1 and compile for "ESP32 Dev Module"

So it should be:

        {
          "name": "esp32",
          "architecture": "esp32",
          "version": "2.0.1",
          "category": "ESP32",
          "url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.1/esp32-2.0.1.zip",
          "archiveFileName": "esp32-2.0.1.zip",
          "checksum": "SHA-256:3a7cd46ba47990dd37fbe02b7f0a910dd5cc7af1d190350b69d320ed36cd6b41",
          "size": "148976301",
          "help": {
            "online": ""
          },
          "boards": [
            {
              "name": "ESP32 Dev Board"
            },
            {
              "name": "ESP32-S2 Dev Board"
            },
            {
              "name": "ESP32-C3 Dev Board"
            }
          ],
          "toolsDependencies": [
            {
              "packager": "esp32",
              "name": "riscv32-esp-elf-gcc",
              "version": "gcc8_4_0-esp-2021r2"
            },
            {
              "packager": "esp32",
              "name": "xtensa-esp32-elf-gcc",
              "version": "gcc8_4_0-esp-2021r2"
            },
            {
              "packager": "esp32",
              "name": "xtensa-esp32s2-elf-gcc",
              "version": "gcc8_4_0-esp-2021r2"
            },
            {
              "packager": "esp32",
              "name": "esptool_py",
              "version": "3.1.0"
            },
            {
              "packager": "esp32",
              "name": "mkspiffs",
              "version": "0.2.3"
            },
            {
              "packager": "esp32",
              "name": "mklittlefs",
              "version": "3.0.0-gnu12-dc7f933"
            }
          ]
        },

gin66 avatar Nov 13 '21 14:11 gin66

Thanks a lot for your help. The issue is resolved.

Solution: I have used idf-release/v4.4 branch for Arduino component and espidf4.4 from the FastAccelStepper repo with esp-idf branch release/v4.4.

Kind regards

RizwanHamid avatar Nov 13 '21 15:11 RizwanHamid

@rhr407 Could you please check, if the branch espidf allows compilation without Arduino-component ?

gin66 avatar Nov 16 '21 20:11 gin66

You may need to update CMakeLists.txt in the root directory to not require the Arduino library

gin66 avatar Nov 16 '21 20:11 gin66

Sure, I can check. Thanks for your help.

RizwanHamid avatar Nov 16 '21 21:11 RizwanHamid

I think, it does not work without arduino library. Here is the output:

model-h-idf-fastaccelstepper$ idf.py flash monitor Executing action: flash Serial port /dev/ttyUSB0 Connecting.... Detecting chip type... Unsupported detection protocol, switching and trying again... Connecting..... Detecting chip type... ESP32 Running ninja in directory /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/build Executing "ninja flash"... [0/1] Re-running CMake... -- Component directory /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/RMaker does not contain a CMakeLists.txt file. No component will be added -- Component directory /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/TMCSTEPPER does not contain a CMakeLists.txt file. No component will be added -- Building ESP-IDF components for target esp32 -- Project sdkconfig file /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/sdkconfig -- App "Model-H" version: 1.2 -- Adding linker script /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/build/esp-idf/esp_system/ld/memory.ld -- Adding linker script /home/rizwan/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in -- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld -- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld -- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /home/rizwan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld -- Adding linker script /home/rizwan/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld ESP Insights Project commit: ESP RainMaker Project commit: 6b8c30c-dirty -- Components: FastAccelStepper app_insights app_reset app_trace app_update app_wifi arduino asio bootloader bootloader_support bt button cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_diagnostics esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_insights esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_rainmaker esp_ringbuf esp_rom esp_schedule esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test ieee802154 jsmn json json_generator json_parser libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread qrcode rmaker_common rtc_store sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant ws2812_led xtensa -- Component paths: /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/FastAccelStepper /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/app_insights /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/app_reset /home/rizwan/esp/esp-idf/components/app_trace /home/rizwan/esp/esp-idf/components/app_update /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/app_wifi /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/arduino /home/rizwan/esp/esp-idf/components/asio /home/rizwan/esp/esp-idf/components/bootloader /home/rizwan/esp/esp-idf/components/bootloader_support /home/rizwan/esp/esp-idf/components/bt /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/button /home/rizwan/esp/esp-idf/components/cbor /home/rizwan/esp/esp-idf/components/cmock /home/rizwan/esp/esp-idf/components/coap /home/rizwan/esp/esp-idf/components/console /home/rizwan/esp/esp-idf/components/cxx /home/rizwan/esp/esp-idf/components/driver /home/rizwan/esp/esp-idf/components/efuse /home/rizwan/esp/esp-idf/components/esp-tls /home/rizwan/esp/esp-idf/components/esp32 /home/rizwan/esp/esp-idf/components/esp_adc_cal /home/rizwan/esp/esp-idf/components/esp_common /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/esp_diagnostics /home/rizwan/esp/esp-idf/components/esp_eth /home/rizwan/esp/esp-idf/components/esp_event /home/rizwan/esp/esp-idf/components/esp_gdbstub /home/rizwan/esp/esp-idf/components/esp_hid /home/rizwan/esp/esp-idf/components/esp_http_client /home/rizwan/esp/esp-idf/components/esp_http_server /home/rizwan/esp/esp-idf/components/esp_https_ota /home/rizwan/esp/esp-idf/components/esp_https_server /home/rizwan/esp/esp-idf/components/esp_hw_support /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/esp_insights /home/rizwan/esp/esp-idf/components/esp_ipc /home/rizwan/esp/esp-idf/components/esp_lcd /home/rizwan/esp/esp-idf/components/esp_local_ctrl /home/rizwan/esp/esp-idf/components/esp_netif /home/rizwan/esp/esp-idf/components/esp_phy /home/rizwan/esp/esp-idf/components/esp_pm /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/esp_rainmaker /home/rizwan/esp/esp-idf/components/esp_ringbuf /home/rizwan/esp/esp-idf/components/esp_rom /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/esp_schedule /home/rizwan/esp/esp-idf/components/esp_serial_slave_link /home/rizwan/esp/esp-idf/components/esp_system /home/rizwan/esp/esp-idf/components/esp_timer /home/rizwan/esp/esp-idf/components/esp_websocket_client /home/rizwan/esp/esp-idf/components/esp_wifi /home/rizwan/esp/esp-idf/components/espcoredump /home/rizwan/esp/esp-idf/components/esptool_py /home/rizwan/esp/esp-idf/components/expat /home/rizwan/esp/esp-idf/components/fatfs /home/rizwan/esp/esp-idf/components/freemodbus /home/rizwan/esp/esp-idf/components/freertos /home/rizwan/esp/esp-idf/components/hal /home/rizwan/esp/esp-idf/components/heap /home/rizwan/esp/esp-idf/components/idf_test /home/rizwan/esp/esp-idf/components/ieee802154 /home/rizwan/esp/esp-idf/components/jsmn /home/rizwan/esp/esp-idf/components/json /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/json_generator /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/json_parser /home/rizwan/esp/esp-idf/components/libsodium /home/rizwan/esp/esp-idf/components/log /home/rizwan/esp/esp-idf/components/lwip /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/main /home/rizwan/esp/esp-idf/components/mbedtls /home/rizwan/esp/esp-idf/components/mdns /home/rizwan/esp/esp-idf/components/mqtt /home/rizwan/esp/esp-idf/components/newlib /home/rizwan/esp/esp-idf/components/nghttp /home/rizwan/esp/esp-idf/components/nvs_flash /home/rizwan/esp/esp-idf/components/openssl /home/rizwan/esp/esp-idf/components/openthread /home/rizwan/esp/esp-idf/components/partition_table /home/rizwan/esp/esp-idf/components/perfmon /home/rizwan/esp/esp-idf/components/protobuf-c /home/rizwan/esp/esp-idf/components/protocomm /home/rizwan/esp/esp-idf/components/pthread /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/qrcode /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/rmaker_common /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/rtc_store /home/rizwan/esp/esp-idf/components/sdmmc /home/rizwan/esp/esp-idf/components/soc /home/rizwan/esp/esp-idf/components/spi_flash /home/rizwan/esp/esp-idf/components/spiffs /home/rizwan/esp/esp-idf/components/tcp_transport /home/rizwan/esp/esp-idf/components/tcpip_adapter /home/rizwan/esp/esp-idf/components/tinyusb /home/rizwan/esp/esp-idf/components/ulp /home/rizwan/esp/esp-idf/components/unity /home/rizwan/esp/esp-idf/components/usb /home/rizwan/esp/esp-idf/components/vfs /home/rizwan/esp/esp-idf/components/wear_levelling /home/rizwan/esp/esp-idf/components/wifi_provisioning /home/rizwan/esp/esp-idf/components/wpa_supplicant /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/components/ws2812_led /home/rizwan/esp/esp-idf/components/xtensa -- Configuring done -- Generating done -- Build files have been written to: /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/build [1/33] Performing build step for 'bootloader' [1/1] cd /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/build/bootloader/esp-idf/esptool_py && /home/rizwan/.espressif/python_env/idf4.4_py3.8_env/bin/python /home/rizwan/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper/build/bootloader/bootloader.bin Bootloader binary size 0x6350 bytes. 0xcb0 bytes (11%) free. [4/31] Building CXX object esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/RampCalculator.cpp.obj FAILED: esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/RampCalculator.cpp.obj /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -Iconfig -I../components/FastAccelStepper/src -I/home/rizwan/esp/esp-idf/components/newlib/platform_include -I/home/rizwan/esp/esp-idf/components/freertos/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions/freertos -I/home/rizwan/esp/esp-idf/components/freertos/port/xtensa/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/rizwan/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/rizwan/esp/esp-idf/components/heap/include -I/home/rizwan/esp/esp-idf/components/log/include -I/home/rizwan/esp/esp-idf/components/lwip/include/apps -I/home/rizwan/esp/esp-idf/components/lwip/include/apps/sntp -I/home/rizwan/esp/esp-idf/components/lwip/lwip/src/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/rizwan/esp/esp-idf/components/soc/include -I/home/rizwan/esp/esp-idf/components/soc/esp32/. -I/home/rizwan/esp/esp-idf/components/soc/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/include -I/home/rizwan/esp/esp-idf/components/hal/platform_port/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include/esp32 -I/home/rizwan/esp/esp-idf/components/esp_rom/esp32 -I/home/rizwan/esp/esp-idf/components/esp_common/include -I/home/rizwan/esp/esp-idf/components/esp_system/include -I/home/rizwan/esp/esp-idf/components/esp_system/port/soc -I/home/rizwan/esp/esp-idf/components/esp_system/port/public_compat -I/home/rizwan/esp/esp-idf/components/esp32/include -I/home/rizwan/esp/esp-idf/components/xtensa/include -I/home/rizwan/esp/esp-idf/components/xtensa/esp32/include -I/home/rizwan/esp/esp-idf/components/driver/include -I/home/rizwan/esp/esp-idf/components/driver/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_pm/include -I/home/rizwan/esp/esp-idf/components/esp_ringbuf/include -I/home/rizwan/esp/esp-idf/components/efuse/include -I/home/rizwan/esp/esp-idf/components/efuse/esp32/include -I/home/rizwan/esp/esp-idf/components/vfs/include -I/home/rizwan/esp/esp-idf/components/esp_wifi/include -I/home/rizwan/esp/esp-idf/components/esp_event/include -I/home/rizwan/esp/esp-idf/components/esp_netif/include -I/home/rizwan/esp/esp-idf/components/esp_eth/include -I/home/rizwan/esp/esp-idf/components/tcpip_adapter/include -I/home/rizwan/esp/esp-idf/components/esp_phy/include -I/home/rizwan/esp/esp-idf/components/esp_phy/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_ipc/include -I/home/rizwan/esp/esp-idf/components/app_trace/include -I/home/rizwan/esp/esp-idf/components/esp_timer/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=/mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper=. -fmacro-prefix-map=/home/rizwan/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER="v4.4-dev-3636-g6438af2ef9" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/RampCalculator.cpp.obj -MF esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/RampCalculator.cpp.obj.d -o esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/RampCalculator.cpp.obj -c ../components/FastAccelStepper/src/RampCalculator.cpp In file included from ../components/FastAccelStepper/src/RampGenerator.h:22, from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/RampCalculator.cpp:5: ../components/FastAccelStepper/src/common.h:33:2: error: #error "Unsupported derivate" #error "Unsupported derivate" ^~~~~ In file included from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/RampCalculator.cpp:5: ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getSpeedInUs()': ../components/FastAccelStepper/src/RampGenerator.h:113:54: error: 'TICKS_PER_S' was not declared in this scope uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:113:54: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:116:37: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:116:37: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:126:21: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:126:21: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'int8_t RampGenerator::setSpeedInMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:138:32: error: 'TICKS_PER_S' was not declared in this scope if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:138:32: note: suggested alternative: 'UPM_TICKS_PER_S' if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInTicks()': ../components/FastAccelStepper/src/RampGenerator.h:170:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:170:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:172:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:172:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInUs()': ../components/FastAccelStepper/src/RampGenerator.h:176:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:176:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:178:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:178:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h:50:37: error: 'TICKS_PER_S' was not declared in this scope ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:50:37: note: suggested alternative: 'UPM_TICKS_PER_S' ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/RampCalculator.cpp:5: ../components/FastAccelStepper/src/FastAccelStepper.h: At global scope: ../components/FastAccelStepper/src/FastAccelStepper.h:468:30: error: 'MAX_STEPPER' was not declared in this scope FastAccelStepper* _stepper[MAX_STEPPER]; ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/RampCalculator.cpp:5: ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint8_t StepperQueue::queueEntries()': ../components/FastAccelStepper/src/StepperISR.h:161:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:161:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:164:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:164:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts In file included from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/RampCalculator.cpp:5: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int8_t StepperQueue::addQueueEntry(const stepper_command_s*, bool)': ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/RampCalculator.cpp:5: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int32_t StepperQueue::getCurrentPosition()': ../components/FastAccelStepper/src/StepperISR.h:251:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:251:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:267:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:267:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint32_t StepperQueue::ticksInQueue()': ../components/FastAccelStepper/src/StepperISR.h:333:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:333:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:336:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:336:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'bool StepperQueue::hasTicksInQueue(uint32_t)': ../components/FastAccelStepper/src/StepperISR.h:355:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:355:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:358:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:358:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint16_t StepperQueue::getActualTicks()': ../components/FastAccelStepper/src/StepperISR.h:379:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:379:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:382:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:382:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts [5/31] Building CXX object esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_due.cpp.obj FAILED: esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_due.cpp.obj /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -Iconfig -I../components/FastAccelStepper/src -I/home/rizwan/esp/esp-idf/components/newlib/platform_include -I/home/rizwan/esp/esp-idf/components/freertos/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions/freertos -I/home/rizwan/esp/esp-idf/components/freertos/port/xtensa/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/rizwan/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/rizwan/esp/esp-idf/components/heap/include -I/home/rizwan/esp/esp-idf/components/log/include -I/home/rizwan/esp/esp-idf/components/lwip/include/apps -I/home/rizwan/esp/esp-idf/components/lwip/include/apps/sntp -I/home/rizwan/esp/esp-idf/components/lwip/lwip/src/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/rizwan/esp/esp-idf/components/soc/include -I/home/rizwan/esp/esp-idf/components/soc/esp32/. -I/home/rizwan/esp/esp-idf/components/soc/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/include -I/home/rizwan/esp/esp-idf/components/hal/platform_port/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include/esp32 -I/home/rizwan/esp/esp-idf/components/esp_rom/esp32 -I/home/rizwan/esp/esp-idf/components/esp_common/include -I/home/rizwan/esp/esp-idf/components/esp_system/include -I/home/rizwan/esp/esp-idf/components/esp_system/port/soc -I/home/rizwan/esp/esp-idf/components/esp_system/port/public_compat -I/home/rizwan/esp/esp-idf/components/esp32/include -I/home/rizwan/esp/esp-idf/components/xtensa/include -I/home/rizwan/esp/esp-idf/components/xtensa/esp32/include -I/home/rizwan/esp/esp-idf/components/driver/include -I/home/rizwan/esp/esp-idf/components/driver/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_pm/include -I/home/rizwan/esp/esp-idf/components/esp_ringbuf/include -I/home/rizwan/esp/esp-idf/components/efuse/include -I/home/rizwan/esp/esp-idf/components/efuse/esp32/include -I/home/rizwan/esp/esp-idf/components/vfs/include -I/home/rizwan/esp/esp-idf/components/esp_wifi/include -I/home/rizwan/esp/esp-idf/components/esp_event/include -I/home/rizwan/esp/esp-idf/components/esp_netif/include -I/home/rizwan/esp/esp-idf/components/esp_eth/include -I/home/rizwan/esp/esp-idf/components/tcpip_adapter/include -I/home/rizwan/esp/esp-idf/components/esp_phy/include -I/home/rizwan/esp/esp-idf/components/esp_phy/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_ipc/include -I/home/rizwan/esp/esp-idf/components/app_trace/include -I/home/rizwan/esp/esp-idf/components/esp_timer/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=/mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper=. -fmacro-prefix-map=/home/rizwan/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER="v4.4-dev-3636-g6438af2ef9" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_due.cpp.obj -MF esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_due.cpp.obj.d -o esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_due.cpp.obj -c ../components/FastAccelStepper/src/StepperISR_due.cpp In file included from ../components/FastAccelStepper/src/RampGenerator.h:22, from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_due.cpp:1: ../components/FastAccelStepper/src/common.h:33:2: error: #error "Unsupported derivate" #error "Unsupported derivate" ^~~~~ In file included from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_due.cpp:1: ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getSpeedInUs()': ../components/FastAccelStepper/src/RampGenerator.h:113:54: error: 'TICKS_PER_S' was not declared in this scope uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:113:54: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:116:37: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:116:37: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:126:21: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:126:21: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'int8_t RampGenerator::setSpeedInMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:138:32: error: 'TICKS_PER_S' was not declared in this scope if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:138:32: note: suggested alternative: 'UPM_TICKS_PER_S' if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInTicks()': ../components/FastAccelStepper/src/RampGenerator.h:170:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:170:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:172:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:172:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInUs()': ../components/FastAccelStepper/src/RampGenerator.h:176:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:176:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:178:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:178:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h:50:37: error: 'TICKS_PER_S' was not declared in this scope ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:50:37: note: suggested alternative: 'UPM_TICKS_PER_S' ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_due.cpp:1: ../components/FastAccelStepper/src/FastAccelStepper.h: At global scope: ../components/FastAccelStepper/src/FastAccelStepper.h:468:30: error: 'MAX_STEPPER' was not declared in this scope FastAccelStepper* _stepper[MAX_STEPPER]; ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/StepperISR_due.cpp:1: ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint8_t StepperQueue::queueEntries()': ../components/FastAccelStepper/src/StepperISR.h:161:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:161:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:164:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:164:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts In file included from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_due.cpp:1: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int8_t StepperQueue::addQueueEntry(const stepper_command_s*, bool)': ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/StepperISR_due.cpp:1: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int32_t StepperQueue::getCurrentPosition()': ../components/FastAccelStepper/src/StepperISR.h:251:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:251:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:267:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:267:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint32_t StepperQueue::ticksInQueue()': ../components/FastAccelStepper/src/StepperISR.h:333:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:333:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:336:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:336:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'bool StepperQueue::hasTicksInQueue(uint32_t)': ../components/FastAccelStepper/src/StepperISR.h:355:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:355:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:358:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:358:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint16_t StepperQueue::getActualTicks()': ../components/FastAccelStepper/src/StepperISR.h:379:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:379:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:382:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:382:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts [6/31] Building CXX object esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32.cpp.obj FAILED: esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32.cpp.obj /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -Iconfig -I../components/FastAccelStepper/src -I/home/rizwan/esp/esp-idf/components/newlib/platform_include -I/home/rizwan/esp/esp-idf/components/freertos/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions/freertos -I/home/rizwan/esp/esp-idf/components/freertos/port/xtensa/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/rizwan/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/rizwan/esp/esp-idf/components/heap/include -I/home/rizwan/esp/esp-idf/components/log/include -I/home/rizwan/esp/esp-idf/components/lwip/include/apps -I/home/rizwan/esp/esp-idf/components/lwip/include/apps/sntp -I/home/rizwan/esp/esp-idf/components/lwip/lwip/src/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/rizwan/esp/esp-idf/components/soc/include -I/home/rizwan/esp/esp-idf/components/soc/esp32/. -I/home/rizwan/esp/esp-idf/components/soc/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/include -I/home/rizwan/esp/esp-idf/components/hal/platform_port/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include/esp32 -I/home/rizwan/esp/esp-idf/components/esp_rom/esp32 -I/home/rizwan/esp/esp-idf/components/esp_common/include -I/home/rizwan/esp/esp-idf/components/esp_system/include -I/home/rizwan/esp/esp-idf/components/esp_system/port/soc -I/home/rizwan/esp/esp-idf/components/esp_system/port/public_compat -I/home/rizwan/esp/esp-idf/components/esp32/include -I/home/rizwan/esp/esp-idf/components/xtensa/include -I/home/rizwan/esp/esp-idf/components/xtensa/esp32/include -I/home/rizwan/esp/esp-idf/components/driver/include -I/home/rizwan/esp/esp-idf/components/driver/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_pm/include -I/home/rizwan/esp/esp-idf/components/esp_ringbuf/include -I/home/rizwan/esp/esp-idf/components/efuse/include -I/home/rizwan/esp/esp-idf/components/efuse/esp32/include -I/home/rizwan/esp/esp-idf/components/vfs/include -I/home/rizwan/esp/esp-idf/components/esp_wifi/include -I/home/rizwan/esp/esp-idf/components/esp_event/include -I/home/rizwan/esp/esp-idf/components/esp_netif/include -I/home/rizwan/esp/esp-idf/components/esp_eth/include -I/home/rizwan/esp/esp-idf/components/tcpip_adapter/include -I/home/rizwan/esp/esp-idf/components/esp_phy/include -I/home/rizwan/esp/esp-idf/components/esp_phy/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_ipc/include -I/home/rizwan/esp/esp-idf/components/app_trace/include -I/home/rizwan/esp/esp-idf/components/esp_timer/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=/mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper=. -fmacro-prefix-map=/home/rizwan/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER="v4.4-dev-3636-g6438af2ef9" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32.cpp.obj -MF esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32.cpp.obj.d -o esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32.cpp.obj -c ../components/FastAccelStepper/src/StepperISR_esp32.cpp In file included from ../components/FastAccelStepper/src/RampGenerator.h:22, from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_esp32.cpp:2: ../components/FastAccelStepper/src/common.h:33:2: error: #error "Unsupported derivate" #error "Unsupported derivate" ^~~~~ In file included from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_esp32.cpp:2: ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getSpeedInUs()': ../components/FastAccelStepper/src/RampGenerator.h:113:54: error: 'TICKS_PER_S' was not declared in this scope uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:113:54: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:116:37: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:116:37: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:126:21: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:126:21: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'int8_t RampGenerator::setSpeedInMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:138:32: error: 'TICKS_PER_S' was not declared in this scope if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:138:32: note: suggested alternative: 'UPM_TICKS_PER_S' if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInTicks()': ../components/FastAccelStepper/src/RampGenerator.h:170:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:170:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:172:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:172:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInUs()': ../components/FastAccelStepper/src/RampGenerator.h:176:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:176:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:178:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:178:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h:50:37: error: 'TICKS_PER_S' was not declared in this scope ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:50:37: note: suggested alternative: 'UPM_TICKS_PER_S' ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_esp32.cpp:2: ../components/FastAccelStepper/src/FastAccelStepper.h: At global scope: ../components/FastAccelStepper/src/FastAccelStepper.h:468:30: error: 'MAX_STEPPER' was not declared in this scope FastAccelStepper* _stepper[MAX_STEPPER]; ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/StepperISR_esp32.cpp:2: ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint8_t StepperQueue::queueEntries()': ../components/FastAccelStepper/src/StepperISR.h:161:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:161:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:164:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:164:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts In file included from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_esp32.cpp:2: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int8_t StepperQueue::addQueueEntry(const stepper_command_s*, bool)': ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/StepperISR_esp32.cpp:2: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int32_t StepperQueue::getCurrentPosition()': ../components/FastAccelStepper/src/StepperISR.h:251:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:251:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:267:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:267:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint32_t StepperQueue::ticksInQueue()': ../components/FastAccelStepper/src/StepperISR.h:333:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:333:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:336:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:336:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'bool StepperQueue::hasTicksInQueue(uint32_t)': ../components/FastAccelStepper/src/StepperISR.h:355:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:355:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:358:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:358:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint16_t StepperQueue::getActualTicks()': ../components/FastAccelStepper/src/StepperISR.h:379:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:379:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:382:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:382:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts [7/31] Building CXX object esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/RampGenerator.cpp.obj FAILED: esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/RampGenerator.cpp.obj /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -Iconfig -I../components/FastAccelStepper/src -I/home/rizwan/esp/esp-idf/components/newlib/platform_include -I/home/rizwan/esp/esp-idf/components/freertos/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions/freertos -I/home/rizwan/esp/esp-idf/components/freertos/port/xtensa/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/rizwan/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/rizwan/esp/esp-idf/components/heap/include -I/home/rizwan/esp/esp-idf/components/log/include -I/home/rizwan/esp/esp-idf/components/lwip/include/apps -I/home/rizwan/esp/esp-idf/components/lwip/include/apps/sntp -I/home/rizwan/esp/esp-idf/components/lwip/lwip/src/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/rizwan/esp/esp-idf/components/soc/include -I/home/rizwan/esp/esp-idf/components/soc/esp32/. -I/home/rizwan/esp/esp-idf/components/soc/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/include -I/home/rizwan/esp/esp-idf/components/hal/platform_port/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include/esp32 -I/home/rizwan/esp/esp-idf/components/esp_rom/esp32 -I/home/rizwan/esp/esp-idf/components/esp_common/include -I/home/rizwan/esp/esp-idf/components/esp_system/include -I/home/rizwan/esp/esp-idf/components/esp_system/port/soc -I/home/rizwan/esp/esp-idf/components/esp_system/port/public_compat -I/home/rizwan/esp/esp-idf/components/esp32/include -I/home/rizwan/esp/esp-idf/components/xtensa/include -I/home/rizwan/esp/esp-idf/components/xtensa/esp32/include -I/home/rizwan/esp/esp-idf/components/driver/include -I/home/rizwan/esp/esp-idf/components/driver/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_pm/include -I/home/rizwan/esp/esp-idf/components/esp_ringbuf/include -I/home/rizwan/esp/esp-idf/components/efuse/include -I/home/rizwan/esp/esp-idf/components/efuse/esp32/include -I/home/rizwan/esp/esp-idf/components/vfs/include -I/home/rizwan/esp/esp-idf/components/esp_wifi/include -I/home/rizwan/esp/esp-idf/components/esp_event/include -I/home/rizwan/esp/esp-idf/components/esp_netif/include -I/home/rizwan/esp/esp-idf/components/esp_eth/include -I/home/rizwan/esp/esp-idf/components/tcpip_adapter/include -I/home/rizwan/esp/esp-idf/components/esp_phy/include -I/home/rizwan/esp/esp-idf/components/esp_phy/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_ipc/include -I/home/rizwan/esp/esp-idf/components/app_trace/include -I/home/rizwan/esp/esp-idf/components/esp_timer/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=/mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper=. -fmacro-prefix-map=/home/rizwan/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER="v4.4-dev-3636-g6438af2ef9" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/RampGenerator.cpp.obj -MF esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/RampGenerator.cpp.obj.d -o esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/RampGenerator.cpp.obj -c ../components/FastAccelStepper/src/RampGenerator.cpp In file included from ../components/FastAccelStepper/src/RampGenerator.h:22, from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/RampGenerator.cpp:3: ../components/FastAccelStepper/src/common.h:33:2: error: #error "Unsupported derivate" #error "Unsupported derivate" ^~~~~ In file included from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/RampGenerator.cpp:3: ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getSpeedInUs()': ../components/FastAccelStepper/src/RampGenerator.h:113:54: error: 'TICKS_PER_S' was not declared in this scope uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:113:54: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:116:37: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:116:37: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:126:21: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:126:21: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'int8_t RampGenerator::setSpeedInMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:138:32: error: 'TICKS_PER_S' was not declared in this scope if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:138:32: note: suggested alternative: 'UPM_TICKS_PER_S' if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInTicks()': ../components/FastAccelStepper/src/RampGenerator.h:170:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:170:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:172:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:172:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInUs()': ../components/FastAccelStepper/src/RampGenerator.h:176:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:176:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:178:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:178:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h:50:37: error: 'TICKS_PER_S' was not declared in this scope ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:50:37: note: suggested alternative: 'UPM_TICKS_PER_S' ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/RampGenerator.cpp:3: ../components/FastAccelStepper/src/FastAccelStepper.h: At global scope: ../components/FastAccelStepper/src/FastAccelStepper.h:468:30: error: 'MAX_STEPPER' was not declared in this scope FastAccelStepper* _stepper[MAX_STEPPER]; ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/RampGenerator.cpp:4: ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint8_t StepperQueue::queueEntries()': ../components/FastAccelStepper/src/StepperISR.h:161:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:161:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:164:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:164:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts In file included from ../components/FastAccelStepper/src/RampGenerator.cpp:3: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int8_t StepperQueue::addQueueEntry(const stepper_command_s*, bool)': ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/RampGenerator.cpp:4: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int32_t StepperQueue::getCurrentPosition()': ../components/FastAccelStepper/src/StepperISR.h:251:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:251:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:267:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:267:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint32_t StepperQueue::ticksInQueue()': ../components/FastAccelStepper/src/StepperISR.h:333:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:333:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:336:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:336:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'bool StepperQueue::hasTicksInQueue(uint32_t)': ../components/FastAccelStepper/src/StepperISR.h:355:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:355:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:358:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:358:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint16_t StepperQueue::getActualTicks()': ../components/FastAccelStepper/src/StepperISR.h:379:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:379:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:382:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:382:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.cpp: In member function 'void RampGenerator::init()': ../components/FastAccelStepper/src/RampGenerator.cpp:50:39: error: 'TICKS_PER_S' was not declared in this scope upm_timer_freq = upm_from((uint32_t)TICKS_PER_S); ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:50:39: note: suggested alternative: 'UPM_TICKS_PER_S' upm_timer_freq = upm_from((uint32_t)TICKS_PER_S); ^~~~~~~~~~~ UPM_TICKS_PER_S In file included from ../components/FastAccelStepper/src/RampGenerator.cpp:3: ../components/FastAccelStepper/src/RampGenerator.cpp: In member function 'int8_t RampGenerator::setSpeedInTicks(uint32_t)': ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:55:24: note: in expansion of macro 'MIN_DELTA_TICKS' if (min_step_ticks < MIN_DELTA_TICKS) { ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:55:24: note: in expansion of macro 'MIN_DELTA_TICKS' if (min_step_ticks < MIN_DELTA_TICKS) { ^~~~~~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/RampGenerator.cpp:3: ../components/FastAccelStepper/src/RampGenerator.cpp: In member function 'int8_t RampGenerator::setSpeedInUs(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:50:37: error: 'TICKS_PER_S' was not declared in this scope ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:66:22: note: in expansion of macro 'TICKS_TO_US' if (min_step_us >= TICKS_TO_US(0xffffffff)) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:50:37: note: suggested alternative: 'UPM_TICKS_PER_S' ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:66:22: note: in expansion of macro 'TICKS_TO_US' if (min_step_us >= TICKS_TO_US(0xffffffff)) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:46:37: error: 'TICKS_PER_S' was not declared in this scope ((uint32_t)((((uint32_t)((u32) * (TICKS_PER_S / 10000L))) / 100L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:69:29: note: in expansion of macro 'US_TO_TICKS' uint32_t min_step_ticks = US_TO_TICKS(min_step_us); ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:46:37: note: suggested alternative: 'UPM_TICKS_PER_S' ((uint32_t)((((uint32_t)((u32) * (TICKS_PER_S / 10000L))) / 100L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:69:29: note: in expansion of macro 'US_TO_TICKS' uint32_t min_step_ticks = US_TO_TICKS(min_step_us); ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp: In member function 'int8_t RampGenerator::setAcceleration(int32_t)': ../components/FastAccelStepper/src/RampGenerator.cpp:82:61: error: call of overloaded 'upm_from(int32_t&)' is ambiguous upm_divide(upm_shr(UPM_TICKS_PER_S, 1), upm_from(accel)); ^ In file included from ../components/FastAccelStepper/src/RampCalculator.h:3, from ../components/FastAccelStepper/src/RampGenerator.cpp:10: ../components/FastAccelStepper/src/PoorManFloat.h:19:11: note: candidate: 'upm_float upm_from(uint8_t)' upm_float upm_from(uint8_t x); ^~~~~~~~ ../components/FastAccelStepper/src/PoorManFloat.h:20:11: note: candidate: 'upm_float upm_from(uint16_t)' upm_float upm_from(uint16_t x); ^~~~~~~~ ../components/FastAccelStepper/src/PoorManFloat.h:21:11: note: candidate: 'upm_float upm_from(uint32_t)' upm_float upm_from(uint32_t x); ^~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:90:47: error: 'UPM_TICKS_PER_S_DIV_SQRT_OF_2' was not declared in this scope upm_rsqrt(upm_from((uint32_t)accel)), UPM_TICKS_PER_S_DIV_SQRT_OF_2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:90:47: note: suggested alternative: 'UPM_TICKS_PER_S_DIV_500' upm_rsqrt(upm_from((uint32_t)accel)), UPM_TICKS_PER_S_DIV_SQRT_OF_2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ UPM_TICKS_PER_S_DIV_500 ../components/FastAccelStepper/src/RampGenerator.cpp: In member function 'void RampGenerator::applySpeedAcceleration()': ../components/FastAccelStepper/src/RampGenerator.cpp:96:3: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:96:3: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.cpp:98:3: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:98:3: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.cpp: In member function 'int8_t RampGenerator::startRun(bool)': ../components/FastAccelStepper/src/RampGenerator.cpp:114:3: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:114:3: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.cpp:121:3: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:121:3: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.cpp: In member function 'int8_t RampGenerator::_startMove(int32_t, int32_t)': ../components/FastAccelStepper/src/RampGenerator.cpp:139:3: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:139:3: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.cpp:147:3: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:147:3: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.cpp: In function 'void _getNextCommand(const ramp_ro_s*, const ramp_rw_s*, const queue_end_s*, NextCommand*)': ../components/FastAccelStepper/src/RampGenerator.cpp:274:20: error: 'TICKS_PER_S' was not declared in this scope if (curr_ticks < TICKS_PER_S / 1000) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:274:20: note: suggested alternative: 'UPM_TICKS_PER_S' if (curr_ticks < TICKS_PER_S / 1000) { ^~~~~~~~~~~ UPM_TICKS_PER_S In file included from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/RampGenerator.cpp:3: ../components/FastAccelStepper/src/RampGenerator.h:42:33: error: 'upm_timer_freq_div_500' was not declared in this scope #define UPM_TICKS_PER_S_DIV_500 upm_timer_freq_div_500 ^~~~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:276:20: note: in expansion of macro 'UPM_TICKS_PER_S_DIV_500' upm_divide(UPM_TICKS_PER_S_DIV_500, upm_from(curr_ticks)); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/RampGenerator.cpp:3: ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:302:32: note: in expansion of macro 'MIN_CMD_TICKS' if (rw->curr_ticks < 2 * MIN_CMD_TICKS) { ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:302:32: note: in expansion of macro 'MIN_CMD_TICKS' if (rw->curr_ticks < 2 * MIN_CMD_TICKS) { ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:420:21: note: in expansion of macro 'MIN_CMD_TICKS' if (d_ticks_new < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:420:21: note: in expansion of macro 'MIN_CMD_TICKS' if (d_ticks_new < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp: In member function 'void RampGenerator::getNextCommand(const queue_end_s*, NextCommand*)': ../components/FastAccelStepper/src/RampGenerator.cpp:573:3: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:573:3: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.cpp:576:3: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.cpp:576:3: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts [8/31] Building CXX object esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/FastAccelStepper.cpp.obj FAILED: esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/FastAccelStepper.cpp.obj /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -Iconfig -I../components/FastAccelStepper/src -I/home/rizwan/esp/esp-idf/components/newlib/platform_include -I/home/rizwan/esp/esp-idf/components/freertos/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions/freertos -I/home/rizwan/esp/esp-idf/components/freertos/port/xtensa/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/rizwan/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/rizwan/esp/esp-idf/components/heap/include -I/home/rizwan/esp/esp-idf/components/log/include -I/home/rizwan/esp/esp-idf/components/lwip/include/apps -I/home/rizwan/esp/esp-idf/components/lwip/include/apps/sntp -I/home/rizwan/esp/esp-idf/components/lwip/lwip/src/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/rizwan/esp/esp-idf/components/soc/include -I/home/rizwan/esp/esp-idf/components/soc/esp32/. -I/home/rizwan/esp/esp-idf/components/soc/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/include -I/home/rizwan/esp/esp-idf/components/hal/platform_port/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include/esp32 -I/home/rizwan/esp/esp-idf/components/esp_rom/esp32 -I/home/rizwan/esp/esp-idf/components/esp_common/include -I/home/rizwan/esp/esp-idf/components/esp_system/include -I/home/rizwan/esp/esp-idf/components/esp_system/port/soc -I/home/rizwan/esp/esp-idf/components/esp_system/port/public_compat -I/home/rizwan/esp/esp-idf/components/esp32/include -I/home/rizwan/esp/esp-idf/components/xtensa/include -I/home/rizwan/esp/esp-idf/components/xtensa/esp32/include -I/home/rizwan/esp/esp-idf/components/driver/include -I/home/rizwan/esp/esp-idf/components/driver/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_pm/include -I/home/rizwan/esp/esp-idf/components/esp_ringbuf/include -I/home/rizwan/esp/esp-idf/components/efuse/include -I/home/rizwan/esp/esp-idf/components/efuse/esp32/include -I/home/rizwan/esp/esp-idf/components/vfs/include -I/home/rizwan/esp/esp-idf/components/esp_wifi/include -I/home/rizwan/esp/esp-idf/components/esp_event/include -I/home/rizwan/esp/esp-idf/components/esp_netif/include -I/home/rizwan/esp/esp-idf/components/esp_eth/include -I/home/rizwan/esp/esp-idf/components/tcpip_adapter/include -I/home/rizwan/esp/esp-idf/components/esp_phy/include -I/home/rizwan/esp/esp-idf/components/esp_phy/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_ipc/include -I/home/rizwan/esp/esp-idf/components/app_trace/include -I/home/rizwan/esp/esp-idf/components/esp_timer/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=/mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper=. -fmacro-prefix-map=/home/rizwan/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER="v4.4-dev-3636-g6438af2ef9" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/FastAccelStepper.cpp.obj -MF esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/FastAccelStepper.cpp.obj.d -o esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/FastAccelStepper.cpp.obj -c ../components/FastAccelStepper/src/FastAccelStepper.cpp In file included from ../components/FastAccelStepper/src/RampGenerator.h:22, from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/FastAccelStepper.cpp:1: ../components/FastAccelStepper/src/common.h:33:2: error: #error "Unsupported derivate" #error "Unsupported derivate" ^~~~~ In file included from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/FastAccelStepper.cpp:1: ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getSpeedInUs()': ../components/FastAccelStepper/src/RampGenerator.h:113:54: error: 'TICKS_PER_S' was not declared in this scope uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:113:54: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:116:37: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:116:37: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:126:21: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:126:21: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'int8_t RampGenerator::setSpeedInMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:138:32: error: 'TICKS_PER_S' was not declared in this scope if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:138:32: note: suggested alternative: 'UPM_TICKS_PER_S' if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInTicks()': ../components/FastAccelStepper/src/RampGenerator.h:170:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:170:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:172:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:172:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInUs()': ../components/FastAccelStepper/src/RampGenerator.h:176:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:176:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:178:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:178:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h:50:37: error: 'TICKS_PER_S' was not declared in this scope ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:50:37: note: suggested alternative: 'UPM_TICKS_PER_S' ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/FastAccelStepper.cpp:1: ../components/FastAccelStepper/src/FastAccelStepper.h: At global scope: ../components/FastAccelStepper/src/FastAccelStepper.h:468:30: error: 'MAX_STEPPER' was not declared in this scope FastAccelStepper* _stepper[MAX_STEPPER]; ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/FastAccelStepper.cpp:3: ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint8_t StepperQueue::queueEntries()': ../components/FastAccelStepper/src/StepperISR.h:161:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:161:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:164:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:164:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts In file included from ../components/FastAccelStepper/src/FastAccelStepper.cpp:1: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int8_t StepperQueue::addQueueEntry(const stepper_command_s*, bool)': ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/FastAccelStepper.cpp:3: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int32_t StepperQueue::getCurrentPosition()': ../components/FastAccelStepper/src/StepperISR.h:251:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:251:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:267:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:267:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint32_t StepperQueue::ticksInQueue()': ../components/FastAccelStepper/src/StepperISR.h:333:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:333:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:336:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:336:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'bool StepperQueue::hasTicksInQueue(uint32_t)': ../components/FastAccelStepper/src/StepperISR.h:355:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:355:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:358:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:358:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint16_t StepperQueue::getActualTicks()': ../components/FastAccelStepper/src/StepperISR.h:379:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:379:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:382:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:382:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'void FastAccelStepperEngine::init()': ../components/FastAccelStepper/src/FastAccelStepper.cpp:75:3: error: 'upm_timer_freq' was not declared in this scope upm_timer_freq = upm_from((uint32_t)TICKS_PER_S); ^~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:75:39: error: 'TICKS_PER_S' was not declared in this scope upm_timer_freq = upm_from((uint32_t)TICKS_PER_S); ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:75:39: note: suggested alternative: 'UPM_TICKS_PER_S' upm_timer_freq = upm_from((uint32_t)TICKS_PER_S); ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'bool FastAccelStepperEngine::isDirPinBusy(uint8_t, uint8_t)': ../components/FastAccelStepper/src/FastAccelStepper.cpp:94:27: error: 'MAX_STEPPER' was not declared in this scope for (uint8_t i = 0; i < MAX_STEPPER; i++) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:96:29: error: '_stepper' was not declared in this scope FastAccelStepper* s = _stepper[i]; ^~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:96:29: note: suggested alternative: '_ftell_r' FastAccelStepper* s = _stepper[i]; ^~~~~~~~ _ftell_r ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'FastAccelStepper* FastAccelStepperEngine::stepperConnectToPin(uint8_t)': ../components/FastAccelStepper/src/FastAccelStepper.cpp:112:27: error: 'MAX_STEPPER' was not declared in this scope for (uint8_t i = 0; i < MAX_STEPPER; i++) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:113:27: error: '_stepper' was not declared in this scope FastAccelStepper* s = _stepper[i]; ^~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:113:27: note: suggested alternative: '_ftell_r' FastAccelStepper* s = _stepper[i]; ^~~~~~~~ _ftell_r ../components/FastAccelStepper/src/FastAccelStepper.cpp:125:30: error: 'MAX_STEPPER' was not declared in this scope if (_next_stepper_num >= MAX_STEPPER) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:130:11: warning: unused variable 'stepper_num' [-Wunused-variable] uint8_t stepper_num = _next_stepper_num; ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'void FastAccelStepperEngine::manageSteppers()': ../components/FastAccelStepper/src/FastAccelStepper.cpp:164:27: error: '_stepper' was not declared in this scope FastAccelStepper* s = _stepper[i]; ^~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:164:27: note: suggested alternative: '_ftell_r' FastAccelStepper* s = _stepper[i]; ^~~~~~~~ _ftell_r ../components/FastAccelStepper/src/FastAccelStepper.cpp:172:27: error: '_stepper' was not declared in this scope FastAccelStepper* s = _stepper[i]; ^~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:172:27: note: suggested alternative: '_ftell_r' FastAccelStepper* s = _stepper[i]; ^~~~~~~~ _ftell_r ../components/FastAccelStepper/src/FastAccelStepper.cpp:214:27: error: '_stepper' was not declared in this scope FastAccelStepper* s = _stepper[i]; ^~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:214:27: note: suggested alternative: '_ftell_r' FastAccelStepper* s = _stepper[i]; ^~~~~~~~ _ftell_r ../components/FastAccelStepper/src/FastAccelStepper.cpp:216:7: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:216:7: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/FastAccelStepper.cpp:219:7: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:219:7: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts In file included from ../components/FastAccelStepper/src/FastAccelStepper.cpp:1: ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'int8_t FastAccelStepper::addQueueEntry(const stepper_command_s*, bool)': ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:243:20: note: in expansion of macro 'MIN_DELTA_TICKS' if (cmd->ticks < MIN_DELTA_TICKS) { ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:243:20: note: in expansion of macro 'MIN_DELTA_TICKS' if (cmd->ticks < MIN_DELTA_TICKS) { ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:263:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:263:5: note: suggested alternative: 'disableOutputs' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ disableOutputs ../components/FastAccelStepper/src/FastAccelStepper.cpp:265:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:265:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/FastAccelStepper.cpp:314:7: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:314:7: note: suggested alternative: 'disableOutputs' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ disableOutputs ../components/FastAccelStepper/src/FastAccelStepper.cpp:316:7: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:316:7: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'void FastAccelStepper::fill_queue()': ../components/FastAccelStepper/src/FastAccelStepper.cpp:363:28: error: 'TICKS_PER_S' was not declared in this scope ((ticksPrepared < TICKS_PER_S / 50) || q->queueEntries() <= 1) && ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:363:28: note: suggested alternative: 'UPM_TICKS_PER_S' ((ticksPrepared < TICKS_PER_S / 50) || q->queueEntries() <= 1) && ^~~~~~~~~~~ UPM_TICKS_PER_S In file included from ../components/FastAccelStepper/src/FastAccelStepper.cpp:1: ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'void FastAccelStepper::setDirectionPin(uint8_t, bool, uint16_t)': ../components/FastAccelStepper/src/FastAccelStepper.h:61:36: error: 'TICKS_PER_S' was not declared in this scope #define MAX_DIR_DELAY_US (65535 / (TICKS_PER_S / 1000000)) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:506:31: note: in expansion of macro 'MAX_DIR_DELAY_US' if (dir_change_delay_us > MAX_DIR_DELAY_US) { ^~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:61:36: note: suggested alternative: 'UPM_TICKS_PER_S' #define MAX_DIR_DELAY_US (65535 / (TICKS_PER_S / 1000000)) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:506:31: note: in expansion of macro 'MAX_DIR_DELAY_US' if (dir_change_delay_us > MAX_DIR_DELAY_US) { ^~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:60:27: note: in expansion of macro 'MIN_CMD_TICKS' #define MIN_DIR_DELAY_US (MIN_CMD_TICKS / (TICKS_PER_S / 1000000)) ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:509:31: note: in expansion of macro 'MIN_DIR_DELAY_US' if (dir_change_delay_us < MIN_DIR_DELAY_US) { ^~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:60:27: note: in expansion of macro 'MIN_CMD_TICKS' #define MIN_DIR_DELAY_US (MIN_CMD_TICKS / (TICKS_PER_S / 1000000)) ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:509:31: note: in expansion of macro 'MIN_DIR_DELAY_US' if (dir_change_delay_us < MIN_DIR_DELAY_US) { ^~~~~~~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/FastAccelStepper.cpp:1: ../components/FastAccelStepper/src/RampGenerator.h:46:37: error: 'TICKS_PER_S' was not declared in this scope ((uint32_t)((((uint32_t)((u32) * (TICKS_PER_S / 10000L))) / 100L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:512:31: note: in expansion of macro 'US_TO_TICKS' _dir_change_delay_ticks = US_TO_TICKS(dir_change_delay_us); ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:46:37: note: suggested alternative: 'UPM_TICKS_PER_S' ((uint32_t)((((uint32_t)((u32) * (TICKS_PER_S / 10000L))) / 100L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:512:31: note: in expansion of macro 'US_TO_TICKS' _dir_change_delay_ticks = US_TO_TICKS(dir_change_delay_us); ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'int8_t FastAccelStepper::setDelayToEnable(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:46:37: error: 'TICKS_PER_S' was not declared in this scope ((uint32_t)((((uint32_t)((u32) * (TICKS_PER_S / 10000L))) / 100L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:554:26: note: in expansion of macro 'US_TO_TICKS' uint32_t delay_ticks = US_TO_TICKS(delay_us); ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:46:37: note: suggested alternative: 'UPM_TICKS_PER_S' ((uint32_t)((((uint32_t)((u32) * (TICKS_PER_S / 10000L))) / 100L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:554:26: note: in expansion of macro 'US_TO_TICKS' uint32_t delay_ticks = US_TO_TICKS(delay_us); ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'int32_t FastAccelStepper::getCurrentSpeedInUs()': ../components/FastAccelStepper/src/FastAccelStepper.cpp:697:34: error: 'TICKS_PER_S' was not declared in this scope int32_t speed_in_us = ticks / (TICKS_PER_S / 1000000); ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:697:34: note: suggested alternative: 'UPM_TICKS_PER_S' int32_t speed_in_us = ticks / (TICKS_PER_S / 1000000); ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'int32_t FastAccelStepper::getCurrentSpeedInMilliHz()': ../components/FastAccelStepper/src/FastAccelStepper.cpp:713:42: error: 'TICKS_PER_S' was not declared in this scope speed_in_milli_hz = ((uint32_t)250 * TICKS_PER_S) / ticks * 4; ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:713:42: note: suggested alternative: 'UPM_TICKS_PER_S' speed_in_milli_hz = ((uint32_t)250 * TICKS_PER_S) / ticks * 4; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'void FastAccelStepper::setCurrentPosition(int32_t)': ../components/FastAccelStepper/src/FastAccelStepper.cpp:725:3: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:725:3: note: suggested alternative: 'disableOutputs' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ disableOutputs ../components/FastAccelStepper/src/FastAccelStepper.cpp:728:3: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:728:3: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'void FastAccelStepper::setPositionAfterCommandsCompleted(int32_t)': ../components/FastAccelStepper/src/FastAccelStepper.cpp:731:3: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:731:3: note: suggested alternative: 'disableOutputs' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ disableOutputs ../components/FastAccelStepper/src/FastAccelStepper.cpp:735:3: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:735:3: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts In file included from ../components/FastAccelStepper/src/FastAccelStepper.cpp:1: ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'void FastAccelStepper::forwardStep(bool)': ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:752:18: note: in expansion of macro 'MIN_CMD_TICKS' .ticks = MIN_CMD_TICKS, .steps = 1, .count_up = true}; ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:752:18: note: in expansion of macro 'MIN_CMD_TICKS' .ticks = MIN_CMD_TICKS, .steps = 1, .count_up = true}; ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp: In member function 'void FastAccelStepper::backwardStep(bool)': ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:765:20: note: in expansion of macro 'MIN_CMD_TICKS' .ticks = MIN_CMD_TICKS, .steps = 1, .count_up = false}; ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.cpp:765:20: note: in expansion of macro 'MIN_CMD_TICKS' .ticks = MIN_CMD_TICKS, .steps = 1, .count_up = false}; ^~~~~~~~~~~~~ [9/31] Building CXX object esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32_espidfv4.4.cpp.obj FAILED: esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32_espidfv4.4.cpp.obj /home/rizwan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -Iconfig -I../components/FastAccelStepper/src -I/home/rizwan/esp/esp-idf/components/newlib/platform_include -I/home/rizwan/esp/esp-idf/components/freertos/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions/freertos -I/home/rizwan/esp/esp-idf/components/freertos/port/xtensa/include -I/home/rizwan/esp/esp-idf/components/freertos/include/esp_additions -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc -I/home/rizwan/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/rizwan/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/rizwan/esp/esp-idf/components/heap/include -I/home/rizwan/esp/esp-idf/components/log/include -I/home/rizwan/esp/esp-idf/components/lwip/include/apps -I/home/rizwan/esp/esp-idf/components/lwip/include/apps/sntp -I/home/rizwan/esp/esp-idf/components/lwip/lwip/src/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include -I/home/rizwan/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/rizwan/esp/esp-idf/components/soc/include -I/home/rizwan/esp/esp-idf/components/soc/esp32/. -I/home/rizwan/esp/esp-idf/components/soc/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/esp32/include -I/home/rizwan/esp/esp-idf/components/hal/include -I/home/rizwan/esp/esp-idf/components/hal/platform_port/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include -I/home/rizwan/esp/esp-idf/components/esp_rom/include/esp32 -I/home/rizwan/esp/esp-idf/components/esp_rom/esp32 -I/home/rizwan/esp/esp-idf/components/esp_common/include -I/home/rizwan/esp/esp-idf/components/esp_system/include -I/home/rizwan/esp/esp-idf/components/esp_system/port/soc -I/home/rizwan/esp/esp-idf/components/esp_system/port/public_compat -I/home/rizwan/esp/esp-idf/components/esp32/include -I/home/rizwan/esp/esp-idf/components/xtensa/include -I/home/rizwan/esp/esp-idf/components/xtensa/esp32/include -I/home/rizwan/esp/esp-idf/components/driver/include -I/home/rizwan/esp/esp-idf/components/driver/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_pm/include -I/home/rizwan/esp/esp-idf/components/esp_ringbuf/include -I/home/rizwan/esp/esp-idf/components/efuse/include -I/home/rizwan/esp/esp-idf/components/efuse/esp32/include -I/home/rizwan/esp/esp-idf/components/vfs/include -I/home/rizwan/esp/esp-idf/components/esp_wifi/include -I/home/rizwan/esp/esp-idf/components/esp_event/include -I/home/rizwan/esp/esp-idf/components/esp_netif/include -I/home/rizwan/esp/esp-idf/components/esp_eth/include -I/home/rizwan/esp/esp-idf/components/tcpip_adapter/include -I/home/rizwan/esp/esp-idf/components/esp_phy/include -I/home/rizwan/esp/esp-idf/components/esp_phy/esp32/include -I/home/rizwan/esp/esp-idf/components/esp_ipc/include -I/home/rizwan/esp/esp-idf/components/app_trace/include -I/home/rizwan/esp/esp-idf/components/esp_timer/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=/mnt/sda2/Insync/[email protected]/Google-Drive/SEMPHOS/Projects/OnGoing/ValarSystems/Rizwan/Project_v5/model-h-idf-fastaccelstepper=. -fmacro-prefix-map=/home/rizwan/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER="v4.4-dev-3636-g6438af2ef9" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32_espidfv4.4.cpp.obj -MF esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32_espidfv4.4.cpp.obj.d -o esp-idf/FastAccelStepper/CMakeFiles/__idf_FastAccelStepper.dir/src/StepperISR_esp32_espidfv4.4.cpp.obj -c ../components/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp In file included from ../components/FastAccelStepper/src/RampGenerator.h:22, from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp:2: ../components/FastAccelStepper/src/common.h:33:2: error: #error "Unsupported derivate" #error "Unsupported derivate" ^~~~~ In file included from ../components/FastAccelStepper/src/FastAccelStepper.h:16, from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp:2: ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getSpeedInUs()': ../components/FastAccelStepper/src/RampGenerator.h:113:54: error: 'TICKS_PER_S' was not declared in this scope uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:113:54: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t getSpeedInUs() { return speed_in_ticks / (TICKS_PER_S / 1000000); } ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:116:37: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:116:37: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = (uint32_t)250 * TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::divForHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:126:21: error: 'TICKS_PER_S' was not declared in this scope uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:126:21: note: suggested alternative: 'UPM_TICKS_PER_S' uint32_t base = TICKS_PER_S; ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'int8_t RampGenerator::setSpeedInMilliHz(uint32_t)': ../components/FastAccelStepper/src/RampGenerator.h:138:32: error: 'TICKS_PER_S' was not declared in this scope if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:138:32: note: suggested alternative: 'UPM_TICKS_PER_S' if (speed_mhz <= (1000LL * TICKS_PER_S / 0xffffffff + 1)) { ^~~~~~~~~~~ UPM_TICKS_PER_S ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInTicks()': ../components/FastAccelStepper/src/RampGenerator.h:170:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:170:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:172:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:172:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h: In member function 'uint32_t RampGenerator::getCurrentPeriodInUs()': ../components/FastAccelStepper/src/RampGenerator.h:176:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:176:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/RampGenerator.h:178:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:178:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/RampGenerator.h:50:37: error: 'TICKS_PER_S' was not declared in this scope ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:50:37: note: suggested alternative: 'UPM_TICKS_PER_S' ((uint32_t)((((uint32_t)((u32) / (TICKS_PER_S / 1000000L))) / 1L))) ^~~~~~~~~~~ ../components/FastAccelStepper/src/RampGenerator.h:179:12: note: in expansion of macro 'TICKS_TO_US' return TICKS_TO_US(ticks); ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp:2: ../components/FastAccelStepper/src/FastAccelStepper.h: At global scope: ../components/FastAccelStepper/src/FastAccelStepper.h:468:30: error: 'MAX_STEPPER' was not declared in this scope FastAccelStepper* _stepper[MAX_STEPPER]; ^~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp:2: ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint8_t StepperQueue::queueEntries()': ../components/FastAccelStepper/src/StepperISR.h:161:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:161:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:164:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:164:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts In file included from ../components/FastAccelStepper/src/StepperISR.h:9, from ../components/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp:2: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int8_t StepperQueue::addQueueEntry(const stepper_command_s*, bool)': ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: error: 'TICKS_PER_S' was not declared in this scope #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:59:26: note: suggested alternative: 'UPM_TICKS_PER_S' #define MIN_DELTA_TICKS (TICKS_PER_S / 50000) ^~~~~~~~~~~ ../components/FastAccelStepper/src/FastAccelStepper.h:64:29: note: in expansion of macro 'MIN_DELTA_TICKS' #define MIN_CMD_TICKS (10 * MIN_DELTA_TICKS) ^~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:195:30: note: in expansion of macro 'MIN_CMD_TICKS' if (command_rate_ticks < MIN_CMD_TICKS) { ^~~~~~~~~~~~~ In file included from ../components/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp:2: ../components/FastAccelStepper/src/StepperISR.h: In member function 'int32_t StepperQueue::getCurrentPosition()': ../components/FastAccelStepper/src/StepperISR.h:251:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:251:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:267:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:267:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint32_t StepperQueue::ticksInQueue()': ../components/FastAccelStepper/src/StepperISR.h:333:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:333:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:336:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:336:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'bool StepperQueue::hasTicksInQueue(uint32_t)': ../components/FastAccelStepper/src/StepperISR.h:355:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:355:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:358:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:358:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ../components/FastAccelStepper/src/StepperISR.h: In member function 'uint16_t StepperQueue::getActualTicks()': ../components/FastAccelStepper/src/StepperISR.h:379:5: error: 'fasDisableInterrupts' was not declared in this scope fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:379:5: note: suggested alternative: 'interrupts' fasDisableInterrupts(); ^~~~~~~~~~~~~~~~~~~~ interrupts ../components/FastAccelStepper/src/StepperISR.h:382:5: error: 'fasEnableInterrupts' was not declared in this scope fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ ../components/FastAccelStepper/src/StepperISR.h:382:5: note: suggested alternative: 'noInterrupts' fasEnableInterrupts(); ^~~~~~~~~~~~~~~~~~~ noInterrupts ninja: build stopped: subcommand failed. ninja failed with exit code 1

RizwanHamid avatar Nov 16 '21 21:11 RizwanHamid

Thanks for testing. Similar errors I have already fixed using platformio with espidf, but compilation under idf seems to be still different. Seems I need to install the toolchain to debug this.

gin66 avatar Nov 17 '21 04:11 gin66

Working with ESP-IDF v4.4.2-378-g9269a536ac, I have a lightly patched version of FAS here that builds fine after performing some cleanup and re-ordering of defines.

A test project can be found here, ~~though it seems that the use of the RMT is broken (tested by disabling SUPPORT_ESP32_MCPWM_PCNT in common.h, after which the stepper motor does not turn).~~

This was a quick experiment to test if it was possible to build directly under ESP-IDF, but I probably will move to using the Arduino component.

JustinOng avatar Oct 05 '22 13:10 JustinOng

Thanks for the info and I will later clone your repo with the test project. Hope I can make it run under github actions as testbed

gin66 avatar Oct 05 '22 22:10 gin66

It would be great to maintain IDF compatbility!

Upon further testing, it seems like commenting out SUPPORT_ESP32_MCPWM_PCNT is not a good way to test the operation of the RMT. Initialising six stepper objects by calling stepperConnectToPin with dummy pins, then one more object connected to my actual stepper does turn the stepper, so RMT support is also functional.

JustinOng avatar Oct 06 '22 12:10 JustinOng

the version 0.29.2 allows to directly selected the rmt module. 0.29.2 will be released in a couple of days…giving arduino library manager time to clarify their issue with releases.

gin66 avatar May 13 '23 21:05 gin66