Page 1 of 1

Olimex E407 USB HS + FS null modem

Posted: Tue Aug 03, 2021 2:47 pm
by broucari
Hi,

For debugging board, I want to use my E407 as a null modem usb adapter, It will take a usb CDC on port HS (as master), and slave on the FS port;

I understand, I need to thread and wakeup, but I could not achieved to get correct USB descriptor. Could you point to some code ?

Bastien

Re: Olimex E407 USB HS + FS null modem

Posted: Tue Aug 03, 2021 3:31 pm
by Giovanni
Hi,

The closest thing is the demo STM3F4xx-USB_CDC_IAD which implements 2 ports.

Giovanni

Re: Olimex E407 USB HS + FS null modem

Posted: Tue Aug 03, 2021 6:32 pm
by broucari
Hi Giovani,

I tried but it failed.

I have replaced one usbd2 by an usbd1 at the end of the testhal directory (not demo BTW).

Do you have idea why it does not work ?

Re: Olimex E407 USB HS + FS null modem

Posted: Tue Aug 03, 2021 7:22 pm
by Giovanni
It could depend on a lot of things: ULPI settings, GPIOs, clocks, descriptors. I haven't tested that demo for a while, it is possible that it regressed somehow.

Make it work with a single CDC first to make sure HW is fine.

Giovanni