cancel
Showing results for 
Search instead for 
Did you mean: 

How to choose CAN driver?

PSing.5
Associate II

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?

2 REPLIES 2
PChia.2237
Senior

I think you mean

#include "adc_lld_cfg.h"

see RLA CAN Test Application for Discovery

PSing.5
Associate II

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.