All Questions
266 questions
0
votes
0
answers
57
views
Using two UARTs to receive causes one UART to save data from another
I am working with the STM32-H7 microcontroller and am attempting to receive bytes from another microcontroller and then printing to Putty using the USB UART. I am using USART 2 and 6 with interrupts ...
0
votes
0
answers
49
views
Why my serial monitor receive reverse byte from STM32F407 UART?
I am using Keil STMF407ZGT6's USART1 to send some data(encoded in UTF-8) which is "00000" to my pc(x86_64). My usart setting is 9600 baud rates, 8 bits data without parity, 1 stop bit. But I ...
0
votes
0
answers
62
views
STM32H7 CortexM4 DMA problem
I do have a STM32H755ZIT6 as a UART receiver via DMA on the CortexM4 core and STM32F103CBT6 as UART transmitter.
Transmitter sends 8 bytes [0,1,2,3,4,5,6,7]
I read ...
0
votes
2
answers
58
views
How to disable Tx line of USB to Serial converter?
I have a working system where using a CH340 based USB to Serial converter I am sending data over UART to an ATMEGA16 microcontroller at a baud rate of 9600. Now I am trying to implement an other ...
0
votes
2
answers
88
views
Efficient Padding for UART to Minimize Power Consumption
So, I am implementing a custom protocol over UART (data field in the packet is fixed at 8 bytes + contains a len field). If the data len is less than 8 bytes, 0xFF is being used for padding. I ...
0
votes
0
answers
63
views
How to work with UART to make communication between stm32 and hmi nextion display in noisy environment?
in an ultrasonic generator project, I am using an STM32F334 microcontroller as the main controller and an HMI Nextion display (model NX8048T070) that includes another STM32 for driving the monitor. I ...
0
votes
1
answer
109
views
What is the real transmission speed in UART?
I'm trying to transmit data at 6.144 Mbit/s through the UART port of Nucleo-H723ZG microcontroller. For reading on the PC, I'm using Free Device Monitoring Studio. Based on my UART parameters, I ...
0
votes
0
answers
1k
views
STM32 HAL_UART_RxCpltCallback how to use it properly
I am developing an STM32H750 PCB for a future project and I am doing some tests on an STM32F103 to get familiar with STM32CubeIDE.
I am facing a problem with the ...
1
vote
0
answers
58
views
How to configure STM32 UART TX to generate a decodable signal?
I am trying to transmit data from an STM32F411 (blackpill) via UART, and am having trouble generating a signal that works.
The problem is that, when configured with the default GPIO settings, the UART ...
0
votes
1
answer
70
views
A7682E LTE modem parse file downloading with UART
I need to parse the data that SIMCOM A7682E modem is sending to the UART.
It seems simple until I tried to do that. The main problem is that modem does not waiting between data packets. So there is no ...
0
votes
1
answer
125
views
Power via UART breaks MCU
I have some modules, each with their own STM32 MCU, connected on the same power supply. These modules are communicating via UART.
When plugging in multiple units I get the problem that modules are ...
0
votes
0
answers
102
views
UART only succesfull on first transmit
I have a STM32 NUCLEO-L031K6 board that I am trying to test some UART on.
Following this guide: https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Step3_Introduction_to_the_UART
I get TeraTerm to show &...
0
votes
0
answers
89
views
STM32H7 CortexM4 DMA issue
I'm trying to use USART + RTS only + DMA(non circular, peripheral to memory, DMA1 Stram0) on STM32H755ZIT6's M4 processor.
I and D caches are enabled.
My code is working on M7 but it does not works ...
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
1
answer
149
views
STM32F103 UART DMA transmits corrupted data sometimes
I`m using STM32F103CBT6 core with UART via DMA on 9600 baud rate.
The device in idle state transfers data between controller and bill validator unit. In the same time I`m sniffing the data that are ...
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 ...
1
vote
2
answers
204
views
STM32 UART only works while ST-Link is connected
I'm using an ST-Link broken off from a NUCLEO board to program a custom board with an STM32G4A1 on it. The issue is that UART transmission only seems to work while the ST-Link is connected (verified ...
0
votes
2
answers
469
views
STM32 Help receiving serial data sent from python's pyserial
I need some help communicating between python's pyserial and an STM32f030R8 microcontroller. This is for a 2 DOF robot which has a python base GUI. The GUI will send, via serial communication, the ...
2
votes
3
answers
714
views
Confusion with polling data by an MCU using UART
I'm using an MCU board(STM32 with HAL) and basically polling data from a device using serial protocol. The MCU sends a fixed byte array(6 bytes) to the device, and in response it receives a fixed byte ...
0
votes
0
answers
307
views
Smart Card (SIM Card), connect to stm32 via USART
After get ATR and send PTS, I tried send APDU, but response always the same as APDU which has been sent.
I tried to change the frequency for USART (clock) and baud rate, after I tried to change PTS ...
0
votes
0
answers
50
views
STM32U585 LPUART Half-Duplex Config
I am trying to configure the LPUART1 on STM32U585 in single-wire half duplex mode. As I understand, in half-duplex mode, only one pin is configured which is used to send and receive data. I need the ...
1
vote
0
answers
605
views
STM32H7 UART DMA Issue
I have two MCUs, first one is STM32F070F6P6 which sends data over USART2 TX DMA and second one is STM32H755ZIT6 which receives data over USART2 RX DMA.
Also notice that STM32F070F6P6's TX Pin ...
1
vote
1
answer
105
views
STM32 UART in LIN mode sends with incorrect baudrate but not in asynchronous mode
I am using the UART of an STM32F103C8T6. When selecting the Asynchronous mode via the CubeMX everything works fine using either of the functions ...
0
votes
1
answer
297
views
Why would a UART only transmit the first character and then stop?
For some context I'm using a STM32H7A3 chip: reference manual
With this UART and pin configuration:
...
0
votes
2
answers
562
views
STM32 UART without HAL library
I am writing register level code for STM32F4 & in my code there is a timer for calculation of the frequency of an input signal.
I am trying to implement a UART for sending calculated data to ...
0
votes
2
answers
162
views
STM32F4 USART: start bit detection sequence when oversampling by 8
I'm using the USART on an STM32F4 series MCU. I'm wondering how the receiver detects the start bit when oversampling by 8 is set.
The reference manual says the start bit detection sequence is the same ...
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
3
answers
172
views
STM32 communication [closed]
I am using two stm32H7A3ZI-Q.
Both boards are used to generate data that is transmitted and received (IT) via UART to each other.
This data is used to as a variable to calculate a set of equations in ...
2
votes
1
answer
919
views
STM32 - HAL_UART_Receive first byte is always zero
I am implementing communication between Nucleo-F072RB board and an evaluation board with TI BQ75614 BMS IC.
I have succeeded to communicate with the IC using 1 Mbps UART interface, successfully ...
0
votes
1
answer
89
views
What is expected error rate and drop rate on ST-Link VCP USART?
What is expected error rate and drop rate on ST-Link VCP USART?
On the Nucleo STM32F446RE, my code reads the USART VCP (of ST-Link) and echoes it back. It uses DMA, FreeRTOS, and FreeRTOS queues (...
0
votes
1
answer
343
views
How to receive from UART via DMA on STM32F4?
Thanks to help from this site, my code can send and receive over the STM32F446RE Nucleo UART (using the Nucleo's built-in ST-Link / VCP). I'm now trying to move the receive to DMA, and seem to get a ...
0
votes
1
answer
149
views
How to debug a failing USART?
I have simple code which writes to the USART on a Nucleo board that is connected to ST-Link, and appears on my workstation via VCP over USB.
I'm trying now to port it to a STM32H735G-DK Discovery but ...
1
vote
3
answers
841
views
Scoping the UART on a STM32 Nucleo
I have a Nucleo F446RE, which writes to UART which is handled by the built-in ST-Link over VCP on USB.
I'd like to be able to see the serial signals on my oscilloscope as well. There are two exposed ...
0
votes
1
answer
152
views
How should I debug this ARM Cortex M STM32 UART write?
I have a STM32F446RE on a Nucleo F446RE, and I'm trying to learn how to program the UART to write over the Virtual COM Port (connected to USART2).
I'm able to download someone else's code, modify it ...
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 ...
0
votes
0
answers
283
views
STM32 FreeRTOS UART failing to return from interrupt
MCU is an STM32L422
FreeRTOS (CMSIS-V2), 3 simple tasks, they run just fine on their own.
USART1 is configured to receive data via IDLE detection and DMA circular buffer. Again it works fine on it's ...
1
vote
2
answers
325
views
UART line causes exess current consumption
I'm currently working on a project that involves an STM32WB55 microcontroller, a GPS module, and a LoRa module. I have encountered an issue where, when I put all these devices into sleep mode, I ...
0
votes
1
answer
253
views
Is it possible to send characters to the USART->DR register without the COM port terminal?
STM32 UART
If you send characters via COM port terminal on STM32, then the characters are stored in the USART->DR register.
Is it possible to write something in the code so that without the COM ...
-1
votes
1
answer
177
views
The TXE bit in register SR is not cleared despite writing a value to register DR. STM32F4
UART
Why isn't the TXE bit in the SR register cleared?
The Reference Manual says that the TXE bit is cleared if something is written to the DR register.
It is cleared by a write to the USART_DR ...
0
votes
0
answers
115
views
How to transmit five byte data transmit in UART_DMA?
HAL_UART_Transmit_DMA call in timer interrupt handler to check the output for just now. The output is came but this is not proper output. this method for just call in to the interrupt handler output ...
0
votes
1
answer
333
views
How connect the STlink on NUCLEO f401RE to communicate with STM32F4 discovery?
I have this configuration of MCUs.
I need to know how connect the STlink on NUCLEO to discovery because I need the Virtual com PORT.
0
votes
0
answers
172
views
"Textbook" example of UART doesn't work on stm32f756zg. HAL_UART_Transmit() returns HAL_BUSY
I want to send a message through uart5 of my nucleo board. I configured UART5 appropriately as per https://wiki.st.com/stm32mcu/wiki/Getting_started_with_UART .
Here is main():
...
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 ...
2
votes
2
answers
1k
views
Can I connect a 5V tolerant UART interface to 3.3V GPIO pins configured as a serial port?
I want to connect the telemetry RX/TX pins of a flight controller running this microcontroller to a single-board computer, using the GPIO pins.
According to 1 (ArduPilot mapping), the UART port is 5V ...
0
votes
1
answer
489
views
Convert Arduino Code to STM32 cubeide, [closed]
I giving paramter setting of LoRa module which is [e32 433t20d][https://www.cdebyte.com/products/E32-433T30D] over the Arduino Nano with ebyte [RF setting software][https://www.cdebyte.com/pdf-down....
0
votes
0
answers
38
views
Problem with UART communication with a Pepperl & Fuchs UCC4000 ultrasonic sensor
I have a problem with a Pepperl & Fuchs UCC4000 ultrasonic sensor. This sensor communicates with UART protocol and has data transmit - receive based a kind of checksum encoding. According to what ...
0
votes
1
answer
252
views
Why does the data observed on a UART/RS232 bus look different between a logic analyzer and an STM32 Debugger?
I'm trying to communicate with a BNO055 using an STM32L552ZET6Q microcontroller via UART. The BNO055 is on a separate board, and connected to the STM32 via a 1.5M cable. Additionally, there are ...
3
votes
1
answer
3k
views
STM32 UART single-wire half-duplex communication
I tried to make single-wire half-duplex communication with a UART using the STM32F103C8 controller. In single-wire half-duplex communication, a TX pin is used for transmitting and receiving the data.
...
1
vote
1
answer
211
views
STM32 USART RX with DMA
I'm trying to set up UART communication with DMA using the STM32F103C8 controller. I'm trying to receive data with DMA, but I can't receive data continuously. Can anyone correct me if I made a mistake?...