Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
1 answer
2k views

How to send ADC results over USB to my PC

I'm a beginner in STM32F4 and I want to design a data-acquiring system to send ADC results over USB to my PC. But I'm completely confused with the STM32 USB library. My questions are: Which USB Class ...
Alexander Zhang's user avatar
2 votes
3 answers
2k views

USB-232 converters - rts/cts latency problem

I am integrating the USB controller FT230X into a new product. It interfaces directly with the 32 bit Cortex M4 MCU, the STM32F303x The receive buffer on the STM32 is only 2 bytes deep, which I ...
Dirk Bruere's user avatar
  • 14.3k
6 votes
2 answers
11k views

Possible to power STM32 Nucleo boards with USB battery pack?

I have a wireless-transmitter module connected to a Nucleo board. The sensor draws power (~200 mA) from the Nucleo board's 3.3V out pin. Case A (successful): When I connect/power the Nucleo board ...
boardbite's user avatar
  • 4,972
0 votes
1 answer
896 views

Waveshare USB3300 board with stm32f429

I am trying to hook up the Waveshare USB3300 to a stm32f429 discovery board. I have been having an issue getting it to work. It has two pins that specify 5V and two pins that specify 3V. I am not ...
user45454's user avatar
3 votes
2 answers
3k views

USB data serial termination resistors. Need them for STM32F2 micro? If so, what wattage?

I'm a little confused. The STM32F2 datasheet says only this, vaguely stated in the features: HNP/SNP/IP inside (no need for any external resistor) Is that referring to the D+/D- termination ...
bcsteeve's user avatar
  • 415
3 votes
1 answer
6k views

STM32 USB - Delayed transmit when payload length = 256 (or 512, or 768...) bytes?

I am implementing USB communications on a STM32F105, using ST's USB Library v2.1.0. It communicates as a CDC class Virtual COM Port ("VCP"). I'm using the embedded Full Speed PHY. I've started with ...
bitsmack's user avatar
  • 17k
5 votes
1 answer
22k views

STM32 VCP - Receive data from PC

I am using STM32 HAL VCP firmware generated by CubeMX on STM32F4 discovery board. The Virtual COM Port works, I can transmit from the microcontroller to the PC as many messages I want. But in the ...
Milan Tenk's user avatar
1 vote
2 answers
8k views

STM32 USB CDC: How to stop device transmitting via USB when not connected

After over 3 weeks of testing and debugging, I have finally got my STM32 transmitting data reliably over USB. The problem is it NEEDS an application on the other side of the USB to consume the data. ...
Galaxy's user avatar
  • 521
1 vote
2 answers
1k views

SPI to USB converter Question (for STM32F105)

I have a question regarding which SPI to USB connector to choose and what the main difference is between them. All i want to to is monitor the SPI activity going on which is possible through an SPI ...
user2464665's user avatar
11 votes
6 answers
16k views

STM32 USB VCP bug

I have been working on a project for the past two weeks now and debugging this one issue has taken up this entire week. Wondering if anyone can help, I will try to be as explicit and clear as possible....
Galaxy's user avatar
  • 521
4 votes
1 answer
12k views

STM32 Virtual COM port baud rate

I'm using the STM32 VCP firmware and I want to transmit data to my PC from STM32F4 discovery board. The configuration of the virtual COM port is fine, the properties are the following in device ...
Milan Tenk's user avatar
0 votes
1 answer
2k views

STM32F4 VCP transmit/receive data

I'm using STM32 VCP firmware on STM32F4 discovery. I generated the code with CubeMX and I could successfully integrate it into my Eclipse project. After calling the initialisation functions, the ...
Milan Tenk's user avatar
0 votes
2 answers
1k views

Current taken from USB by STM32F3 Discovery board?

I am trying to find out what the board draws from the USB supply at max MHz. I really don't want to cut cables if this info is available somewhere already
Dirk Bruere's user avatar
  • 14.3k
2 votes
1 answer
3k views

USB Busy when transmiting data

WHat should I do when I am sending data using USB, when the callback in my firmware gives me USB BUSY? Once, I received USB Busy state, I could no longer send data to my host from my firmware, but my ...
Tim's user avatar
  • 929
4 votes
1 answer
3k views

USB termination on STM32F437xx

I'm about to layout the USB connection on our boards and wondering whether the termination resistors and pull-up on D+ are necessary when using the STM32F437xx. The datasheet tells: ...
Arne's user avatar
  • 1,855
5 votes
1 answer
20k views

How to get USART and USB-Serial working on the STM32F4Discovery Board?

