CAN attach interrupt callback problem

31 Aug 2013

Hi guys,

I have found a proble about the CAN attach function: Same code:

include the mbed library with this snippet

#include "mbed.h"
DigitalOut led(LED1);
CAN can2(p30, p29);

void rec(void)
{
        led=1;
}

int main()
{
    led=0;
    can2.frequency(1000000);
    can2.attach(rec);
    while(1);
}

Before the mbed r64, when mbed receives message from CAN bus, the LED will be on. But after r65, it looks like the attach function cannot attach an interrupt callback.

Can you check it out please? Thanks!

07 Sep 2013

The BUG has been found!! Check out: https://github.com/mbedmicro/mbed/issues/56 Thank you very much Richard Low!