@harry123 wrote:
- Will the same STM UART transmit receive code that is used for VCP i.e teraterm/putty works for AT91SAM
The whole point of the standard USB device profiles is that the device is completely oblivious to the nature of the host - it neither knows nor cares whether the host is a PC or a Mac or some sort of Linux or whatever.
Similarly the Host is completely oblivious to the nature of the device - it just sees a standard Virtual Serial Port.
So the question is: does your SAM board support a VCP?
You can easily find out by just plugging it in - does a VCP device appear?)
It will probably appear as a /dev/ttyACMx (maybe a /dev/ttyUSBx) ::(:(:(
https://community.st.com/t5/stm32-mcus-products/communication-between-nucleo-f411re-and-raspberry-pi-using-st/m-p/721528/highlight/true#M261168
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.