Skip to content

Controller Area Network with Flexible Data-Rate (FDCAN)

lbuild module: modm:platform:can

This module is only available for stm32{c0,c5,g0,g4,g5,h5,h7,l5,u3,u5}.

Instance Options

These options are available for each instance of this module.

buffer.rx

Default: 32
Inputs: [0 .. 32 .. 64Ki-2]

buffer.tx

Default: 32
Inputs: [0 .. 32 .. 64Ki-2]

message_ram.extended_filter_count

This option is only available for stm32h7.

Default: 8
Inputs: [1 .. 8 .. 64]

message_ram.rx_fifo_0_elements

This option is only available for stm32h7.

Default: 14
Inputs: [1 .. 14 .. 64]

message_ram.rx_fifo_1_elements

This option is only available for stm32h7.

Default: 14
Inputs: [1 .. 14 .. 64]

message_ram.standard_filter_count

This option is only available for stm32h7.

Default: 28
Inputs: [1 .. 28 .. 128]

message_ram.tx_fifo_elements

This option is only available for stm32h7.

Default: 14
Inputs: [1 .. 14 .. 32]

tx_hw_queue_mode

Controls the order in which frames are popped from the hardware TX queue (see message_ram.tx_fifo_elements). The optional software buffer (buffer.tx) is always popped in priority order, and frames with the same identifier keep their order.

FIFO: transmit frames in the order they were enqueued. A high priority frame waits for the frames already in the hardware queue.

Priority: transmit the frame with the lowest arbitration ID first. Since the hardware sends frames with the same identifier in the order of their buffer index, sendMessage() refuses a frame while another frame with the same identifier is pending in the hardware queue. Without software buffer this means that sendMessage() can fail even though isReadyToSend() returned true.

Default: FIFO
Inputs: [FIFO, Priority]

Dependencies

modm:platform:can modm_platform_can modm: platform: can modm_architecture_assert modm: architecture: assert modm_platform_can->modm_architecture_assert modm_architecture_atomic modm: architecture: atomic modm_platform_can->modm_architecture_atomic modm_architecture_can modm: architecture: can modm_platform_can->modm_architecture_can modm_architecture_clock modm: architecture: clock modm_platform_can->modm_architecture_clock modm_architecture_delay modm: architecture: delay modm_platform_can->modm_architecture_delay modm_architecture_interrupt modm: architecture: interrupt modm_platform_can->modm_architecture_interrupt modm_debug modm: debug modm_platform_can->modm_debug modm_ext_cmsis_device modm: ext: cmsis: device modm_platform_can->modm_ext_cmsis_device modm_platform_can_common modm: platform: can.common modm_platform_can->modm_platform_can_common modm_platform_can_common_fdcan modm: platform: can.common.fdcan modm_platform_can->modm_platform_can_common_fdcan modm_platform_gpio modm: platform: gpio modm_platform_can->modm_platform_gpio modm_platform_rcc modm: platform: rcc modm_platform_can->modm_platform_rcc modm_utils modm: utils modm_platform_can->modm_utils

Limited availability: Check with 'lbuild discover' if this module is available for your target!