Sorry that I didn't answer any time sooner. I deactivated the CPC and re-enabled it in SRAM mode with ECC on. You can find the code of the activation process down below if anyone is interested. I know now that ECC protection and injection is not working in SRAM mode since we testet it with high energy protons.
cpc_corenet_t *cpc = (cpc_corenet_t *)CONFIG_SYS_FSL_CPC_ADDR;
out_be32(&cpc->cpcsrcr1, CPC_SRCR1_SRBARU(SRAM_BASE_ADDRESS));
in_be32(&cpc->cpcsrcr1);
out_be32(&cpc->cpcsrcr0,
CPC_SRCR0_SRAMEN | CPC_SRCR0_SRAMSZ_32_WAY
| CPC_SRCR0_SRBARL(SRAM_BASE_ADDRESS ));
in_be32(&cpc->cpcsrcr0);
setbits_be32(&cpc->cpccsr0 + CPC_CSR0_PAR0/4, 0xfffffbff);
in_be32(&cpc->cpccsr0 + CPC_CSR0_PAR0/4);
out_be32(&cpc->cpccsr0, CPC_CSR0_CE & ~CPC_CSR0_PE);
while (!(in_be32(&cpc->cpccsr0) & (CPC_CSR0_CE & ~CPC_CSR0_PE)));
;
out_be32(&cpc->cpchdbcr0, CPC_HDBCR0_CDQ_SPEC_DIS);
in_be32(&cpc->cpchdbcr0);
out_be32(&cpc->cpcerrdet, L3_ERROR_MULTI | L3_ERROR_DATA_SINGLE | L3_ERROR_DATA_MULTI | L3_ERROR_TAG_SINGLE | L3_ERROR_TAG_MULTI | L3_ERROR_TAG_MULTIHIT);
clrbits_be32(&cpc->cpcerrctl, 0xffffffff);