5,699 questions
0
votes
0
answers
58
views
Question about PMA Layout and BTABLE Size on STM32F103
I have two possible interpretations of how the USB BTABLE and PMA layout work on the STM32F103.
I will provide two diagrams (Figure A and Figure B) to illustrate the scenario.
STM32F1 USB PMA
Scenario:...
0
votes
0
answers
64
views
An issue about STM32H503 I2C
I'm reading RM0492 Rev 3 about I2C's controller transmitter. The original words on the page of 1185 are
When RELOAD = 0 and the number of data bytes defined in NBYTES[7:0] is transferred:
• In ...
1
vote
0
answers
93
views
understanding debugger output stm32nucleof401re
I am getting the following error (debugger output) when i try to do "ST_LINK: attach to application" in vscode. I have no idea what is going on. Any help is greatly appreciated.
I use WSL ...
Advice
1
vote
0
replies
44
views
Why does the STM32H5xx Ethernet HAL provide a callback for appending an rx data buffer (that it found populated) to a list that it is managing?
The STM32H573 Ethernet HAL (header implementation) defines a callback, HAL_ETH_RxLinkCallback(), that it appears to call after it discovers that the hardware has populated a data buffer with received ...
0
votes
0
answers
65
views
CubeMX and touchGFX not synchronized
I'm using the board NUCLEO-H563ZI paired with an RVA35HI screen.
When I first created the project and generated the code, I could download the TouchGFX project using the TouchGFX application with the &...
0
votes
0
answers
37
views
STM32 CONTROL HAL I2C/ADC returns zero values
we made a code in STM32CUBEIDE to control the ADC/I2C of our datalogger test but we have a problem because when we run the code, in line 156, the string ‘voltage_ch0’ gives us a value of 0 and nothing ...
Advice
0
votes
0
replies
39
views
Understanding of the early stages in boot on STM32MP157F
I applied the ST FWU reference solution on our own platform based on the STM32MP157F.
I have a few questions to clarify the default behavior:
What is the default behavior in the early boot stage? Do ...
0
votes
0
answers
58
views
How can I increase EEPROM emulation size on STM32F103 using Arduino Core?
I'm using an STM32F103 with the Arduino STM32 core. The built-in EEPROM emulation works, but the default EEPROM size is limited to 2048 bytes.
I want to increase the available EEPROM size for STM32F1, ...
1
vote
0
answers
152
views
STM32H7 UART RX not receiving data while TX works
TX works and prints info in console (I use Putty) but when I send on STM and echo I don't receive anything (and when I write symbols in console they don't appear). Baud rate and other config settings ...
0
votes
0
answers
49
views
If the priority of AppTaskCreate is lower than that of the tasks it creates, will the created tasks start executing and cause it to be suspended?
In FreeRTOS, I want to create several tasks inside the task AppTaskCreate. If the priority of AppTaskCreate is lower than that of the tasks it creates, will the created tasks start executing and cause ...
3
votes
1
answer
150
views
Windows USB Driver refuses to accept my manufacturer string
I am homebuilding a USB driver on STM32. I have managed to get the device to enumerate which is awesome, but only when I disable all the strings (set all ID's to 0). Right now, when I set ...
0
votes
0
answers
41
views
Unable to transmit data with USART2 in STM32 NUCLEO-F072RB board
I have been trying to transfer data via the USART2 module through the RX/TX (PA2/PA3) pins.
Even though the configs are the same (9600, 8N1), and also the function returns HAL_OK, I still could not ...
0
votes
0
answers
67
views
ADC DMA does not work after wake up STM32
I am facing the issue that ADC DMA cannot work even I try re-init in many ways.
Information:
STM32L476
Stop mode and wake up via RTC
Can re-init USB so the terminal still works
Clock configuration ...
0
votes
1
answer
82
views
STM32 - I2S: Read signal from INMP441
I'm using STM32F103C8T6 to receive the signal from INMP441 with I2S. Using Standard Periph Library with keilC. I configured GPIO, I2S, Usart, I want to get data from INMP441 then send it to esp32 ...
1
vote
0
answers
72
views
I can't figure out why my stm32 spi peripheral is not working
So i am learning the stm32f103c8t6 board, and after having used the hal, i am trying to create my own peripheral driver, but i can't seem to get the spi working, I am trying to communicate with an spi ...
2
votes
0
answers
80
views
DS3234 incorrect value on STM32
I am trying to use a DS3234 with a STM32. (on STM32CubeIDE)
Is answer me with some value but for some reason,
Every value is divided by 2 except for the month.
Second are updated every two (real)...
0
votes
0
answers
51
views
"arm-none-eabi-gcc: fatal error: no input files" PlatformIo x STM32
I am trying to use platformIo with vsCode on Windows. I managed to compile it twice, but now I get the same error, even after cleaning everything or deleting the .pio file. I also tried the command ...
0
votes
1
answer
93
views
Systemview Continuous Recording over UART
Im trying to implement Continuous Recording for systemview over UART on an STM32F103. my application is using FreeRTOS v11. I am able to successfully get data in snapshot mode and view it in ...
2
votes
1
answer
87
views
What would cause peripheral register writes to be ignored on STM32?
I have an STM32G491RE Nucleo board and I'm trying to make the LED blink without any libraries, following tutorials like this and this.
Here's the datasheet for STM32G4.
And here's my basic LED blink ...
2
votes
0
answers
88
views
Sample project with STM32CubeMX (CMake) code generation for STM32F407G-DISC1 [closed]
I am generating code from STM32CubeMX (CMake projecct) and keeping it is separate folder. What CMake code so I now need in my App so that I can use generated code from the STM32CubeMX, and write my ...
0
votes
0
answers
51
views
IAR linker configuration: How do I copy flash readwrite sector parts into RAM without copying everything else too?
I have a project for a custom board with an STM32H757xI and a QUADSPI additional memory. It was generated with TouchGFX Designer so all the configuration is for STM32CubeIDE, but I'm trying to port it ...
0
votes
0
answers
92
views
OpenOCD - STLink V2 vs V3 - Clock rates
I'm attempting to erase & program a STM32H7x using a STLink V3Mods and OpenOCD (a recent official release).
It fails with a "read version fails".
When i try using a STLink V2 (host, ...
0
votes
1
answer
66
views
How to decode the bidirectional DShot eRPM telemetry waveform from an ESC?
I’m working on decoding the bidirectional DShot (bidir DShot) telemetry signal from an ESC.
I’ve read the article DSHOT - the missing Handbook, which explains that the ESC sends back a 21-bit ...
-2
votes
1
answer
172
views
Local variable in .c file overwrites memory address previously aquired in ARM GNU assembly file [duplicate]
I have implemented a basic FIFO data structure with its related functions/subroutines in a FIFO.s file and want to use them in the main function inside a main.c file;
// FIFO.s
.syntax unified
.cpu ...
0
votes
1
answer
90
views
Error Installing specific library in PlatformIO extension for VSCode
Currently running PlatformIO inside of VsCode on my Arch Linux machine for an embedded project. I'm coming from Arduino/ESP32 dev and my hope is to use my Nucleo-l476rg dev board within the arduino ...
3
votes
0
answers
130
views
Clarification on IEC 60730 Class B compliance for STM32G031xx and use of X-CUBE-CLASSB-G0 library
I’m currently working on an application using the STM32G031xx MCU and need to ensure IEC 60730 Class B compliance for safety-critical software. I found the X-CUBE-CLASSB-G0 (v4.0.0) library and have a ...
1
vote
0
answers
70
views
Is there a way to inspect the actual STM32CubeProgrammer invocation during the launch sequences in STM32CubeIDE?
During a STM32CubeIDE launch sequence, a proprietary version of GDB runs, which uses STM32CubeProgrammer to flash the MCU before proceeding with the debug. In the Launch Configuration window, I can ...
1
vote
1
answer
234
views
Implementing authentication with SNMPv3 using lwIP on a STM32 MCU
Currently I'm working on a project which requires me to implement SNMPv3 on a STM32 microcontroller running FreeRTOS. (specifically STM32H563VIT6). I'm using lwIP stack to implement this protocol, ...
1
vote
0
answers
51
views
Is it possible to reuse label names in ARM GNU Assembly? [duplicate]
I want to use the same label name in different parts of my Assembly code instead of using a new, never-before-used label name; Is such a thing possible?
For example:
.
.
.
Factorial: // A subroutine ...
2
votes
0
answers
54
views
STM32G431 Timer Input Capture + USART2 for debugging
I am working on an STM32G431 project using PlatformIO.
My goal is to:
Use TIM2 CH1 (PA0) to capture PWM input (from a servo tester, 50 Hz, pulse 1–2 ms).
Use USART2 (PA2, PA3) as a serial debug ...
0
votes
1
answer
70
views
STM32F4 ADC Multi-Channel Interrupt Logical Error
I am trying to use interrupts with the ADC module. I am using PA0 and PA1 as analog inputs for the ADC, and PC0 and PC1 as external LEDs. My goal is: when PA0 is triggered, PC0 should turn on. when ...
3
votes
1
answer
173
views
how to implement syscalls with newlib nano
im trying to implement syscalls for printf so i defined the functions :
#include <stdint.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
void usart_init(...
0
votes
1
answer
148
views
can newlib-nano printf function work without heap allocation
i was looking at this heap implementation, and i was wondering if it is necessary to implement heap for printf even if i'm calling setvbuf(stdout, NULL, _IONBF, 0) before calling printf.
i looked at ...
0
votes
0
answers
79
views
Touch Sensing on STM32
I’m working on a project using an STM32F072C8T6 for a smart touch board with capacitive touch sensors. I wrote code for touch sensing, but I’ve run into some issues:
The system sometimes takes some ...
1
vote
0
answers
32
views
STM32H7 Hardware CRC mismatch with srec_cat generated CRC32 [duplicate]
I’m working on STM32H755 bootloader project where I need to verify the integrity of the application firmware using a CRC32 checksum.
The build system uses srec_cat to append the CRC32 at the end of ...
4
votes
1
answer
104
views
Is it possible to undo the effect of the .req directive in ARM GNU Assembly?
I want to rename (more like add an alias to) one or more registers for a specific part of my Assembly code using the .req directive and later on undo the renaming of said register(s) so that those ...
0
votes
1
answer
151
views
Cannot get stm32 usb microphone transfer working
I am converting default usb middleware speaker example into microphone input. For now i am transmitting dummy data, not actual microphone data. I have replaced descriptor and it seems to be correctly ...
1
vote
0
answers
129
views
Using STM32H7 DCMI + DMA with AD9240 ADC
I am trying to use AD9240, a 14-bit ADC, with STM32H753 to sample a signal at 1MHz. I found that using DCMI with DMA is a good choice for it.
A 1MHz clock signal is generated on the MCU at TIM3_CH1. ...
1
vote
0
answers
126
views
Delay in triggering the BELL
I'm using STM32F072C8T6 Microcontroller with Konnekting Device Library . I want to trigger a BELL for less than half second . I wrote a logic for that BELL & it works well , but after a LONG RUN , ...
0
votes
1
answer
110
views
Error Could not verify ST device when Debugging code for my Blue Pill board
Created a new STM32 project and made settings below:
HSE: Crystal/Ceramic Resonator
SYS: Debug: Serial Wire
Clock: 72 MHz
Here's the debugger settings on STM32CubeIDE (version 1.19.1) with a simple ...
2
votes
0
answers
209
views
STM32 - issues when jumping from one app to another
I'm working on a boot-loader for STM32G491. The device is supposed to jump from the boot-loader (BL, located at 0x08000000) to the application (APP, located at 0x08008000).
When I flash the APP ...
2
votes
1
answer
123
views
HTU2X sensor not successful with getting data
Did the following steps to test if my temperature sensor HTU2X is working thoroughly. Selected my board (Nucleo-64 STM32F411RE) from STM32CubeIDE then enabled I2C1 for pins PB8 (as the SCL) and PB9 (...
1
vote
1
answer
55
views
why STM32F030F4P6 ADC continue scan mode make pin's voltage is higher (re-up)
I'm using ADC continue scan mode with DMA for 2 channels, config by register, not use HAL library, make sure pin mode is analog mode
When ADC just turn on clock, every thing be ok, voltage of pin PA0 ...
2
votes
1
answer
98
views
HTU2X sensor doesn't respond to code at all
Did the following steps just to test if my temperature sensor HTU2X is working or not.
Selected my board (Nucleo-64 STM32F411RE) from STM32CubeIDE then enabled I2C1 which in turn enabled pins PB6 (as ...
1
vote
0
answers
66
views
OpenOCD flash only half of flash
I'm trying to get OpenOCD to flash my STM32F103VG (1MB flash) MCU but only get half of it done.
Everything works fine until address 0x08080000 but then content remains 0xFF.
I'm using an ST-Link v2, ...
0
votes
1
answer
43
views
STM32 OPM + trigger mode
STM32F303RE produces wrong PWM pulse in OPM after receiving trigger signal.
I configured the advanced timer TIM1 to generate one PWM pulse after receiving falling edge trigger on the pin. When I ...
1
vote
1
answer
88
views
STM32L010C6 TIM2 IRQ priority, over capture vs edge detection, classic timer issue
So I want to use a capture compare to measure an input frequency 0.1 Hz to 100 kHz.
The peripheral clock is set to 32 MHz to cover the full range and maximise the speed of calculations.
At lower ...
2
votes
1
answer
351
views
STM32CubeIDE Code Generation Issues - Missing GPIO and Clock Configurations
I have some issue with STM32CubeIDE and CubeMX code generation in the following setup:
Environment:
STM32CubeIDE 1.19.0 (Build 25607_20250703_0907, UTC)
Windows 11 x86_64, Java: Eclipse Adoptium 21.0....
1
vote
0
answers
54
views
STM32G0 + PN532 (I2C) fails to wake from STOP mode via IRQ after multiple reads
I’m using a PN532 with I²C communication and an adapted library (https://github.com/soonuse/pn532-lib) for STM32.
My microcontroller is an STM32G031K8.
I’m having the problem that I need my ...
0
votes
0
answers
77
views
STM32G4 DAC DMA Callbacks Not Firing (HAL_DAC_ConvCpltCallbackCh1 / HalfCplt)
I'm working with an STM32G431KBUx and trying to output a waveform via DAC1 using DMA and TIM6 as trigger (TRGO).
However, the DMA callbacks HAL_DAC_ConvCpltCallbackCh1 and ...