FlexRay Communication Controller (FLEXRAY)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
30-148
Freescale Semiconductor
Preliminary
If the command execution block of the PE is idle, it selects the next accepted protocol command with the
highest priority from the current protocol command vector according to the protocol control command
priorities given in
. If the current protocol state does not allow the execution of this protocol
command (see POC state changes in
FlexRay Communications System Protocol Specification, Version 2.1
) the FlexRay block asserts the illegal protocol command interrupt flag IPC_IF in the
Interrupt Flag Register 1 (PIFR1)
. The protocol command is not executed in this case.
Some protocol commands may be interrupted by other commands or the detection of a fatal protocol error
as indicated by
. If the application issues the RESET, FREEZE, or READY command, or if
the the PE detects a fatal protocol error, some commands already stored in the command vector will be
removed from this vector.
30.7.5
Protocol Reset Command
The section considers the issues of the protocol RESET command.
The application issues the protocol reset command by writing the RESET command code to the POCCMD
field of the
Protocol Operation Control Register (POCR)
. As a result, the PE stops its operation
immediately, the FlexRay bus ports put into their idle state, and no more data or status information is sent
to the CHI. The lack of PE signals stops all message buffer operations in the CHI. In particular, the
message buffers that are currently under internal use remain internally locked. To overcome this message
buffer internal lock situation, the application must put the protocol into the
POC:default config
state. This
will release all internal message buffer locks.
Table 30-115. Protocol Control Command Priorities
Protocol Command
Priority
Interrupted By
Cleared and Terminated By
RESET
(highest) 1
none
FREEZE
2
RESET
READY
3
RESET
CONFIG_COMPLETE
3
RESET
ALL_SLOTS
4
RESET,
FREEZE,
READY,
CONFIG_COMPLET,
fatal protocol error
RESET, FREEZE, READY, CONFIG_COMPLETE,
fatal protocol error
ALLOW_COLDSTART
5
RESET
RUN
6
RESET, FREEZE,
fatal protocol error
WAKEUP
7
RESET, FREEZE,
fatal protocol error
DEFAULT_CONFIG
8
RESET, FREEZE,
fatal protocol error
CONFIG
9
RESET
HALT
(lowest) 10
RESET, FREEZE, READY, CONFIG_COMPLETE,
fatal protocol error