i.MXRT105x Middleware Pack  
CMSIS-Drivers for NXP i.MXRT105x devices
 
Loading...
Searching...
No Matches
CMSIS-Driver for CAN Interface

CMSIS-Driver for CAN Interface Setup

The CMSIS-Driver for CAN Interface requires:

  • CAN Pins
  • CAN Clock

Valid pin settings for CAN peripheral on EVKB-IMXRT1050 evaluation board are listed in the table below:

# Peripheral Signal Route to Direction Software Input On Speed
H14 CAN2 TX GPIO_AD_B0_14 Output Enabled low(50MHz)
L10 CAN2 RX GPIO_AD_B0_15 Input Enabled low(50MHz)

The rest of the settings can be at the default (reset) value.

For other boards or custom hardware, refer to the hardware schematics to reflect correct setup values.

In the MCUXpresso Config Tools, make sure that the following pin and clock settings are made (enter the values that are shown in italics):

  1. Under the Functional Group entry in the toolbar, select Board_InitCAN
  2. Modify Routed Pins configuration to match the settings listed in the table above
  3. Click on the flag next to Functional Group BOARD_InitCAN to enable calling that function from initialization code
  4. Go to Tools - Clocks
  5. Go to Views - Clocks Diagram and check that CAN clock is set to 40 MHz
  6. Click on Update Project button to update source files
Note
Driver limitations:
  • ARM_CAN_OBJ_RX_RTR_TX_DATA object type not supported
  • DMA not supported