USB CDC on FRDM-K66F board

Hi. I am trying simple USB CDC example
https://os.mbed.com/docs/mbed-os/v6.2/apis/usbcdc.html
however I receive “This board does not have a hardware USB driver” error.

How can I fix (or properly configure) it.
Thank you,
Igor

HI Igor,

if you look at mbed-os/targets.json at master · ARMmbed/mbed-os · GitHub you can see that the K64F has USBDEVICE in the ‘device_has_add’ section but the K66F does not, so this would imply that the K66F has not had the USBDEVICE enabled for it yet.

Regards
Anna

Thank you for clarification.
Regards,
Igor

Hi Anna:
I have a FRDM-K64F board and I want to use the example in the following link:

USBCDC - API references and tutorials | Mbed OS 6 Documentation

A serial port is generated on my PC but I do not receive data, according to the code:

      char msg[] = "Hello world\r\n";
     cdc.send((uint8_t *)msg, strlen(msg));

Could you help me?
Greetings
Carlos