Arduino Uno R4 MINIMA-Code kompiliert keine Bibliothek. MFRC522 behauptet, auf avr zu laufen

Hierfür habe ich Google Translate verwendet, die ursprüngliche Nachricht unten ist auf Englisch. Ich versuche, dies auf einem neueren Arduino-Board zum Laufen zu bringen. Ich verwende das klassische Setup in der Arduino IDE 2.3.2. Habe die IDE von ardruino.cc heruntergeladen, nicht von Windows.

Ich habe die Datei „constants.hpp“ bearbeitet und „#define TonUINO_Classic“ auskommentiert.
Ich habe die Datei „platform.local.txt“ an den richtigen Speicherort verschoben und die IDE neu gestartet. „WARNING: library MFRC522 claims to run on avr, megaavr, STM32F1, teensy, esp8266, esp32, samd, atmelsam architecture(s) and may be incompatible with your current board which runs on renesas_uno architecture(s).“ gefolgt von vielen Fehlermeldungen.

Bedeutet das, dass der Code nicht funktioniert?

Ich habe versucht, das Board auf Arduino Uno umzustellen, und erhalte eine andere Fehlermeldung:

In file included from C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\tonuino.hpp:11:0,
                 from C:\Users\dilul\Documents\Arduino\TonUINO-TNG\TonUINO-TNG.ino:1:
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:27:34: error: 'Mp3ChipIncongruousNoAck' was not declared in this scope
 #define DFMiniMp3_T_CHIP_VARIANT Mp3ChipIncongruousNoAck
                                  ^
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:32:48: note: in expansion of macro 'DFMiniMp3_T_CHIP_VARIANT'
 using DfMp3 = DFMiniMp3<SerialType, Mp3Notify, DFMiniMp3_T_CHIP_VARIANT, 4000>;
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:27:34: note: suggested alternative: 'DFMiniMp3_T_CHIP_Mp3ChipIncongruousNoAck'
 #define DFMiniMp3_T_CHIP_VARIANT Mp3ChipIncongruousNoAck
                                  ^
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:32:48: note: in expansion of macro 'DFMiniMp3_T_CHIP_VARIANT'
 using DfMp3 = DFMiniMp3<SerialType, Mp3Notify, DFMiniMp3_T_CHIP_VARIANT, 4000>;
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:32:78: error: wrong number of template arguments (4, should be 2)
 using DfMp3 = DFMiniMp3<SerialType, Mp3Notify, DFMiniMp3_T_CHIP_VARIANT, 4000>;
                                                                              ^
In file included from C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:6:0,
                 from C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\tonuino.hpp:11,
                 from C:\Users\dilul\Documents\Arduino\TonUINO-TNG\TonUINO-TNG.ino:1:
C:\Users\dilul\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h:84:68: note: provided for 'template<class T_SERIAL_METHOD, class T_NOTIFICATION_METHOD> class DFMiniMp3'
 template<class T_SERIAL_METHOD, class T_NOTIFICATION_METHOD> class DFMiniMp3
                                                                    ^~~~~~~~~
In file included from C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\tonuino.hpp:11:0,
                 from C:\Users\dilul\Documents\Arduino\TonUINO-TNG\TonUINO-TNG.ino:1:
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:172:36: error: 'DfMp3' has not been declared
   static void OnError             (DfMp3&, uint16_t errorCode);
                                    ^~~~~
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:173:36: error: 'DfMp3' has not been declared
   static void OnPlayFinished      (DfMp3&, DfMp3_PlaySources source, uint16_t track);
                                    ^~~~~
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:174:36: error: 'DfMp3' has not been declared
   static void OnPlaySourceOnline  (DfMp3&, DfMp3_PlaySources source);
                                    ^~~~~
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:175:36: error: 'DfMp3' has not been declared
   static void OnPlaySourceInserted(DfMp3&, DfMp3_PlaySources source);
                                    ^~~~~
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:176:36: error: 'DfMp3' has not been declared
   static void OnPlaySourceRemoved (DfMp3&, DfMp3_PlaySources source);
                                    ^~~~~
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:184:25: error: expected class-name before '{' token
 class Mp3: public DfMp3 {
                         ^
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:186:16: error: 'DfMp3' does not name a type; did you mean 'Mp3'?
   using Base = DfMp3;
                ^~~~~
                Mp3
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp: In member function 'void Mp3::start()':
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:218:50: error: 'Base' has not been declared
   void start() { if (isPause) { isPause = false; Base::start();} }
                                                  ^~~~
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp: In member function 'void Mp3::stop()':
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:219:35: error: 'Base' has not been declared
   void stop () { isPause = false; Base::stop (); }
                                   ^~~~
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp: In member function 'void Mp3::pause()':
C:\Users\dilul\Documents\Arduino\TonUINO-TNG\src\mp3.hpp:220:35: error: 'Base' has not been declared
   void pause() { isPause = true ; Base::pause(); }
                                   ^~~~

exit status 1

Compilation error: 'Mp3ChipIncongruousNoAck' was not declared in this scope

Used google translate for this, original message below in English. Trying to get this to work on a newer Arduino board. I am using the classic setup in the Arduino IDE 2.3.2. Downloaded the IDE from ardruino.cc not windows.

I edited the constants.hpp file and uncommented „#define TonUINO_Classic“
I moved the platform.local.txt file to the correct location and restarted the IDE.

I get the following „WARNING: library MFRC522 claims to run on avr, megaavr, STM32F1, teensy, esp8266, esp32, samd, atmelsam architecture(s) and may be incompatible with your current board which runs on renesas_uno architecture(s).“ followed by a lot of error messages.

Does this mean the code won’t work?

I tried switching the board to Arduino Uno and get a different error:

I have tried the other three configurations, they all give different errors.

Die mfrc522 Bibliothek ist (noch) nicht kompatibel mit dem Uno R4.
Siehe: mfrc522