RAK4631+RAK19001 in PlataformIO

Hi,
I recently started experimenting with RAK products and am currently working with PlatformIO.
After following the steps of How To Perform Installation of Board Support Package in PlatformIO and adding the RAKwireless Audio Library, i encounter a compilation error fatal error: I2S.h: No such file or directory .
My plataform.ini file has the following:
[env:rak4631]
platform = nordicnrf52
board = wiscore_rak4631
framework = arduino
lib_deps =
rakwireless/RAKwireless-Audio-library
Wire
I also tried to uninstalled and reinstalled both the BSP and the RAK_PATCH and erase the .cache file in .plataformio file multiple times, but the result hasn’t changed.
Even if i try to use an standard board of the nordicnrf52 platform, the same error appears.
Any help or suggestions would be appreciated!
Thanks!

Welcome to the forum @jlaguinge_flexar_ar

Unfortunately the RAKwireless Audio Library works only with the original RAKwireless BSP for the RAK4631 ==> How to Perform Installation of Board Support Package in Arduino IDE

The BSP that PlatformIO is using is missing a patch to add the I2S support.

That’s a shame.
Is there a way to manually add the missing I2S support?

@jlaguinge_flexar_ar

Try to patch the PlatformIO nRF52 platform, but no 100% guarantee that it works:

(1) get folder I2S folder from RAK-nRF52-Arduino
(2) get folder PDM folder from RAK-nRF52-Arduino
(3) locate your PlatformIO platforms folders, for me that is in
C:\Users\bernd\.platformio\packages\framework-arduinoadafruitnrf52
(4) copy I2S into .platformio\packages\framework-arduinoadafruitnrf52\libraries
(5) overwrite content of .platformio\packages\framework-arduinoadafruitnrf52\libraries\PDM` with the contenct of the PDM folder you got from RAK-nRF52-Arduino

I did that and I could get the some example to work, but none with I2S. I don’t have a module with I2S at hand.

Thanks, i will try that.