Skip to content

How to USB CDCACM on Native zephyr samples or your own code. #225

@KurtE

Description

@KurtE

Wish there were more examples or in Zephyr world samples that can be easily built and run on
the Arduino boards.

For example: what does it take to build for Giga or Portenta H7 a native zephyr sketch that
I can output data serial data out over USB. (USB_NEXT)

I know there is a USB CDC example:
(.venv) D:\zephyrproject>west build zephyr/samples/subsys/usb/cdc_acm --pristine always --build-dir build -b [email protected]/stm32h747xx/m7
That builds, but when I try to run it no USB device shows up for the portenta. Also there is an issue on it:

zephyrproject-rtos/zephyr#96844

But what I am wondering, is does one have to do things like, have the code to to generate a proper
USB Descriptor for the Arduino board, with the proper PID/VID, etc...

What else, that is not part of the Zephyr setup, does a sketch/app need to add, to run something like this.

Sorry, I know I am not being overly specific and I know that this is not also specific to USB. That is there appears
to be a lot of the modules/devices where the definitions for them are in the ArduinoCore-zephyr variants
versus in the zephyr/boards.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions