All Questions
71 questions
0
votes
0
answers
38
views
Is there a situation where SWDIO and UART2_TX should be connected in a normal design?
I'm reverse engineering the PCB shown. I ran into an issue where whenever I enabled UART2, the debugger would disconnect and have issues reconnecting. After tracing it, I found out that the SWDIO pin ...
0
votes
0
answers
93
views
Why does Modbus communication work on UART4 but not on UART2 in STM32?
I am working with Modbus communication using an external device (Aster TDS Meter) connected via an RS485 module. The Modbus settings for the external device are:
• Baud rate: 9600
• Data bits: 8
• ...
0
votes
2
answers
89
views
STM32L031G6U6 schematic review and questions on programming it
I have mostly spent time with Atmega and Atsam boards and would like to test and learn STM microcontrollers. I have never worked with SMT32 boards as such and some of my questions maybe to obvious. I ...
0
votes
1
answer
61
views
STM32 - compile in debug and release mode - can it be done per file?
Maybe a stupid question - but I searched cand couldn't find a good solution...
I'm running into an issue with memory on my STM32 project.
Is there a way to compile all files in release mode (smaller ...
1
vote
0
answers
74
views
PWMs from microcontroller are resetting
I have been designing an SMPS where the STM32F334R8t6 microcontroller provides the full bridge control signals. The microcontroller board uses a 5 V and 3 V regulator to supply the MCU and the CAN ...
0
votes
0
answers
47
views
Debug Problem of STM32 with Keil
As a beginner I want to learn freeRTOS. Accordingly, I need to have access to the debug section in the KEIL. I test debug with two STM32 Dev Boards including bluepill(stm32f103) and blackpill (...
1
vote
1
answer
149
views
SWD scan failing for STM32H747 using a BlackMagicProbev2.3
I'm trying to debug an Arduino R1 Giga WiFi board with a STM32H747XIH6 mcu, which is a dual-core ARM Cortex-M4 and Cortex-M7 chip, using a Black Magic Probe v2.3 (BMP) from 1bitSquared. I've managed ...
0
votes
0
answers
150
views
STM32 NUCLEO programming problem with STLink V2 Clone
Having a trouble with STLink programmer. Error occours in Keil. When I am trying the download code to flash this error appears. If I am using a USB port for debug there is no error. But I need to ...
0
votes
1
answer
296
views
STM32 vector table with wrong addresses
I tried to manually setup a STM32 project for my nucleo board, however the binary behaves strangely during compilation.
The current project state is located in a github repository.
I noted two ...
1
vote
0
answers
187
views
How to debug a STM32 MCU Discovery board at higher rates?
I have a STM32H735G-DK Discovery board, and can debug it with gdb (or vscode and cortex-debug). However, it is very slow - hitting s in gdb can take several ...
0
votes
1
answer
113
views
STM32H755ZIT6 STLINK Debug
I've just got new NUCLEO STM32H755ZIT6 board with STLinkV3 on it.
I just want to debug simple empty STMCube project and after configuring board According it's
Please look in the UM2408 User manual (...
1
vote
0
answers
134
views
Intermittently working hardware/software breakpoints with STM32H7
Problem: I have experienced issues with hardware/software breakpoints not being hit during debugging sessions in STM32CubeIDE with the STM32H743. When breakpoints are set or disabled during a ...
0
votes
0
answers
456
views
Custom STM32 board can be programmed via USB DFU, but no connection via ST-Link
I have spent a fair bit of time trying to understand why the stlink does not to see the STM chip when conected over serial wire (port is shown under 'Com ports' in the schematic). I have tried the st-...
0
votes
1
answer
172
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
1
answer
514
views
Incorrect results when cycle counting on STM32 using DWT->CYCCNT
I'm trying to determine the number of clock cycles it takes to run some code I've written for an STM32, because I'm curious to see just how much slower it is if I use floating point numbers. This is ...