Post Go back to editing

Do I need to initialize CANFD memory before accessing the peripheral?

Do I need to initialize CANFD memory before accessing the peripheral?

  • Many of the CANFD registers like CAN individual mask registers, Global MB mask register and all of the Message buffers are mapped to the RAM area of the CANFD controller need to be explicitly initialized by writing a known value to them before doing any read accesses of these registers. The reason is that the CANFD RAM is ECC enabled so this memory needs to be explicitly initialized after the power-up so that all the memory location have the valid ECC. 

    If CANFD ECC is enabled (which is the case after reset), any read access to CANFD internal RAM area will result in ECC errors and thus unexpected behavior.