CAN error: identifier "CAN" is undefined

08 Jul 2016

Compilation error: identifier "CAN" is undefined "CAN can1(PD_0, PD_1);"

include the mbed library with this snippet

#include "mbed.h"

DigitalOut myled(LED1);
CAN can1(PD_0, PD_1);

int main() {
    while(1) {
        myled = 1; // LED is ON
        wait(0.2); // 200 ms
        myled = 0; // LED is OFF
        wait(1.0); // 1 sec
    }
}
20 Jul 2016

Wich platform are you using?

22 Jul 2016

I am having the same problem compiling this example. it works before. link of the example follows. I am using Nucleo F103.

https://developer.mbed.org/questions/54487/Help-needed-to-test-CANnucleo/

23 Jul 2016

I also have similar problem with Nucleo F072. No one of working codes can't now compile. After compile appears several errors about CAN.h resourse (110, 18, 79, 90, 70, 77) and page with error desctriptions not available. May be problem with mbed server.

23 Jul 2016

I solved my problem after update mbed library.