Latest Marlin 2.0 bugfix for Malyan M200

I thought that I will give the latest 2.0 bugfix a go (just for fun current version i use runs ok) after successfully running @maxgerhardt version of Marlin on my malyan M200.
I figured some differences between his version and the latest bugfix out but I again hit a wall. I use same settings in config files and same platformio settings but I get following errors.
Can one of you Platformio big brains have a look at it and give me some pointers again, please?

Linking .pio\build\malyanm200v2\firmware.elf
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/MarlinCore.cpp.o: in function `enable_e_steppers()':
MarlinCore.cpp:(.text._Z17enable_e_steppersv+0x20): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/MarlinCore.cpp.o: in function `enable_all_steppers()':
MarlinCore.cpp:(.text._Z19enable_all_steppersv+0x40): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/MarlinCore.cpp.o: in function `disable_e_steppers()':
MarlinCore.cpp:(.text._Z18disable_e_steppersv+0x20): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/MarlinCore.cpp.o: in function `disable_e_stepper(unsigned char)':
MarlinCore.cpp:(.text._Z17disable_e_stepperh+0x24): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/MarlinCore.cpp.o: in function `disable_all_steppers()':
MarlinCore.cpp:(.text._Z20disable_all_steppersv+0x60): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/MarlinCore.cpp.o: in function `minkill(bool)':
MarlinCore.cpp:(.text._Z7minkillb+0x5e): undefined reference to `HAL_watchdog_refresh()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/MarlinCore.cpp.o: in function `manage_inactivity(bool)':
MarlinCore.cpp:(.text._Z17manage_inactivityb[_Z17manage_inactivityb]+0x130): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/MarlinCore.cpp.o: in function `setup':
MarlinCore.cpp:(.text.setup+0x32): undefined reference to `HAL_init()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: MarlinCore.cpp:(.text.setup+0x3a): undefined reference to `HAL_get_reset_source()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: MarlinCore.cpp:(.text.setup+0x72): undefined reference to `HAL_clear_reset_source()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: MarlinCore.cpp:(.text.setup+0x128): undefined reference to `watchdog_init()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/feature/fanmux.cpp.o: in function `fanmux_switch(unsigned char)':
fanmux.cpp:(.text._Z13fanmux_switchh+0x2c): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/feature/fanmux.cpp.o: in function `fanmux_init()':
fanmux.cpp:(.text._Z11fanmux_initv+0x30): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/gcode/control/M17_M18_M84.cpp.o: in function `GcodeSuite::M17()':
M17_M18_M84.cpp:(.text._ZN10GcodeSuite3M17Ev+0xa4): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/gcode/control/M17_M18_M84.cpp.o: in function `GcodeSuite::M18_M84()':
M17_M18_M84.cpp:(.text._ZN10GcodeSuite7M18_M84Ev+0x118): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/gcode/control/M997.cpp.o: in function `GcodeSuite::M997()':
M997.cpp:(.text._ZN10GcodeSuite4M997Ev+0x54): undefined reference to `flashFirmware(short)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/configuration_store.cpp.o: in function `MarlinSettings::save()':
configuration_store.cpp:(.text._ZN14MarlinSettings4saveEv+0xe): undefined reference to `PersistentStore::access_start()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings4saveEv+0x40): undefined reference to `PersistentStore::write_data(int&, unsigned char const*, unsigned int, unsigned short*)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings4saveEv+0x50): undefined reference to `PersistentStore::write_data(int&, unsigned char const*, unsigned int, unsigned short*)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings4saveEv+0x6a): undefined reference to `PersistentStore::write_data(int&, unsigned char const*, unsigned int, unsigned short*)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings4saveEv+0x78): undefined reference to `PersistentStore::write_data(int&, unsigned char const*, unsigned int, unsigned short*)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings4saveEv+0x86): undefined reference to `PersistentStore::write_data(int&, unsigned char const*, unsigned int, unsigned short*)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/configuration_store.cpp.o:configuration_store.cpp:(.text._ZN14MarlinSettings4saveEv+0x98): more undefined references to `PersistentStore::write_data(int&, unsigned char const*, unsigned int, unsigned short*)' follow
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/configuration_store.cpp.o: in function `MarlinSettings::save()':
configuration_store.cpp:(.text._ZN14MarlinSettings4saveEv+0x47e): undefined reference to `PersistentStore::access_finish()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/configuration_store.cpp.o: in function `MarlinSettings::_load()':
configuration_store.cpp:(.text._ZN14MarlinSettings5_loadEv+0xa): undefined reference to `PersistentStore::access_start()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings5_loadEv+0x44): undefined reference to `PersistentStore::read_data(int&, unsigned char*, unsigned int, unsigned short*, bool)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings5_loadEv+0x60): undefined reference to `PersistentStore::read_data(int&, unsigned char*, unsigned int, unsigned short*, bool)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings5_loadEv+0x90): undefined reference to `PersistentStore::access_finish()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings5_loadEv+0xc0): undefined reference to `PersistentStore::read_data(int&, unsigned char*, unsigned int, unsigned short*, bool)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings5_loadEv+0x10c): undefined reference to `PersistentStore::read_data(int&, unsigned char*, unsigned int, unsigned short*, bool)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings5_loadEv+0x12c): undefined reference to `PersistentStore::read_data(int&, unsigned char*, unsigned int, unsigned short*, bool)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings5_loadEv+0x14c): undefined reference to `PersistentStore::read_data(int&, unsigned char*, unsigned int, unsigned short*, bool)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: configuration_store.cpp:(.text._ZN14MarlinSettings5_loadEv+0x16e): undefined reference to `PersistentStore::read_data(int&, unsigned char*, unsigned int, unsigned short*, bool)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/configuration_store.cpp.o:configuration_store.cpp:(.text._ZN14MarlinSettings5_loadEv+0x196): more undefined references to `PersistentStore::read_data(int&, unsigned char*, unsigned int, unsigned short*, bool)' follow
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/endstops.cpp.o: in function `Endstops::report_states()':
endstops.cpp:(.text._ZN8Endstops13report_statesEv+0x70): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/planner.cpp.o: in function `Planner::quick_stop()':
planner.cpp:(.text._ZN7Planner10quick_stopEv+0x4): undefined reference to `HAL_timer_interrupt_enabled(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: planner.cpp:(.text._ZN7Planner10quick_stopEv+0xe): undefined reference to `HAL_timer_disable_interrupt(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: planner.cpp:(.text._ZN7Planner10quick_stopEv+0x38): undefined reference to `HAL_timer_enable_interrupt(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/planner.cpp.o: in function `Planner::_populate_block(block_t*, bool, XYZEval<long> const&, XYZEval<float> const&, float, unsigned char, float const&)':
planner.cpp:(.text._ZN7Planner15_populate_blockEP7block_tbRK7XYZEvalIlERKS2_IfEfhRKf+0x2a0): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: planner.cpp:(.text._ZN7Planner15_populate_blockEP7block_tbRK7XYZEvalIlERKS2_IfEfhRKf+0x664): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: planner.cpp:(.text._ZN7Planner15_populate_blockEP7block_tbRK7XYZEvalIlERKS2_IfEfhRKf+0xa38): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/planner.cpp.o: in function `Planner::buffer_sync_block()':
planner.cpp:(.text._ZN7Planner17buffer_sync_blockEv+0x5e): undefined reference to `HAL_timer_enable_interrupt(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/planner.cpp.o: in function `Planner::buffer_segment(float const&, float const&, float const&, float const&, float const&, unsigned char, float const&)':
planner.cpp:(.text._ZN7Planner14buffer_segmentERKfS1_S1_S1_S1_hS1_+0x9c): undefined reference to `HAL_timer_enable_interrupt(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/stepper.cpp.o: in function `Stepper::suspend()':
stepper.cpp:(.text._ZN7Stepper7suspendEv[_ZN7Stepper7suspendEv]+0x4): undefined reference to `HAL_timer_interrupt_enabled(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: stepper.cpp:(.text._ZN7Stepper7suspendEv[_ZN7Stepper7suspendEv]+0xe): undefined reference to `HAL_timer_disable_interrupt(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/stepper.cpp.o: in function `Stepper::set_directions()':
stepper.cpp:(.text._ZN7Stepper14set_directionsEv+0x94): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/stepper.cpp.o: in function `Stepper::init()':
stepper.cpp:(.text._ZN7Stepper4initEv+0x230): undefined reference to `HAL_timer_start(unsigned char, unsigned long)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: stepper.cpp:(.text._ZN7Stepper4initEv+0x236): undefined reference to `HAL_timer_enable_interrupt(unsigned char)'   
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: stepper.cpp:(.text._ZN7Stepper4initEv+0x24c): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/stepper.cpp.o: in function `Stepper::set_position(long const&, long const&, 
long const&, long const&)':
stepper.cpp:(.text._ZN7Stepper12set_positionERKlS1_S1_S1_+0x28): undefined reference to `HAL_timer_enable_interrupt(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/temperature.cpp.o: in function `Temperature::checkExtruderAutoFans()':
temperature.cpp:(.text._ZN11Temperature21checkExtruderAutoFansEv+0x54): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/temperature.cpp.o: in function `Temperature::updateTemperaturesFromRawValues()':
temperature.cpp:(.text._ZN11Temperature31updateTemperaturesFromRawValuesEv+0x1c): undefined reference to `HAL_watchdog_refresh()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/temperature.cpp.o: in function `Temperature::init()':
temperature.cpp:(.text._ZN11Temperature4initEv+0x6e): undefined reference to `HAL_timer_start(unsigned char, unsigned long)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: temperature.cpp:(.text._ZN11Temperature4initEv+0x74): undefined reference to `HAL_timer_enable_interrupt(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: temperature.cpp:(.text._ZN11Temperature4initEv+0x138): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/module/temperature.cpp.o: in function `Temperature::disable_all_heaters()':
temperature.cpp:(.text._ZN11Temperature19disable_all_heatersEv+0x6c): undefined reference to `FastIOPortMap'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/sd/Sd2Card.cpp.o: in function `Sd2Card::chipDeselect()':
Sd2Card.cpp:(.text._ZN7Sd2Card12chipDeselectEv+0xc): undefined reference to `spiSend(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/sd/Sd2Card.cpp.o: in function `Sd2Card::chipSelect()':
Sd2Card.cpp:(.text._ZN7Sd2Card10chipSelectEv+0x6): undefined reference to `spiInit(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/sd/Sd2Card.cpp.o: in function `Sd2Card::readData(unsigned char*, unsigned short)': 
Sd2Card.cpp:(.text._ZN7Sd2Card8readDataEPht+0x12): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card8readDataEPht+0x36): undefined reference to `spiRead(unsigned char*, unsigned short)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card8readDataEPht+0x3c): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card8readDataEPht+0x40): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/sd/Sd2Card.cpp.o: in function `Sd2Card::waitNotBusy(unsigned long)':
Sd2Card.cpp:(.text._ZN7Sd2Card11waitNotBusyEm+0xa): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/sd/Sd2Card.cpp.o: in function `Sd2Card::cardCommand(unsigned char, unsigned long)':
Sd2Card.cpp:(.text._ZN7Sd2Card11cardCommandEhm+0x1a): undefined reference to `spiSend(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card11cardCommandEhm+0x20): undefined reference to `spiSend(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card11cardCommandEhm+0x28): undefined reference to `spiSend(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card11cardCommandEhm+0x30): undefined reference to `spiSend(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card11cardCommandEhm+0x36): undefined reference to `spiSend(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/sd/Sd2Card.cpp.o:Sd2Card.cpp:(.text._ZN7Sd2Card11cardCommandEhm+0x42): more undefined references to `spiSend(unsigned char)' follow
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/sd/Sd2Card.cpp.o: in function `Sd2Card::cardCommand(unsigned char, unsigned long)':
Sd2Card.cpp:(.text._ZN7Sd2Card11cardCommandEhm+0x4a): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card11cardCommandEhm+0x50): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/sd/Sd2Card.cpp.o: in function `Sd2Card::init(unsigned char, short)':
Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0x18): undefined reference to `HAL_watchdog_refresh()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0x2c): undefined reference to `spiBegin()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0x34): undefined reference to `spiInit(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0x40): undefined reference to `spiSend(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0x48): undefined reference to `HAL_watchdog_refresh()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0x72): undefined reference to `HAL_watchdog_refresh()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0x8a): undefined reference to `HAL_watchdog_refresh()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0xc0): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0xf8): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0x108): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0x10c): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card4initEhs+0x110): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/sd/Sd2Card.cpp.o: in function `Sd2Card::writeData(unsigned char, unsigned char const*)':
Sd2Card.cpp:(.text._ZN7Sd2Card9writeDataEhPKh+0x8): undefined reference to `spiSendBlock(unsigned char, unsigned char const*)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card9writeDataEhPKh+0xe): undefined reference to `spiSend(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card9writeDataEhPKh+0x14): undefined reference to `spiSend(unsigned char)'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: Sd2Card.cpp:(.text._ZN7Sd2Card9writeDataEhPKh+0x18): undefined reference to `spiRec()'
c:/users/xmexj/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/malyanm200v2/src/src/sd/Sd2Card.cpp.o: in function `Sd2Card::writeBlock(unsigned long, unsigned char const*)':
Sd2Card.cpp:(.text._ZN7Sd2Card10writeBlockEmPKh+0x50): undefined reference to `spiRec()'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\malyanm200v2\firmware.elf] Error 1 

