Software SPI on ATMega4809 using SDFat

Hello,
I have two Sensors (Adafruit LIS3DH) and I want to save the Sensor Data on a SD Card (Adapter: DFRobot DFR0229) using an Arduino Nano Every.
When the SD Card is not initiated, I have no problem reading the Sensor Data, but as soon as I start the SD Card, i get only 0’s (If you think the problem is there, I can also post my code).
To solve this Problem, I try to use Software SPI (the example in SDFat Library) for the SD Card but it doesnt work. Because the ATmega4809 is not defined, I used to get the error: “Unknown Board type”. After defining the ATmega4809 (GpioPinMap is attached), I get this error Message:

Generating function prototypes...
"C:\\Users\\till1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10814 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\till1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.6\\cores\\arduino/api/deprecated" "-IC:\\Users\\till1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.6\\cores\\arduino" "-IC:\\Users\\till1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.6\\variants\\nona4809" "-IC:\\Users\\till1\\Documents\\Arduino\\libraries\\SdFat\\src" "C:\\Users\\till1\\AppData\\Local\\Temp\\arduino_build_410827\\sketch\\SoftwareSpi.ino.cpp" -o "C:\\Users\\till1\\AppData\\Local\\Temp\\arduino_build_410827\\preproc\\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE
"C:\\Users\\till1\\OneDrive\\Dokumente\\Uni\\Semester 11\\Masterthesis\\Software\\arduino-nightly\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\till1\\AppData\\Local\\Temp\\arduino_build_410827\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"C:\\Users\\till1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10814 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\till1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.6\\cores\\arduino/api/deprecated" "-IC:\\Users\\till1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.6\\cores\\arduino" "-IC:\\Users\\till1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.6\\variants\\nona4809" "-IC:\\Users\\till1\\Documents\\Arduino\\libraries\\SdFat\\src" "C:\\Users\\till1\\AppData\\Local\\Temp\\arduino_build_410827\\sketch\\SoftwareSpi.ino.cpp" -o "C:\\Users\\till1\\AppData\\Local\\Temp\\arduino_build_410827\\sketch\\SoftwareSpi.ino.cpp.o"
In file included from c:\users\till1\documents\arduino\libraries\sdfat\src\digitalio\softspi.h:30:0,
                 from c:\users\till1\documents\arduino\libraries\sdfat\src\spidriver\SdSpiSoftDriver.h:31,
                 from c:\users\till1\documents\arduino\libraries\sdfat\src\spidriver\sdspidriver.h:136,
                 from C:\Users\till1\Documents\Arduino\libraries\SdFat\src/SdCard/SdSpiCard.h:35,
                 from C:\Users\till1\Documents\Arduino\libraries\SdFat\src/SdCard/SdCard.h:28,
                 from C:\Users\till1\Documents\Arduino\libraries\SdFat\src/SdFat.h:32,
                 from C:\Users\till1\AppData\Local\Temp\arduino_modified_sketch_779352\SoftwareSpi.ino:6:
c:\users\till1\documents\arduino\libraries\sdfat\src\digitalio\DigitalPin.h:41:30: error: 'PINA' was not declared in this scope
 #define GPIO_PIN(reg, bit) {&PIN##reg, &DDR##reg, &PORT##reg, 1 << bit}
                              ^
c:\users\till1\documents\arduino\libraries\sdfat\src\digitalio\boards/NanoEveryGpioPinMap.h:4:3: note: in expansion of macro 'GPIO_PIN'
   GPIO_PIN(A, 0),  // D2
   ^~~~~~~~
c:\users\till1\documents\arduino\libraries\sdfat\src\digitalio\DigitalPin.h:41:30: note: suggested alternative: 'PIN0'
 #define GPIO_PIN(reg, bit) {&PIN##reg, &DDR##reg, &PORT##reg, 1 << bit}
                              ^
c:\users\till1\documents\arduino\libraries\sdfat\src\digitalio\boards/NanoEveryGpioPinMap.h:4:3: note: in expansion of macro 'GPIO_PIN'
   GPIO_PIN(A, 0),  // D2
   ^~~~~~~~
c:\users\till1\documents\arduino\libraries\sdfat\src\digitalio\DigitalPin.h:41:41: error: 'DDRA' was not declared in this scope
 #define GPIO_PIN(reg, bit) {&PIN##reg, &DDR##reg, &PORT##reg, 1 << bit}
                                         ^
c:\users\till1\documents\arduino\libraries\sdfat\src\digitalio\boards/NanoEveryGpioPinMap.h:4:3: note: in expansion of macro 'GPIO_PIN'
   GPIO_PIN(A, 0),  // D2
   ^~~~~~~~
c:\users\till1\documents\arduino\libraries\sdfat\src\digitalio\DigitalPin.h:41:41: note: suggested alternative: 'SDA'
 #define GPIO_PIN(reg, bit) {&PIN##reg, &DDR##reg, &PORT##reg, 1 << bit}
                                         ^
c:\users\till1\documents\arduino\libraries\sdfat\src\digitalio\boards/NanoEveryGpioPinMap.h:4:3: note: in expansion of macro 'GPIO_PIN'
   GPIO_PIN(A, 0),  // D2
   ^~~~~~~~
Bibliothek SdFat in Version 2.0.1 im Ordner: C:\Users\till1\Documents\Arduino\libraries\SdFat  wird verwendet
exit status 1
Fehler beim Kompilieren für das Board Arduino Nano Every.

I tried the whole weekend to solve this problem, but I didnt succeed. I dont have any experience with Arduino so I hope someone can help me with this.

Best Regards,
Till

NanoEveryGpioPinMap.h (1.18 KB)