lib/Grbl_Esp32/src/Serial.cpp: In function 'void clientCheckTask(void*)':
lib/Grbl_Esp32/src/Serial.cpp:118:21: error: 'vTaskEnterCritical' was not declared in this scope
vTaskEnterCritical(&myMutex);
^~~~~~~~~~~~~~~~~~
lib/Grbl_Esp32/src/Serial.cpp:118:21: note: suggested alternative: 'vPortEnterCritical'
vTaskEnterCritical(&myMutex);
^~~~~~~~~~~~~~~~~~
vPortEnterCritical
lib/Grbl_Esp32/src/Serial.cpp:120:21: error: 'vTaskExitCritical' was not declared in this scope
vTaskExitCritical(&myMutex);
^~~~~~~~~~~~~~~~~
lib/Grbl_Esp32/src/Serial.cpp:120:21: note: suggested alternative: 'vPortExitCritical'
vTaskExitCritical(&myMutex);
^~~~~~~~~~~~~~~~~
vPortExitCritical
lib/Grbl_Esp32/src/Serial.cpp: In function 'int client_read(uint8_t)':
lib/Grbl_Esp32/src/Serial.cpp:143:5: error: 'vTaskEnterCritical' was not declared in this scope
vTaskEnterCritical(&myMutex);
^~~~~~~~~~~~~~~~~~
lib/Grbl_Esp32/src/Serial.cpp:143:5: note: suggested alternative: 'vPortEnterCritical'
vTaskEnterCritical(&myMutex);
^~~~~~~~~~~~~~~~~~
vPortEnterCritical
lib/Grbl_Esp32/src/Serial.cpp:145:5: error: 'vTaskExitCritical' was not declared in this scope
vTaskExitCritical(&myMutex);
^~~~~~~~~~~~~~~~~
lib/Grbl_Esp32/src/Serial.cpp:145:5: note: suggested alternative: 'vPortExitCritical'
vTaskExitCritical(&myMutex);
^~~~~~~~~~~~~~~~~
vPortExitCritical
*** [.pio\build\esp32dev\libace\Grbl_Esp32\Serial.cpp.o] Error 1
I’m not very familar with platformio and/or vstudio… Is Full Clean a custom command? A build flag? Where to put it?
The new version of the code compiles with 6.5.0 but has issues with I2S so I decided to keep 3.0.0 for now.
vTaskEnterCritical should be changed to portENTERcritical etc. Also some GPIO settings need to be changed.
But as said even if it does compile, there where changes made to I2S that produce slower readings. And also some problems with task/interrupt priorities occur with newer versions. Pretty messed up to fix it all while having so much to do…
No, that should not be the cause.
You said that several / different users are affected.
What are the differences? Different operating systems etc?
What else you could try (to get rid of old ballast) would be
Exit VSCode
Delete the folders %homedir%/.platformio/platforms/espressif....
Possibly even delete the corresponding subfolders in the folder %homedir%/.platformio/packages/....
The necessary files are automatically reinstalled when VS-Code is restarted. Everything should then be clean.
Everything tried. Deleting .platformio, .pio and .vscode does not help.
The error is the same for those who encounter it. Error seems to affect windows users.
At least those I know from use Windows.
It is not my build but this is the platformio.ini file used:
[env:esp32dev]
lib_ldf_mode = deep+
platform = espressif32@3.0.0
;platform = espressif32@6.5.0 ; not working.. i2S and interrupt problems
board = esp32dev
framework = arduino ;framework-arduinoespressif32 @ 3.10006.210326 (1.0.6)
monitor_speed = 115200
lib_deps =
bodmer/TFT_eSPI@2.5.33
;EEPROM
;SD(esp32) @ 1.0.5
;SD(esp32) @ 2.0.0
;SPIFFS
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.partitions = min_spiffs.csv
build_src_filter =
+<.h> +<.s> +<.S> +<.cpp> +<*.c> +<src/>
-<.git/> -<data/> -<test/> -<tests/>
build_flags =
-DUSE_FULL_LL_DRIVER
-DCORE_DEBUG_LEVEL=0
-Wno-unused-variable
-Wno-unused-function
;###############################################################
; TFT_eSPI library settings (no need to edit the library files):
;###############################################################
-D TFT_MISO=19
-D TFT_MOSI=23
-D TFT_SCLK=18
-D TFT_CS=2
-D TFT_DC=15
-D TFT_RST=4
-D TOUCH_CS=21
-D USER_SETUP_LOADED=1
-D ILI9341_DRIVER=1
;-D TFT_WIDTH=240
;-D TFT_HEIGHT=320
-D LOAD_GLCD=1
-D LOAD_FONT2=1
-D LOAD_FONT4=1
-D SMOOTH_FONT=1
-D SPI_FREQUENCY=64000000
-D SPI_READ_FREQUENCY=20000000
;-D SPI_TOUCH_FREQUENCY=2500000
-D SPI_TOUCH_FREQUENCY=6000000
-D SUPPORT_TRANSACTIONS=1
-Isrc
Sry for the fragmented images. That is just the way I get the errors. Requested the full log now. Now It looks like I have reached the maximum number of posts possible on the first day.
Full error log:
github.com
Executing task: C:\Users\myuser\.platformio\penv\Scripts\platformio.exe run --verbose --environment esp32dev
Processing esp32dev (lib_ldf_mode: deep+; platform: espressif32@3.0.0; board: esp32dev; framework: arduino; monitor_speed: 115200; lib_deps: bodmer/TFT_eSPI@2.5.33; board_build.f_cpu: 240000000L; board_build.f_flash: 80000000L; board_build.flash_mode: qio; board_build.partitions: min_spiffs.csv; build_src_filter: +<*.h> +<*.s> +<*.S> +<*.cpp> +<*.c> +<src/>, -<.git/> -<data/> -<test/> -<tests/>; build_flags: -DUSE_FULL_LL_DRIVER, -DCORE_DEBUG_LEVEL=0, -Wno-unused-variable, -Wno-unused-function, -D TFT_MISO=19, -D TFT_MOSI=23, -D TFT_SCLK=18, -D TFT_CS=2, -D TFT_DC=15, -D TFT_RST=4, -D TOUCH_CS=21, -D USER_SETUP_LOADED=1, -D ILI9341_DRIVER=1, -D LOAD_GLCD=1, -D LOAD_FONT2=1, -D LOAD_FONT4=1, -D SMOOTH_FONT=1, -D SPI_FREQUENCY=64000000, -D SPI_READ_FREQUENCY=20000000, -D SPI_TOUCH_FREQUENCY=6000000, -D SUPPORT_TRANSACTIONS=1)
------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.0.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.10004.210126 (1.0.4)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- toolchain-xtensa32 @ 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ deep+, Compatibility ~ soft
Found 29 compatible libraries
Scanning dependencies...
Warning! Classic Pre Processor is used for `D:\edm_build\G-edm_data\Gedm_Scope_version\GEDM-GRBL-gscope-2.0.1\GEDM-GRBL-gscope-2.0.1\lib\GEDM\config\definitions.cpp`, advanced has failed with `'charmap' codec can't decode byte 0x90 in position 9967: character maps to <undefined>`
Warning! Classic Pre Processor is used for `D:\edm_build\G-edm_data\Gedm_Scope_version\GEDM-GRBL-gscope-2.0.1\GEDM-GRBL-gscope-2.0.1\lib\GEDM\gedm_api\api.cpp`, advanced has failed with `'charmap' codec can't decode byte 0x90 in position 9967: character maps to <undefined>`
Warning! Classic Pre Processor is used for `D:\edm_build\G-edm_data\Gedm_Scope_version\GEDM-GRBL-gscope-2.0.1\GEDM-GRBL-gscope-2.0.1\lib\GEDM\gedm_api\probing_routines.cpp`, advanced has failed with `'charmap' codec can't decode byte 0x90 in position 9967: character maps to <undefined>`
Warning! Classic Pre Processor is used for `D:\edm_build\G-edm_data\Gedm_Scope_version\GEDM-GRBL-gscope-2.0.1\GEDM-GRBL-gscope-2.0.1\lib\GEDM\gedm_dpm_driver\gedm_dpm_driver.cpp`, advanced has failed with `'charmap' codec can't decode byte 0x90 in position 6665: character maps to <undefined>`
Warning! Classic Pre Processor is used for `D:\edm_build\G-edm_data\Gedm_Scope_version\GEDM-GRBL-gscope-2.0.1\GEDM-GRBL-gscope-2.0.1\lib\GEDM\gedm_motor\gedm_stepper.cpp`, advanced has failed with `'charmap' codec can't decode byte 0x90 in position 9967: character maps