cancel
Showing results for 
Search instead for 
Did you mean: 

Dumb as A Rock Newbie Needs Help with F070RB Nucleo USB

Sidlauskas.David
Associate II
Posted on March 14, 2015 at 02:56

I've used CubeMX to build a UV5 project that includes USB and CDC Device Class. Right out of the box the project compiles with no problem and runs. It enumerates as a Comm port.

Now all I need are a few simple functions to send and receive to the host. Something like:

int32 SendUsb(uint8_t *buf, uint32_t length)

{

returns number of bytes sent or -error code.

}

int32 ReceiveUSB(uint8_t *buf, uint32_t MaxLen)

{

Returns number of characters read or -error code

}

Would someone please suggest the proper library calls to achieve this. I've read the app note UM1725 and searched the web, but that didn't help me.

CubeMX seems to be a great tool for letting dummies use complex code like USB, and I hope I'm too dumb for it.

Thanks,

Dave

0 REPLIES 0