You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to build Marlin bugfix-2.1.x for MKS TinyBee board I get error
In file included from /home/kraplax/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/portable.h:94:0,
from /home/kraplax/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/FreeRTOS.h:105,
from /home/kraplax/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:32,
from Marlin/src/libs/../inc/../HAL/./ESP32/../shared/Marduino.h:36,
from Marlin/src/libs/../inc/../HAL/./ESP32/HAL.h:30,
from Marlin/src/libs/../inc/../HAL/HAL.h:30,
from Marlin/src/libs/../inc/MarlinConfig.h:31,
from Marlin/src/libs/buzzer.cpp:23:
Marlin/src/libs/buzzer.cpp: In static member function 'static void Buzzer::tick()':
Marlin/src/libs/../inc/../HAL/./ESP32/HAL.h:63:54: error: 'spinlock' was not declared in this scope
#define CRITICAL_SECTION_START() portENTER_CRITICAL(&spinlock)
^
/home/kraplax/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/portmacro.h:232:59: note: in definition of macro 'portENTER_CRITICAL'
#define portENTER_CRITICAL(mux) vTaskEnterCritical(mux)
^
Marlin/src/libs/buzzer.cpp:73:9: note: in expansion of macro 'CRITICAL_SECTION_START'
CRITICAL_SECTION_START();
^
I have tried with 2.1 and the error is pretty much the same.
Ok, I have managed to strip down all the unrelated changes and it seems like build fails for BOARD_MKS_TINYBEE when MKS_MINI_12864 and SPEAKER are enabled.
I'll update the issue to reflect that.
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
When attempting to build Marlin bugfix-2.1.x for MKS TinyBee board I get error
I have tried with 2.1 and the error is pretty much the same.
Bug Timeline
MKS TinyBee support introduced in 2.0.9.3
Somewhere between 2.0.9.3 and 2.0.9.4 this
extern
was removed:https://github.com/MarlinFirmware/Marlin/blame/2.0.9.3/Marlin/src/HAL/ESP32/HAL.h#L52 which, according to my understanding, led to this error.
I have hunted down the issue root cause and it seem to be this PR with HAL refactoring by @thinkyhead
Expected behavior
I expected Marlin firmware to either build, or provide me with hints on which config parameters to alter so that it can be built.
Actual behavior
Build failed with obscure compilation error
Steps to Reproduce
MOTHERBOARD
toBOARD_MKS_TINYBEE
MKS_MINI_12864
andSPEAKER
supportdefault_envs = mks_tinybee
in platformio.inipio run
Version of Marlin Firmware
2.1, also bugfix-2.1.x
Don't forget to include
A ZIP file containing your
Configuration.h
.Marlin.zip
A ZIP file containing
git diff
output.git_diff.zip
The text was updated successfully, but these errors were encountered: