Takeyoshi,

Thank you for the pointer to the sam_bringup.c code! I brought some of the
SAMA5D3-Xplained code to the SAMA5D2-XULT sam_bringup.c, and got the USB
2.0 HS port to work with the CDC ECM driver.

I pushed my code to the branch feature/sama5d2-peripheral-support
<https://github.com/starcat-io/incubator-nuttx/tree/feature/sama5d2-peripheral-support>
.

I'll do a pull request after I do some more testing.

cheers
adam

On Sat, Feb 29, 2020 at 6:05 PM Adam Feuer <a...@starcat.io> wrote:

> Takeyoshi,
>
> Cool, thanks! I probably forgot to do the USB (and other peripheral) init
> in sam_bringup.c. I will try that tomorrow.
>
> cheers
> adam
>
> On Sat, Feb 29, 2020 at 6:03 AM Takeyoshi Kikuchi <
> kiku...@centurysys.co.jp> wrote:
>
>> Adam,
>>
>> Added initialization processing to sam_bingup.c and confirmed that RNDIS
>> was recognized. I'm still debugging and haven't made a patch yet.
>>
>> --- Host side dmesg ---
>> [49797.317128] usb 1-1.1: new high-speed USB device number 4 using
>> ehci-pci
>> [49797.397228] usb 1-1.1: New USB device found, idVendor=584e,
>> idProduct=5342, bcdDevice= 0.01
>> [49797.397232] usb 1-1.1: New USB device strings: Mfr=1, Product=2,
>> SerialNumber=3
>> [49797.397234] usb 1-1.1: Product: RNDIS gadget
>> [49797.397236] usb 1-1.1: Manufacturer: NuttX  <------
>> [49797.397238] usb 1-1.1: SerialNumber: 1234
>> ----------------
>>
>> On 2020/02/29 9:28, Adam Feuer wrote:
>> > Hi,
>> >
>> > I'm working on SAMA5D27 peripheral support, specifically right now USB
>> 2.0
>> > HS. I ported some code from the SAMA5D36-Xplained board, and got it to
>> > compile. But the USB port doesn't appear to work. I haven't done much
>> > debugging yet, but I thought I would reach out for help.
>> >
>> > Has anyone else got the SAMA5D27 USB ports to work?
>> >
>> > Here's my code so far:
>> >
>> >
>> https://github.com/starcat-io/incubator-nuttx/tree/feature/sama5d2-peripheral-support
>> >
>> > cheers
>> > adam
>> >
>>
>> --
>> ---------------------------------
>> Takeyoshi Kikuchi
>> kiku...@centurysys.co.jp
>>
>
>
> --
> Adam Feuer <a...@starcat.io>
>


-- 
Adam Feuer <a...@starcat.io>

Reply via email to