Skip to main content
Associate III
September 25, 2024
Solved

Nucleof446 UART

  • September 25, 2024
  • 3 replies
  • 3879 views

Hi

  • I am trying to communicate between arm processor and nucleo board through uart 
  • The processor has a type b usb , to interface with computer.
  • For the same usb I am connecting my Nucelo board through usb type B mini and sending the data through it
  • When i connect the device to laptop/computer the communication happens, and when i connect nucleo the communication does not happen.
  • Im giving both power supply and uart communication from usb cable.1.jpeg
Best answer by Andrew Neil

@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

3 replies

Andrew Neil
Super User
September 25, 2024

@harry123 wrote:
  • I am trying to communicate between arm processor and nucleo board through uart 
  • The processor has a type b usb , to interface with computer.

So this "ARM processor" has a USB Device connection.

The CN1 USB connector on your Nucleo board is also a USB Device connection:

AndrewNeil_0-1727255027976.png

 

You cannot connect two USB Devices together - a Device can only connect to a Host.

 


@harry123 wrote:
  • When i connect the device to laptop/computer the communication happens

That's because the computer is a Host.

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.
Andrew Neil
Super User
September 25, 2024

What is CN2?

Is that a USB Host port?

AndrewNeil_0-1727255369704.png

 

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.
harry123Author
Associate III
September 25, 2024
  •  YES That USB type A port is used to interface a printer
  • and another port USB type is is used to interface with a computer.
  • And I want to have communication between Nucleo and Processor ( I have attached pdf of processor) .
Andrew Neil
Super User
September 25, 2024

@harry123 wrote:
  • I want to have communication between Nucleo and Processor

The CN1 USB connector on your Nucleo board is a USB Device connection for the Virtual COM Port (VCP) in the ST-Link:

https://community.st.com/t5/stm32-mcus-products/communication-between-nucleo-f411re-and-raspberry-pi-using-st/m-p/721571 

To use that, you must connect it to a USB Host port. That's the way it works.

Instead of using this USB connection, could you use a direct logic-level connection to one of the UARTs on your ARM9 board?

AndrewNeil_0-1727259278863.png

 

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.
Andrew Neil
Super User
September 25, 2024

There's not enough information in that brief document - you need a more detailed technical manual.

But this Mini6045 board seems to be obsolete and no longer supported - so no idea where you'll find that.

 

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.