2016-11-16 01:25 AM
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.2MHzSince 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.Nir2016-11-16 08:19 AM
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.2016-11-16 12:10 PM