Thank you

Sorry for pissing you off, I just had a spark of brilliance :rofl: :face_with_hand_over_mouth:
Got it fixed!
changed from this:
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
to this:
src_filter = ${common.default_src_filter} +<src/HAL/STM32>

you beauty :+1: now upload and test ta ta

I will just keep on writing if you don’t mind. I got it to compile without any warnings but it does not run.
It flashes V99 on the screen and reboots soooooo it sort of lives but not really.
I thought it was watchdog causing it but with watchdog disabled it is still the same.
I can not use ST-Link in platformio for some reason it does not work and I am not smart enough to get it going.

So guys any suggestions?

Another update (if anyone is interested) spent whole day scratching my noggin this latest bugfix on malyan was giving me a grief but…
I made basic mistake before I endeavour on this mission I updated all Platformio, STM, Arduino framework and the latest caused whole mission to fail.
I went back to @maxgerhardt branch to start from scratch cause I was thinking I was going nuts.
Now I am running straight marlin 2.x (non bugfix) from marlin repo and it all seems to run sweet.
Have to use
platform_packages = framework-arduinoststm32@>=3.107,<4
otherwise no cigar and fails miserably, using latest framework causes marlin to reboots all the time and runs extruder heater at full bore (until smoke started to escape).
Going to 3.107 fixed it and it runs fine (as far as I tested it).

Does anyone have any idea what is causing it? I could not find anything obvious.