AnsweredAssumed Answered

S32K144 flash_init can affect flexio iic bus

Question asked by 建宽高 on Sep 30, 2018

```c

/**
* brief
* bsp_FLASH_Init
* param None
*
* return None
*/
status_t bsp_FLASH_Init(void)
{
status_t ret;/* Store the driver APIs return code */

#ifdef S32K144_SERIES
INT_SYS_DisableIRQGlobal();
MSCM->OCMDR[0u] |= MSCM_OCMDR_OCM0(0xFu) | MSCM_OCMDR_OCM1(0xFu) | MSCM_OCMDR_OCM2(0xFu);
MSCM->OCMDR[1u] |= MSCM_OCMDR_OCM0(0xFu) | MSCM_OCMDR_OCM1(0xFu) | MSCM_OCMDR_OCM2(0xFu);
MSCM->OCMDR[2u] |= MSCM_OCMDR_OCM0(0xFu) | MSCM_OCMDR_OCM1(0xFu) | MSCM_OCMDR_OCM2(0xFu);
MSCM->OCMDR[3u] |= MSCM_OCMDR_OCM0(0xFu) | MSCM_OCMDR_OCM1(0xFu) | MSCM_OCMDR_OCM2(0xFu);
INT_SYS_EnableIRQGlobal();
#endif

```

when i comment this code , flexio iic will be be affected ,  Reading data from the bus is inaccurate,what happend?

MSCM->OCMDR[0u] |= MSCM_OCMDR_OCM0(0xFu) | MSCM_OCMDR_OCM1(0xFu) | 

Outcomes