![NXP Semiconductors freescale KV4 Series Reference Manual Download Page 1145](http://html1.mh-extra.com/html/nxp-semiconductors/freescale-kv4-series/freescale-kv4-series_reference-manual_17217891145.webp)
If a Mailbox is inactivated, it participates in neither the arbitration process nor the
matching process until it is reactivated. See
more detailed instructions on how to inactivate and reactivate a Mailbox.
To inactivate a Mailbox, the CPU must update its CODE field to INACTIVE (either
0b0000 or 0b1000).
Because the user is not able to synchronize the CODE field update with the FlexCAN
internal processes, an inactivation can have the following consequences:
• A frame in the bus that matches the filtering of the inactivated Rx Mailbox may be
lost without notice, even if there are other Mailboxes with the same filter
• A frame containing the message within the inactivated Tx Mailbox may be
transmitted without setting the respective IFLAG
In order to perform a safe inactivation and avoid the above consequences for Tx
Mailboxes, the CPU must use the Transmission Abort mechanism (see
).
The inactivation automatically unlocks the Mailbox (see
).
NOTE
Message Buffers that are part of the Rx FIFO cannot be
inactivated. There is no write protection on the FIFO region by
FlexCAN. CPU must maintain data coherency in the FIFO
region when RFEN is asserted.
43.5.6.3 Mailbox lock mechanism
Other than Mailbox inactivation, FlexCAN has another data coherence mechanism for the
receive process. When the CPU reads the Control and Status word of an Rx MB with
codes FULL or OVERRUN, FlexCAN assumes that the CPU wants to read the whole
MB in an atomic operation, and therefore it sets an internal lock flag for that MB. The
lock is released when the CPU reads the Free Running Timer (global unlock operation),
or when it reads the Control and Status word of another MB regardless of its code. A
CPU write into the C/S word also unlocks the MB, but this procedure is not
recommended for normal unlock use because it cancels a pending-move and potentially
may lose a received message. The MB locking prevents a new frame from being written
into the MB while the CPU is reading it.
NOTE
The locking mechanism applies only to Rx MBs that are not
part of the FIFO and have a code different than INACTIVE
Chapter 43 Flex Controller Area Network (FlexCAN)
KV4x Reference Manual, Rev. 2, 02/2015
Freescale Semiconductor, Inc.
Preliminary
1145
Summary of Contents for freescale KV4 Series
Page 2: ...KV4x Reference Manual Rev 2 02 2015 2 Preliminary Freescale Semiconductor Inc...
Page 60: ...KV4x Reference Manual Rev 2 02 2015 60 Preliminary Freescale Semiconductor Inc...
Page 128: ...Debug Security KV4x Reference Manual Rev 2 02 2015 128 Preliminary Freescale Semiconductor Inc...
Page 138: ...Boot KV4x Reference Manual Rev 2 02 2015 138 Preliminary Freescale Semiconductor Inc...
Page 1358: ...KV4x Reference Manual Rev 2 02 2015 1358 Preliminary Freescale Semiconductor Inc...