All Questions
266 questions
1
vote
1
answer
1k
views
STM32F407VET6 - How can I handle frame and noise errors in UART?
I'm receiving data in UART Rx with DMA and I need to make it immune to disconnections. Now, sometimes I can recover the communication after a disconnection, but I need to recover it always.
Using the ...
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
2
answers
168
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 ...
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
2
answers
782
views
Framing Error in STM32G4 LPUART
I have built a discrete buck charger circuit which is controlled by an STM32G4. The G4 is simultaneously measuring voltages, regulating currents, temperatures and communicates to a BMS via UART.
Now I ...
0
votes
0
answers
50
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
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 ...
1
vote
1
answer
1k
views
STM32: USART interrupt triggered with no flags
I am using USART1 on STM32L051 with interrupts for serial communication. I start my program by sending 5 bytes from MCU to PC, which works fine, but then a USART interrupt gets triggered with only TXE ...
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?...
0
votes
1
answer
231
views
Interaction beween DMA transmission complete and peripheral interrupts
I have two related questions regarding using DMA with an STM32 chip. I'm using STM32F031C6, but the answer should apply to other models.
I setup the USART to issue a character match interrupt. I'm ...
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/...
1
vote
2
answers
145
views
Which struct variable for UART needed to communicate through ST-LINK module for this STM32 board?
Regarding this STM32 board. I want to send character to it by from a terminal program using ST-LINK module and only USB. I can do that by using USB to TTL converter. For instance I enable the pins of ...
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
506
views
Trying to find and bridge USART pins from the manual of an STM32 board
I am trying to solve an issue regarding a firmware with this 64-bit Nucleo Board.
I have the hex file and can see the ready source code but when I upload the firmware I am not able to communicate ...
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 ...
14
votes
4
answers
48k
views
Clearing USART (UART) interrupt flags in an STM32?
I am using an STM32F105 to communicate with a Linx GPS chip using a UART.
If I don't use interrupts (if I just poll the RX flag) then it works just fine. But I'm getting unexpected results when ...
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
71
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
126
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
105
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 ...
2
votes
1
answer
448
views
Programming the STM32F446RE with a CH340G module
I would like to know if it is possible to program an STM32F446RE MCU with a CH340G converter. And if it is possible, then how?
0
votes
1
answer
221
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
150
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
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 ...
1
vote
3
answers
5k
views
HAL_UART_Transmit_DMA function sending wrong data
I am trying to use UART with DMA,
before the DMA I tried polling method with while(HAL_UART_Transmit(&huart2, (uint8_t *)rs485TxBuffer, 17, 100) != HAL_OK); ...
-1
votes
1
answer
615
views
RS485 receiving data corruption
This was my first topic, RS485 Tutorial Issue. I referenced because of the schematics.
I solved the problem in above topic, I forgot to pin settings for DE and RE pins.
I have a different problem now.
...
0
votes
3
answers
2k
views
Sending int16_t or uint32_t data over serial on STM32F103 microcontroller
I designed a device which includes many sensors. These sensors are constantly sending information, every 400 ms, do there are series of data which reach the microcontroller (STM32F103). I want to ...
0
votes
1
answer
582
views
How to configure CDC (VPC) on the STM32 Nucleo F401RE board?
I am trying to establish communication between my host machine (running Ubuntu 22.04) and the STM32 Nucleo F401RE board. I only need to transmit data from the board to the host computer (only single ...
2
votes
1
answer
622
views
STM32 usart interface sends data but "128" is added to each sent byte
I'm using the newest version of stm32cubemx to config my hardware. I'm using a Waveshare STM32H743 dev board and it's completely healthy and uClinux works(I can easily communicate with it using that ...
1
vote
2
answers
205
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
471
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
715
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 ...
1
vote
3
answers
2k
views
STM32F4 and SIM800L logic level
I am currently using an STM32F401RE that I have to interface with a SIM800L GSM module via UART. In a first "toy example" I used Arduino and found no problems, but passing to the STM MCU I am unable ...
1
vote
0
answers
608
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 ...
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
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
299
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
563
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
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
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 ...
1
vote
1
answer
33k
views
STM32F0 UART + DMA + Interrupt with STM32CubeMX HAL 1.2.1 problem
Hello fellow electronics engineers!
I'm having a bit of a problem with setting up the STM32F072-Nucleo board as a small shell (I want to send commands via UART and set/get various settings of the ...
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....
2
votes
1
answer
927
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 ...