All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
56 views

STM32F4 USB - Software switch from HOST (MSC class) to DEVICE (CDC class) and viceversa

My application is based on STM32F411VE and, at first, has been configured to work just as a host for usb key devices (please take at look at attached schemes). After some practising I managed to get ...
1
vote
1answer
39 views

What is the difference between Periodic and Non-Periodic Tx/Rx FIFO in USB?

I am trying to understand how the USB module works in the very low level on STM32F4 MCUs (ARM Cortex-M4 core). In the reference manual I read often the terms Periodic and Non-Periodic Rx/Tx FIFO (I am ...
0
votes
1answer
119 views

What's the difference between SAI and I2S?

I'm developing a USB audio device using an STM32F407G-DISC1 evaluation board. For the audio output I was intending to just use the I2S peripheral connected to a DAC. However the only sample code I ...
2
votes
0answers
89 views

Powering down parts of a pcb to conserve power, is it possible? Any caveats?

I'm building a USB 2.0 bus-powered STM32F429-based audio device that is able to run in a stand-alone mode from a phone charger, or running as a USB device when connected to a computer. To comply with ...
0
votes
0answers
32 views

stm32f072rbt6 PCSC SmartCardReader with multiple slots

I use the CCID driver for STM32F072RB, converted to the Hal library. There was a need to make a multi-slot Smart Card Reader (specifically - there will be 3 slots for smart card). In the process, I ...
0
votes
0answers
57 views

STM32 USB Connection

I have a Nucleo f303re development board with support of ST's own USB Device library. Onboard USB port is for ST-LINK so I don't want to unplug its connections. So I tried to implement another USB ...
1
vote
1answer
97 views

USB Strange behavior

I am porting the USB driver from the STM32F4 device to STM32L4 device. It almost works. During the enumeration it sends and receives the information, but the data is not exactly the same as from the "...
0
votes
1answer
402 views

STM32F103 USB CDC [closed]

I have a strange problem with USB CDC mode in STM32F103. I have designed PCB with STM32F103 microcontroller and an accelerometer which streams data through USB to PC. I have used STM32CubeMX wizard. ...
4
votes
3answers
761 views

How to test for USB dropouts on STM32F?

I've got a devices that is really strange, it drops USB periodically. By periodically I mean on a weekly (or biweekly) basis. By dropping out I mean windows loses the handle to the driver. Dropouts a ...
0
votes
1answer
2k views

STM32L4 USB Device with VBUS Sensing

I'm trying to get the CubeMX generated sample CDC application working on STM32l475VG IoT board. By following a document from ST Community, I was able to get the clock configuration right and the CDC ...
1
vote
1answer
2k views

stm32 CDC USB - Unknown device (error code 43) [closed]

I face a problem with making custom PCB with STM32F103C8T6 FS CDC but whole story looked like this. I've made small test app using CubeMX and IAR on cheap PC from china with same MCU - in terminal on ...
0
votes
2answers
597 views

can i be host usb without OTG and USB-A on stm32

Okay, hello everyone ! I'm a little bit confused with USB possibility and stm32 MCU ! I have a stm32l433rb and it has just an usb full speed (device) capabilities. In the other hand, on my hardware,...
0
votes
1answer
3k views

STM32F072C8 - USB communication issue

I am trying to use the built-it USB to implement a simple HID device in STM32F072. Of course, it is not working. This is my first experience with USB, so I needed some help in figuring out what could ...
3
votes
1answer
2k views

STM32F070 - firmware-controlled USB connection and HSE activation

I'm developing firmware for a low power USB 2.0 Full Speed device (12 Mbps) which uses an STM32F070CB microcontroller. The clock source for the USB module will be the High Speed External (HSE) ...
1
vote
0answers
3k views

STM32 USB_CDC Firmware to autodetect by Linux

We are developing a custom board to control brushless DC motors. The board has STM32F405RGTx. We are now trying to make USB CDC communication work. We generated the code using STM32CubeMX. ...
0
votes
0answers
615 views

STM32F401 USB D+ Pull Up

I am using an STM32F401 microprocessor I understand that for a regular STM32F4 I don't need a pull-up for USB However I don't know what happens for the case of OTG Do I need a pull up on the D+ line ...
4
votes
2answers
2k views

How to _disable_ USB on STM32F1xx?

I have a battery-powered device using an STM32F107. The device works and I am currently working on minimizing its power consumption. One of the bigger current draws is the USB subsystem itself, using ...
3
votes
0answers
1k views

STM32F0 USB device - unexpected Device_Qualifier descriptor request

Edit I may not have asked the correct questions here. Please do not attempt to answer before I edit again to remove this message. Summary I'm developing firmware for a USB device, and I can't get ...
0
votes
1answer
1k views

STM32F7 CubeMX FreeRTOS and USB CDC

I'm using FreeRTOS generated with the help of CubeMX. Everything was working fine until I added USB CDC unit. When I used CDC_Transmit_FS() before starting kernel, I could receive data over USB. ...
0
votes
1answer
1k views

Laptop does not detect Stm32f4 discovery board

I am newbie here , if i posted wrong site i am sorry :) I have bought discovery board to learn arm programing , but when i plug board to laptop via usb, there is no sign of 'device plugged' even on ...
4
votes
1answer
418 views

How can I detect a safe eject of mass storage device on STM32?

I use usb module of STM32F103C8T6 to be a mass storage device, which allows user to edit some config files in the project. I want to exit mass storage mode as soon as the user eject the disk, I tried ...
0
votes
1answer
1k views

STM32 HAL_PCD_EP_Transmit work only once

I'm developing a USB composite device with the Nucleo-F446ZE. I'm adding a Virtual com port and I have some trouble to send back data. I receive everything from the computer but when I try to send ...
1
vote
1answer
814 views

STM32F4 USB CDC Communication transfers only specific characters without noise?

I'm working with STM32F407VET6 board. And I'm trying to make communication between my PC and Micro Controller via sample which transmits what it receives through USB. I've created USB Device example ...
6
votes
1answer
2k views

Why does usb have start of frame packets?

I'm developing some high-speed USB firmware for the STM32F746VG, and on page 1411 (under section 37.16.3, step 2), it tells me that I should enable start of frame interrupts. I know that usb hosts ...
0
votes
2answers
3k views

STM32F7 Discovery USB CDC using CubeMX [closed]

I've created a project in CubeMX for my F7 Discovery. I followed instructions form here. However, in my Device Manager on Windows nothing appears. When I used precompiled code from link I was assured ...
2
votes
4answers
2k views

STM32 Audio class USB not recognized as audio device

I'm learning about USB classes using STM32F429ZI(on Discovery board). I already tried to implement Communications device class (CDC) and it worked well, now I tried to do some simple test with Audio ...
5
votes
1answer
2k views

STM32F4 USB VCP, PC receive all 0x00

I'm a beginner in STM32F4 and I'm learning how to use the USB Virtual COM Port ("VCP") to transmit data from the microcontroller to a PC. The virtual port is detected as "STMicroelectronics Virtual ...
3
votes
1answer
5k 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 ...
1
vote
1answer
1k 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 ...
2
votes
1answer
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 ...
0
votes
2answers
1k views

Low voltage (<3V) signalling on USB DP/DN - will it work?

I'm using a microcontroller (specifically, the STM32L1) that integrates a USB device full-speed interface. I want to supply it with just 2V VDD, which is within spec for that micro. But that means USB ...