Skip to content

Use of multiple CAN bus on compatible boards #14801

@millotp

Description

@millotp

Description

Cannot use can bus 1 or 2 on most boards where they should be available.

Steps to reproduce the issue

The tests con_can is a good example, and this works with almost all boards where there is more than 1 can bus:

cd tests/conn_can
make BOARD=nucleo-f446re all flash term

On the serial port:

test_can send 1 0 01 02 03

Expected results

We should see nothing, indicating success.

Actual results

Invalid interface number

This is because CAN_DLL_NUMOF=1 and isn't redefined in the config file for each board.
Of course we can just compile with CFLAGS += -DCAN_DLL_NUMOF=2 but I think it should come as default.

Versions

Operating system: WSL 2 Ubuntu
Build environment: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]

Metadata

Metadata

Assignees

No one assigned

    Labels

    State: don't staleState: Tell state-bot to ignore this issueType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions