Page 1 of 1

USB_CDC + SPI

Posted: Tue Oct 14, 2014 6:38 am
by vambwodonk
I used chibiOS 3.0.0 on STM32F4-Discovery,
Add USB-CDC works OK, then I add SPI driver my USB-CDC stop enumerating

I think issue on spiExchange,
spiExchange(&SPID1,1,NULL,rxbuf);


When I comment SpiExchange(), USB-CDC work again.
Any Suggestions?

Arif,

Re: USB_CDC + SPI

Posted: Tue Oct 14, 2014 7:15 am
by Giovanni
Hi,

You cannot pass NULL there, use spiReceive() if you don't need to send data.

Giovanni