Welcome to MattzoBricks › Forums › MattzoTrainController for Bluetooth (MTC4BT) › Compile Probleme
- This topic has 4 replies, 3 voices, and was last updated 3 months, 1 week ago by
Thorsten.
-
AuthorPosts
-
-
February 14, 2025 at 14:51 #8303
Thorsten
ParticipantHi,
kann jemand was mit dem Fehler anfangen ?:
Kommt wenn ich den Upload mit dem Seeed Xiao esp32-S3 machen will…Compiling .pio\build\seeed_xiao_esp32s3\FrameworkArduino\FunctionalInterrupt.cpp.o
lib/MController/MCChannelController.cpp: In member function ‘bool MCChannelController::UpdateCurrentPwrPerc()’:
lib/MController/MCChannelController.cpp:126:36: error: ‘DRIVERTASKDELAY’ was not declared in this scope
int16_t correctedStp = (pwrStep * DRIVERTASKDELAY) / 250;
^~~~~~~~~~~~~~~
lib/MController/MCChannelController.cpp:126:36: note: suggested alternative: ‘traceTASK_DELAY’
int16_t correctedStp = (pwrStep * DRIVERTASKDELAY) / 250;
^~~~~~~~~~~~~~~
traceTASK_DELAY
*** [.pio\build\seeed_xiao_esp32s3\lib5cf\MController\MCChannelController.cpp.o] Error 1
=================================== [FAILED] Took 18.03 seconds ===================================Environment Status Duration
—————— ——– ————
seeed_xiao_esp32s3 FAILED 00:00:18.032
============================== 1 failed, 0 succeeded in 00:00:18.032 ============================== -
February 14, 2025 at 15:10 #8304
Joos Buijs
KeymasterHi Thorsten,
This is a known issue, I encountered this myself last night (see https://github.com/Mattzobricks/MattzoControllers/issues/141), it should be fixed as of yesterday evening (thanks @Hilbert!).
You can also fix this by setting the DRIVERTASKDELAY variable, refer to my_platformio.ini.example and add this to your my_platformio.ini.
Hope this helps!
-
February 14, 2025 at 15:12 #8305
Thorsten
Participantwie mache ich das ?
-
February 14, 2025 at 17:49 #8306
Matthias Runte
KeymasterThorsten, vielen Dank für diesen hilfreichen Report.
Hier ist eine Prozedur, die helfen sollte:
– my_platformio.ini neu mit der Beispieldatei my_platformio.ini.example überschreiben (vorher Backup falls dort etwas wichtiges drin stand).
– Das Semikolon vor “DRIVERTASKDELAY” entfernen.
– Das platform ui Projekt neu auswählen (in der Toolbar unten auf “env:…” klicken.Dann sollte es funktionieren.
Wir werden das mit V1.2.1 und nachfolgend abmildern. Die genannte Anpassung wird dann nicht mehr notwendig sein.
-
February 14, 2025 at 18:14 #8307
Thorsten
ParticipantDanke dir 🙂
-
-
AuthorPosts
- You must be logged in to reply to this topic.