Example S32K144 FlexCAN RXFIFO DMA S32DS.ARM.2018.R1

Document created by Petr Stancik Employee on Apr 5, 2019Last modified by Petr Stancik Employee on Apr 5, 2019
Version 2Show Document
  • View in full screen mode
Detailed Description:

Configures the FlexCAN 0 to transmit and receive a CAN message
Baudrate to is set to 500kbps.

In this config, RXFIFO is used to receive a messages. 16 filter elements
are defined in the RXFIFO table. Both standard and extended IDs are used.
DMA is enabled in component inspector to read RXFIFO.

MB10 is moreover used to receive a message with given standard ID and
MB11 is used to transmit a message upon button press.

The callback function is installed as well and is it called each time message is
received in MB10, RXFIFO or message is transmitted.

Note: EVB must be powered by 12V to have SBC's CAN transceiver active

* ------------------------------------------------------------------------------
* Test HW:        S32K144EVB-Q100
* MCU:            FS32K144UAVLL 0N57U
* Target:         Debug_FLASH
* EVB connection: PCAN-View with PCAN-USB Pro connected to CAN port J13
* Compiler:       S32DS.ARM.2018.R1
* SDK release:    S32SDK_S32K1xx_RTM_3.0.0
* Debugger:       Lauterbach Trace32
Revision History:
Ver    Date           Author          Description of Changes
0.1    Apr-04-2019    Petr Stancik    Initial version
3 people found this helpful