Example S32R274 FlexCAN_with_Interrupts S32DS

File uploaded by Martin Kovar Employee on Jan 10, 2017
Version 1Show Document
  • View in full screen mode

********************************************************************************
* Detailed Description:
* Application performs basic initialization, setup PLL to maximum allowed freq.,
* setup clock for peripherals,
*
* Initializes the MCU including the FlexCAN peripherals.
* Configures the FlexCAN to transmit and receive a CAN message.
*
* Individual RX masking was added to the last version of this example.
* Three messages with different ID's are sent via FlexCAN_0 MB0 MB1 and MB2.
* These messages are received by FlexCAN_1 MB0, MB1 and MB2 according to masking
* register settings.
*
* For MB0 data receive is used interrupt.
*
*
* ------------------------------------------------------------------------------
* Test HW:         S32R274RRUEVB, MPC57xx Motherboard
* MCU:             S32R274KAMMM 1N58R
* Fsys:            PLL0 240MHz
*                    Z4 Core 120MHz
* Debugger:        Lauterbach Trace32
*                  PeMicro USB-ML-PPCNEXUS
* Target:          internal_FLASH (debug mode, debug_ram and release mode)
* EVB connection:
*
* It is necessary to remove both J35 jumpers.
*
*
* Connect J35.2 to PA14 (CAN_1 TX)
* Connect J35.4 to PA15 (CAN_1 RX)
*
* CAN0 is connected internally to J37 (this pin is placed on daughter card)
*
* Connect CAN P5.2 to J37.2 (CAN_1 and CAN_0 CANL)
* Connect CAN P5.1 to J37.1 (CAN_1 and CAN_0 CANH)
*
* This connection has to be observed, otherwise correct communication between
* CAN modules is not guaranteed.
*
*
********************************************************************************

Attachments

Outcomes