cancel
Showing results for 
Search instead for 
Did you mean: 

USB communication on Nucleo-64 STM32F401RE

nirb
Associate II
Posted on November 16, 2016 at 10:25

Hi,

Currently I implemented SPI communication to external device using Nucleo-64 stm32f401RE.

SPI implementation is based on Bit banding and not the HW SPI.

Clk rate is ~3.2MHz

Since the Nucleo-64 is used to communicate to the PC by serial communication max baud rate is 115200.

Device is used for Automatic test environment and suppose to support high speed communication with PC.

write command time from PC to device and ACK recieved back to PC is ~4ms.

read command time from PC to device and DATA recieved back to PC is ~5ms.

Is there any option to use a USB communication instead of serial to have faster command time???

if not how can I improve my code to support faster reply to PC.

As far as I understand the bottle neck is the data back to the PC.

Thank you for your help.

Code attached.

Nir

2 REPLIES 2
Posted on November 16, 2016 at 17:19

Since the Nucleo-64 is used to communicate to the PC by serial communication max baud rate is 115200.

I'm not sure where this assertion comes from, the VCP seems capable of 921600 baud here. Perhaps you need to use some different terminal software?

You are connected to the ST-LINK's STM32F103, not the STM32F401RE. To get USB connectivity to the F401 you'd have to add a USB connector wired the to the right pins.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
nirb
Associate II
Posted on November 16, 2016 at 21:10