The problem has been solved. The Message buffer ID shouldn't be "0" as it is setted in the default and before the Peripherals are initiated the Clock has to be setted correctly.
BOARD_InitBootPins();
BOARD_InitBootClocks();
CLOCK_SetMux(kCLOCK_CanMux, 0U);
CLOCK_SetDiv(kCLOCK_CanDiv, 2U);
BOARD_InitBootPeripherals();