The MSS_MPU_get_failstatus function in mss_mpu header fails the compilation. Since the header is included in mss_hal.h, using that also halts all compilation as well.
The file that includes mpu header has to be compiled with c, otherwise the compilation is halted.
Compiler settings:
Language Standard: GNU ISO 2011 C++
ABI version: Toolchain default (0)
Do not use checked for every option
Toolchain: RISC-V GCC/Newlib ( riscv64-unknown-elf-gcc)