Skip to main content
PSing.5
Associate II
July 9, 2021
Question

How to choose CAN driver?

  • July 9, 2021
  • 2 replies
  • 816 views

I enabled CAN 2 in low level drivers, chose the correct pins under pinout but I get error (undeclared variable) when I try to can_lld_start(&CAND2, &can_config_cfg0);

How do I use a specific CAN bus in code and how do I enable it? Do I type &CAND5 for the fifth bus?

    This topic has been closed for replies.

    2 replies

    PChia.2237
    Senior
    July 12, 2021

    I think you mean

    #include "adc_lld_cfg.h"

    see RLA CAN Test Application for Discovery

    PSing.5
    PSing.5Author
    Associate II
    July 14, 2021

    I included #include "can_lld_cfg.h" for the CAN drivers but I am trying to figure out why I can not use other CAN channels. I enabled them using the software under low level drivers and assigned pins in the pinmap editor.