Arm Mbed OS support forum

NUCLEO_L552ZE_Q and CAN

Hello,
I have tried to use mbed-os-example-blinky with mbed-os 6.13.0.
The target is NUCLEO_L552ZE_Q
When I add CAN, i get “[ERROR] .\main.cpp:17:5: error: unknown type name ‘CAN’”
What’s wrong ?
Thanks for advance.

/* mbed Microcontroller Library

  • Copyright (c) 2019 ARM Limited
  • SPDX-License-Identifier: Apache-2.0
    */
    #include “mbed.h”
    // Blinking rate in milliseconds
    #define BLINKING_RATE 500ms
    int main()
    {
    // Initialise the digital pin LED1 as an output
    DigitalOut led(LED1);
    CAN can(PA_11,PA_12,500000);// rx, tx
    while (true) {
    led = !led;
    ThisThread::sleep_for(BLINKING_RATE);
    }
    }

Hello,
I forget
“MYL552”: {
“inherits”: [
“MCU_STM32L552xE”
],
“supported_form_factors”: [
“ARDUINO_UNO”
],
“device_has_add”: [
“CAN”
],
“device_name”: “STM32L552ZETxQ”,
“detect_code”: [
“0854”
]
}