10 years, 5 months ago.

hardfault in CAN destructor

I get a hardfault on LPC1768 in the destructor of the CAN object.

original code

CAN::~CAN() {
    can_free(&_can);
    can_irq_free(&_can); // crashes in here when it tries to access the can registers
}

new code

CAN::~CAN() {
    can_irq_free(&_can);
    can_free(&_can);
}

Question relating to:

1 Answer

10 years, 5 months ago.

Do you use github by any chance? It would be faster if you add your pull request there. Even more people follow all pull request and do review.

I have seen your pull request on mbed-src. Thanks for contributing!

Regards,
0xc0170