6 years, 2 months ago.

When is available for CAN function?

I got your mbed LPC546XX board and try to test simple gpio and CAN operation, but found your CAN function is not installed in mbed.os.lib. Am I right ? and when is available using CAN function your mbed.

#include "mbed.h"

DigitalOut led1(LED1);
CAN can1(p30,p29);

// main() runs in its own thread in the OS
int main() {
    while (true) {
        led1 = !led1;
        wait(0.5);
    }
}

compiling -> Error: Identifier "CAN" is undefined in "main.cpp", Line: 4, Col: 2

Question relating to:

The L-Tek FF-LPC546XX is a small, 40-pin development board intended for prototyping general microcontroller applications. It is based on a low power, peripheral rich and debug capable NXP LPC54606 microcontroller, …

1 Answer

6 years, 2 months ago.

Hi there,

This is because the FF_LPC546XX board does not support the CAN API. You can see all of the Mbed OS features that this board supports in the Mbed OS targets.json file here: https://github.com/ARMmbed/mbed-os/blob/master/targets/targets.json#L793

Please let me know if you have any questions!

- Jenny, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!