![NXP Semiconductors SAFE ASSURE Qorivva MPC5601P Reference Manual Download Page 832](http://html.mh-extra.com/html/nxp-semiconductors/safe-assure-qorivva-mpc5601p/safe-assure-qorivva-mpc5601p_reference-manual_1721898832.webp)
Chapter 33 Boot Assist Module (BAM)
MPC5602P Microcontroller Reference Manual, Rev. 4
832
Freescale Semiconductor
After setting up the system clock, the BAM autoscan code configures the FlexCAN RX pin (B[1] on all
packages) and LINFlex RX pin (B[3] on LQFP100 or B[7] on LQFP64) as GPIO inputs and searches for
FlexCAN RX pin level to verify if CAN is connected or not.
Then continuously waits in polling on change of RX pins level.The FlexCAN RX pin level takes
precedence. First signal found at low level selects the serial boot routine that will be executed.
In case a low level is detected on any input, the corresponding autobaud measurement functionality is
started:
•
when FlexCAN RX (corresponds to pin B[1]) level is low, the CAN autobaud measurement starts
and then sets up the FlexCAN baud rate accordingly;
•
when UART RX (corresponds to pin B[3] on LQFP100 or B[7] on LQFP64) level is low, the
UART autobaud measurement starts and then sets up the LINFlex baud rate accordingly.
After performing the autobaud measurement and setting up the baud rate, the corresponding RX input is
reconfigured and the related standard download process is started; in case of a detected CAN transmission
a download using the CAN protocol as described in section
Section 33.5.7, “Bootstrap with
, and in case of a detected UART transmission a download using the UART
protocol as described in
Section 33.5.6, “Boot from UART—autobaud disabled
The following
identifies the corresponding flow and steps.
NOTE
When autobaud scan is selected, initially both LINFlex_0 RX pin and
FlexCAN_0 RX pin should be at high level. No external circuity should
pull-down them to allow right autoscan.