Olimex E407 USB HS + FS null modem

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
broucari
Posts: 15
Joined: Mon Aug 17, 2015 3:23 pm
Been thanked: 2 times

Olimex E407 USB HS + FS null modem

Post 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
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Olimex E407 USB HS + FS null modem

Post by Giovanni »

Hi,

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

Giovanni
broucari
Posts: 15
Joined: Mon Aug 17, 2015 3:23 pm
Been thanked: 2 times

Re: Olimex E407 USB HS + FS null modem

Post 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 ?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Olimex E407 USB HS + FS null modem

Post 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
Post Reply