All Questions
182 questions
0
votes
0
answers
31
views
Power efficient firmware update over USB between 2 pairs of STM32 chips
I have a very specific project and as I am new to using the USB features I am unsure what MCU to choose and how to design my USB port on my board. If possible I would like to use an STM32, simply ...
0
votes
1
answer
114
views
USB-C device doesn't work
I made a USB device based on STM32 blue pill board (STM32F103C8T6) having USB-C female socket. It works well when connected via a type C to type C cable. The Blue Pill board itself doesn't have any ...
0
votes
0
answers
58
views
STM32H750 isochronous missing packets
I am making a USB HS open-source sound card using STM32H750. Essentially, I got the USB audio class template and modified it to USB audio class 2. And, I have several problems with packets being ...
2
votes
1
answer
97
views
STM32H750: Reset timer on HS USB SOF
I am making a sound card with STM32H750 and USB3300. I am using standard Stm32CubeMX USB driver.
To do that, I need to track the number of I2S sample rate clocks per SOF. The idea is to use TIM5 as a ...
0
votes
1
answer
59
views
Can I use a 16 MHz HSE for USB and USB DFU on an STM32F103?
I'm working on a PCB with an STM32F103C8 and a 16 MHz HSE.
USB FS is working as intended so far (I can send USB HID keystrokes).
I haven't tried flashing it using USB DFU yet.
I read in PM0075 (page 9)...
0
votes
1
answer
104
views
How do I design a USB interface to program a custom microcontroller?
I am trying to design a microcontroller board that I can program over USB (like an Arduino). I would like to use the STM32L412KBU3, and going through the data sheet I see that USB_DM and USB_DP are on ...
0
votes
0
answers
39
views
[STM32F412]Flash writing problem with USB Host active
I've a problem on the STM32F412 with flash writing and USB Host initialized.
When USB Host is active and I attempt to write to flash, the software execution blocking at FLASH_FlushCaches function, on ...
0
votes
0
answers
101
views
Getting "Target not found" after programming an STM32H755 using an external debugger
I used to program and debug using the USB port on my STM32H755 Nucleo-144.
After flashing the code with JTAG, I can't connect the board to my PC anymore; it says "No target found". Is there ...
0
votes
1
answer
220
views
STM32 - Implementing UART to USB convertor
Considering STM32 Nucleo Boards, implementing a communication by serial port with a computer is a matter of using UART on the Nucleo Board and connecting it to the computer via USB, where you emulate ...
0
votes
2
answers
166
views
PCB Design review for STM32 USB-UART bridge
Could anyone review the schematic for CH340 chip. My goal is to drive STM32F030C8T6 automatically into bootloader mode while uploading code.
Unfortunately I am not able to program this board without ...
2
votes
3
answers
3k
views
Why are CC1 and CC2 only connected to USB-C?
This is a schematic where USB-C is used to power a circuit device.
Notice that there are only VBUS and CC1 and ...
0
votes
1
answer
100
views
How to position the 1.5 kΩ pull-up resistor on USB Type-C D+ connection?
I am designing a TYPE C plug with STM32L432KC MCU and was wondering how to physically position the 1.5 kΩ pull-up resistor on D+ connection.
(male plug --- ft323 --- mcu)
Should it be next to the MCU ...
1
vote
2
answers
209
views
STM32F417 DFU bootloader fails to start HSE crystal
I have a problem with a custom STM32F417 board. On some boards the DFU bootloader works fine, while on other ones it fails to connect by USB. In my custom firmware all boards connect fine by USB.
...
0
votes
0
answers
178
views
Role of RTS and DTR With CH340X, STM32WLE5, STM32CubeProgrammer
I am trying to (design a PCB where I will) program a STM32WLE5C8U6 via UART from my laptop using a CH340X in between. The CH340X shows this application circuit in the datasheet:
I understand what the ...
0
votes
1
answer
188
views
Using UART/USB Bridge vs straight USB stm32
I've been doing some research over the last few days into implementing usb communication protocol on the stm32. I know that the stm32 has dedicated pins for USB communication, however I still see a ...
0
votes
1
answer
213
views
How to format data properly before using CDC_Transmit_FS?
I am using STM32CubeIDE to program 12 bit ADC(P/N = ADC128s102) which has 8 bit of control register and return 12 bit in MISO. Following is scope result. I am able to return some data which I think it ...
0
votes
1
answer
216
views
FatFs. How to find the end address and start address of a file on a USB drive?
USB drive connected to STM32F407VGT6
I need to find the end address and start address of text and ...
1
vote
2
answers
270
views
STM32 USB Full Speed and card reading causes slow USB speed
I-m trying to accomplish best USB speed through STM32H743 MCU to PC.
First of all I was testing just receiving data. I was sending sending 8192 bytes from MCU to the pc without any other tasks, and ...
3
votes
1
answer
402
views
Can someone explain USB ESD-protection on Nucleo 144?
On the STM32 Nucleo-144 eval board, there are 3 different ESD protection devices for the USB port:
U19 = USBLC6-2SC6
U21 = ESDA7P60-1U1M
U22 = ESDALC6V1-1U2
Source:
https://www.st.com/en/evaluation-...
0
votes
1
answer
92
views
STM32 with CP2102N able to receive but unable to transmit
I have a PCB that I have designed which uses an STM32 and CP2102N. I am able to receive data sent from my computer to the board when I plug it into my computer, but I am unable to send data from the ...
2
votes
1
answer
903
views
USB,HID. How to use 0x06, 0x00, 0xFF, //Vendor Defined Page 1?
What is "0x06, 0x00, 0xFF, // Usage Page = 0xFF00 (Vendor Defined Page 1)" used for?
USB HID Report descriptor.
**
In the USB documentation I only found this:
Unknown Usage
Unknown usages ...
1
vote
1
answer
94
views
Computer interface with USB devices
I'm making a computer peripheral that will be connected via a USB.
The main brain is an STM32 ARM MCU, it has USB support natively.
It has multiple sub-peripherals inside and it uses I2C and SPI to ...
2
votes
1
answer
370
views
USB, HID. Correct "Usage Page (Button)" declaration
Why do I need 5 commands to declare a Usage Page (Button)?
If these commands are not for the button, then what are they for?
...
0
votes
1
answer
198
views
0
votes
0
answers
764
views
One connector pin connected to TX (or RX) and DP (or DM) of STM32 microcontroller
I have a project here that needs the STM32L432 to operate in two modes, UART and USB. It will be connected to another system via a 5 (or 4) pin connector. It operates mainly in UART mode with pins ...
2
votes
1
answer
1k
views
STM32 USB DFU circuit
I would like to program a custom board based on STM32F446RET MCU by using the default STM32 USB DFU bootloader. I did the following connections:
board VCC to USB cable and VBUS_FS
board GND to USB ...
2
votes
1
answer
395
views
USBLC6-2P6 - does the direction matter?
I'm designing a simple PCB with STM32F4 MCU and USB, and I want to use USBLC6-2P6 for ESD protection. However, using the EDS protection device as presented in the datasheet creates the need for me to ...
0
votes
1
answer
62
views
Connecting TTL-232R-5V-PCB to STM32F103C8T6A bluepill via OTG and installing boot to this STM32 microcontroller
I have TTL-232R-5V-PCB and STM32F103C8T6A bluepill board. I am working on installing bootloader to this bluepill board on that way, I have searched on the web about it but all people connected them ...
0
votes
1
answer
834
views
STM32F103 programming using a USB port and CubeProgrammer
I created a custom board with an STM32F103C8T6 microprocessor and Iwant to use the USB to program the board using the STM32CubeProgrammer. I found out thanks to a user on Stack Exchange that it is not ...
0
votes
0
answers
292
views
Need to read USB CDC data (UART over USB) from instrument using STM32F103C8T6 Blue Pill
I have our old instrument which are showing flow over USB port using (Communication Device Class ASF Example). I am able to get data over UART 115200 using Teraterm.
I want to have this data parsed ...
2
votes
2
answers
333
views
Programming STM32F103C using USB
What's the Problem?
I created a Custom 'Development/Discovery'-Board and want to program it using USB. I saw in the Datasheet AN2606 that it is not possible to flash the program via USB.
What I tried
...
0
votes
1
answer
106
views
USB used for programming
I am working on a design for an STM32F103.
I use a Micro USB-B connector (as you can see in the following picture).
Can I use this USB to program my STM32 or does it only supply the microprocessor ...
0
votes
0
answers
94
views
STM32F407ZET6 MCU board freezes when USB 3.0 flash drive is inserted into USB port. (USB 2.0 is fine)
I have an inherited code which uses a STM32F407ZET6 MCU with an attached USB-A 2.0 port, the device's purpose is to dump diagnostics data from the device into the USB after prompted by the device menu....
2
votes
1
answer
1k
views
STM32F103 USB - CDC Device Descriptor Request Failed
I'm working on a custom board equipped with an STM32F103C8T6 uC. Such device must act as a USB to CAN bridge. The uC seems ok, I can program and debug it, I can periodically toggle an on-board led. ...
0
votes
1
answer
2k
views
Choosing a microcontroller for a wireless keyboard [closed]
I've had my share of electronics projects and especially microcontrollers projects, having fun on STM32s lately, and I'm trying to pick a microcontroller for building a wireless keyboard but I'm a bit ...
3
votes
1
answer
1k
views
STM32 USB Device IN endpoint doesn't receive any data
I am developping a simple HID Device (a mouse) on a STM32F7 board.
The enumeration works great, the device is recognized as a mouse by the PC.
I use the IN endpoint 3 in interrupt mode. However, when ...
0
votes
0
answers
589
views
STM32F7 can't make USB HS work without ULPI
I'm following a course on USB for STM32 platform. The teacher is using a STM32F4, my board is a STM32F7 (STM32F746G Discovery exactly).
The goal is to develop a USB from scratch, using no library/HAL. ...
0
votes
0
answers
631
views
STM32F103 USB CDC - device descriptor request failed
I'm working on a custom device which has to communicate with a PC over a virtual com port. I'm using STM32CubeIDE with code generated by the included STM32CubeMX. Here's a little information about my ...
0
votes
0
answers
1k
views
Programming a custom made STM32 board via USB
I've designed a custom board using STM32g431cb for a project recently.
My goal was to be able to program the board via both stlink and the usb port depending on the preference. I used the USB_DP and ...
5
votes
2
answers
2k
views
SWD over USB C connector
I'm working on a CAN bus controller with a STMF105 MCU.
The controller is in a waterproof enclosure with a sealed USB-C connector.
I want the option to properly debug with SWD and easy field update ...
1
vote
2
answers
1k
views
Ebyte E32 RF module configuration problem
I designed a PCB with an STM32G474RET6. I used an Ebyte E32-433T30S module. I searched on web and read the datasheet. So, I got some info:
This Ebyte module needs to be configured before transmitting/...
2
votes
2
answers
165
views
Problems increasing VCO frequency above datasheet recommendations
Firstly, yes I contacted ST for answers. Until now, no answer.
I'm using STM32F429 MCU and embedded USB FS PHY. To keep the 48 MHz USB PHY clock the maximum PLL clock that I can achieve is 168 MHz, ...
1
vote
0
answers
491
views
STM32H743 with USB HS, FUSB2805 not detected
I have a custom board with STM32H743VIT6 connected to an external USB HS PHY, the FUSB2805MLX.
I am trying to run a bare minimum example setup in STM32CubeMx. Just including a USB HS connection and ...
1
vote
1
answer
569
views
HAL USB device library transfer complete callback (USB MIDI adaption)
I have been able to implement Zac Rogers USB MIDI adaptation of the Cube MX USB device middleware:
https://github.com/zacrogers/blue_usb_midi
I can send USB midi messages on both F103 and F411. It ...
2
votes
1
answer
1k
views
STM32 always USBD_BUSY after 1 send packet with Windows host and no problems with Linux host
I use STM32G474 and USB in V-COM mode with default transmit function:
...
3
votes
2
answers
1k
views
STM32 USB HID Keyboard skipping key presses
I have an STM32F3DISCOVERY evaluation board which has an stm32f3 mcu on it. I am trying to use the board to emulate a USB keyboard.
I used the STM32CubeIDE to enable USB communication, configure the ...
1
vote
1
answer
83
views
STM32F723 : correct connection for VDD12OTGHS pi
I'm currently designing a PCB for my caving robot.
Initially, I wanted to use a STM32F722ZET6, but as it is currently out of stock, I'm switching for a STM32F723ZET6.
There are a few pins displaced, ...
3
votes
0
answers
503
views
Data Logging Medium: SD Card or USB
I am on a project that requires data logging and I am using an STM32F1 MCU. The amount of data is around 400 bytes per log entry. One of the environmental conditions of the deployment is vibration. It ...
1
vote
2
answers
1k
views
Building a flight controller
I am new to electrical engineering and am having a very hard time trying to build my own flight controller. I think I have the basic idea as I am going off someone else's schematic. I am using easyEDA ...
1
vote
3
answers
5k
views
USB pull-up in STM32F103 (D+)
I've got pretty quick question as a beginner in STM32 MCUs. I design my own PCB board for STM32F103C8T6 uC with a couple sensors (connecting via SPI and I2C). I want to include also an USB connector ...