I'm programming a STM32F407VG chip on the STM32F4Discovery board using CooCox CoIDE. I've stitched together a program based on some examples and tutorials I found online to get USART1 through pins ...
user2218339's user avatar
7 votes
9 answers
24k views

STM32 USB: detecting connection and disconnection

Using STM32F4 USB Mass Storage Controller example in Device Mode, how do you detect connections and disconnections with a host controller? I tried polling the VBUS pin state yet it could be high from ...
David's user avatar
  • 175
-1 votes
1 answer
820 views

USB Serial Communication for STM32F401C-Discovery using Keil uVision5

I have developed a STM32f401c-disco board using Keil, and next I would want to be able to send data out (say just a "hello" string) via the serial link USB-ed back to my PC and show it (I have ...
LCS's user avatar
  • 25
6 votes
1 answer
10k views

USB interface with STM32

I'm experimenting with native USB in STM32. I've not found any "step by step", or a little more well structured tutorial, how to implement CDC or mass storage for example. I've found some examples, ...
erbal's user avatar
  • 169
1 vote
1 answer
2k views

STM32F102 USB Programming

I am currently designing a board for a STM32F102 chip which needs to be able to use the USB bus to transfer data while the chip is running. However I also want to be able to program the chip through ...
Nick's user avatar
  • 149
2 votes
1 answer
3k views

What USB class should I implement?

I'm playing around with STM32F4 Discovery board and libopencm3. I want to send data acquired from ADC channels over usb and display some charts on the computer. After doing some research on USB class ...
Ashton H.'s user avatar
  • 811
8 votes
2 answers
20k views

What exactly does OTG_FS_SOF do? Is it vital or imperative to USB host mode?

When using the USB host mode, the STM32 has a pin named OTG_FS_SOF that ST gives very little useful information (in both Datasheet and USB tech documents) other than it has something to do with ...
user44055's user avatar
2 votes
1 answer
5k views

Making a high speed USB communication from STM32F4 and Java on Linux PC

I have a STM32F4Discovery board and I try to communicate between a c program(with no OS)on the board and a Java program on ubuntu pc. I have found many tutorials like this about USB but they all try ...
mehdix's user avatar
  • 121
0 votes
3 answers
939 views

STM32-H407 write program with USB mini cable (USB-OTG)

I have Olimex STM32-H407. Manual says you require JTAG/SWD cable. Until I get JTAG/SWD cable, I am trying to write program on the board with USB mini cable. Is it possible? My PC or IDE (...
nelm's user avatar
  • 79
2 votes
1 answer
5k views

STM32 - PC serial communication

What are the available options or ways to connect the STM32 discovery board using UART to a PC via USB or the serial port? What is the required hardware/cables?
rxjsisfine's user avatar
3 votes
0 answers
4k views

STM32F4 USART USB communication with PC?

I am trying to use STM32 provided example of USART called "HyperLink" which basically runs USART1 on ports PA9 and PA10. The problem is that my computer does not find any new COM ports. Do I need ...
Arturs Vancans's user avatar
0 votes
2 answers
375 views

Why do I have to unplug the STM32F4 discovery card to update program?

I am starting working on embedded programs using the STM32F4 discovery board and the Atollic Lite PC software. Every time I edit, recompile and attempt to download the revised program, it tells me ...
mich's user avatar
  • 1
6 votes
1 answer
4k views

USB CDC-ACM Class Driver on STM32F4 [closed]

Simply my project is to connect a Huawi USB modem to my STM32F407 Discovery board, and start using AT commands to send text SMS. so here is what I've and what I want :) I've OTG USB capability on my ...
Embedeer's user avatar
2 votes
4 answers
9k views

USB-MIDI Interface with STM32F4 Discovery?

I've got an STM32F4 Discovery Board and I'd like to use/configure it as an USBMIDI device but this standard device class is not (fully) supported by the USB libraries supplied by ST. Any hint? Any ...
CLoNet's user avatar
  • 21
2 votes
2 answers
4k views

Throttling data from USB serial connection on STM32 microcontroller (flow control)

I've just integrated the code from ST's STM32 USB Virtual Com Port example (stm32_usb-fs-device_lib.zip from here) with my project in order to get the STM32 to appear as a Virtual Serial Port. ...
Gordon Williams's user avatar
4 votes
4 answers
34k views

How to enable serial emulation through USB in a STM32F4 Discovery board?

I've been searching for this and still haven't found anything about it. This board connects directly to the host PC with a USB bus. Is it possible to emulate a serial port in this case?
ivarec's user avatar
  • 973

1 2 3
4