This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM57L843: Reset the MsgVal bit of all unused CAN Message Objects.

Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN

Tool/software:

According to SPNU562A, the CPU should reset the MsgVal bit of all unused Message Objects during initialisation, before resetting the Init bit in the CAN Control Register.

Could you provide an example of how to reset the MsgVal bit of all Message Objects during initialisation? I would appreciate it if you could insert the code into the 'canInit' function generated by HALCOGEN.

Best regards,

  • Hi Marcio,

    I think this is not required because after power ON the default value of MsgVal bit will be zero, and it doesn't create any problem in my previous tastings as well.

    Maybe this is the reason developers didn't include clearing this bit.

    If you really want to clear this bit then you can follow the same code as below in HALCoGen:

    Except make sure to write 0 in the MsgVal bit instead of 1

    That means above highlighted 0xC0000000U should be 0x00000000U.

    And repeat this loop for all the unused message objects in the message RAM.

    --
    Thanks & regards,
    Jagadish.