USB_CDC + SPI

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

Moderator: RoccoMarco

Post Reply
vambwodonk
Posts: 15
Joined: Tue Oct 14, 2014 5:36 am

USB_CDC + SPI

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

Re: USB_CDC + SPI

Post by Giovanni »

Hi,

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

Giovanni
Post Reply