Questions tagged [stm32]
The STM32 is a family of microcontrollers from ST Microelectronics, based on the Cortex M0, M0+, M3, M4, or M7 ARM core (depending on the product line).
5,222
questions
0
votes
0
answers
11
views
usb protocol: my device is not see any next packet after set address request
i can't see any packet after i set address for usb device.
hello everyone i'm writting code for usb device im use STM32F103RCT6 microcontroler for my project,because i'm not use library (hal,.. or ...
0
votes
0
answers
10
views
Include error in embebed desing STM32 with VScode
I've working in firmware programming with STM32 and VSCode.
My actual situation in extensions in VScode are: C/C++, cmake, cmake-tools, STM32 VS Code extension, and cortex-debug.
As "STM32 VS ...
0
votes
0
answers
11
views
How to read 16 bit parallel data using external adc output in stm32
I facing trouble in reading 16 bit parallel data continuously using external adc output in my stm32f4
Im using
GPIOA->IDR
How is 16 bit data stored in IDR
and how to access the input data regiter ...
0
votes
0
answers
17
views
STM32F4 How Can Write Protection(nWRPi) be activated by itself?
I have a device with STM32F429ZT on it, the Read Out Protection of the processor is at level 0. In some cases(somehow it happen I don't know, I saw this situation on 1/7 device), when I reconnect with ...
0
votes
0
answers
23
views
Azure RTOS + NetX Webserver Webpage Renderer
I managed to successfully incorporate a webserver into our project with the following details:
STM32H753
Azure RTOS + NetX
32Mb QSPI NOR flash (8Mb for webserver purpose, 8Mb for File system, some ...
1
vote
0
answers
27
views
STM32 USB to I2C IAP bridge
I have two STM32 boards (A and B) connected together via I2C. Board A can trigger the RESET- and the BOOT-Pins of Board B. Therefore it should be possible for Board A to use the system bootloader of ...
2
votes
0
answers
33
views
How to pass USB pins into async fn in rust embassy project
In an embedded project using Rust with embassy async threads, I am trying to move the initialization of different peripherals into the corresponding async fns.
These peripherals are mostly pins, ...
-4
votes
0
answers
24
views
A7600C1 on korean sim [closed]
I am using A7600C1 GSM module with an STM32 microcontroller. Everything works perfectly with indian sim card. Not working with korean sim. I see that network led is blinking on korean sim. Device is ...
0
votes
0
answers
22
views
Data circulating with UART in STM32
When I initialize my stm32 i add a 5 second delay and then transmit a 13 bytes long uint8 array over UART. On the reception side, I have my HAL_UART_Receive_IT in the main loop (before while) and then ...
0
votes
2
answers
29
views
Does STM32 HAL_UART_Transmit_IT() help save CPU time?
HAL_UART_Receive_IT() helps save CPU time.
How about HAL_UART_Transmit_IT()? Does HAL_UART_Transmit_IT() help save CPU time?
What is the diferrence between UART Transmit in Blocking mode and Interrupt ...
0
votes
0
answers
19
views
SX126x Get RX payload size
I am using the SX1262 for receiving packets with EXPLICIT_HEADER_MODE enabled (the header is present). I have the latest libraries from Semtech (link). The problem is that when I receive data, the ...
0
votes
0
answers
15
views
STM32 wake up stop mode for usart
I am using STM32L0 series. I take the mcu out of stop mode with Usart and Gpio interrupt.
However, in stop mode, the device draws 40 uA current. I am trying to make it 1 uA. I disabled PVD. It uses ...
0
votes
0
answers
10
views
My program hangs when connecting laptop with device via BLE (Python, Windows, BleakClient, STM32)
Python 3.11 script on Windows 10 communicating with an STM32 via BLE.
The program runs continuously for several hours without a problem but, for no apparent reason, it suddenly hangs when connecting ...
-1
votes
2
answers
78
views
C program initialize flash memory and detect it was initialized
I want to save some values in external flash memory to a microcontroller. These values are typically going to be incremented every time I run the program. I would like to initialize them to 0.
Before ...
-1
votes
0
answers
29
views
HowCaniSolvethiserrorinCANDriver? [closed]
I Make Can Driver on STM32F303RTE (Nucleo Board) when i put the CAN_Transmitter and The CAN_Receiver in The Normal Mode i get error in the Transmitter which is Acknowledgment Error and i get error in ...
0
votes
1
answer
24
views
RTC alarm interrupt while loop
My problem is that when the rtc alarm is activated, it prints the message that is in the interrupt every 10 seconds, but it stops printing the messages that are in the while loop of the main.
I am ...
0
votes
0
answers
45
views
Using VS Code for working with STM32 Projects
I want to use VS Code to edit STM32 Projects. I don't want to build them or create new projects with it. I just want to edit them. So it would be great to get rid of all the error squiggles I have ...
0
votes
0
answers
44
views
Failed to launch GDB: Load failed (from target-download) : because specific sections
I'm trying to debug with an STM32H753BI using openocd and gdb. However, I'm facing a problem where gdb is unable to load specific sections from an external flash address.
here is gdb output:
gk@gk-...
0
votes
0
answers
26
views
STM32F446RE Nucleo LD1 slow blinking red and I'm not sure why
I'm using the STM32 using the power from a voltage regulator circuit that generates a stable 3.3V onto the board. Before that, when I tried to upload my program from the Arduino IDE to test it, it ...
0
votes
0
answers
31
views
Failed to launch GDB: Load failed (from target-download) in STM32H753BI
I am attempting to debug an STM32H753BI microcontroller using OpenOCD and an STLink v2 to read RTT (Real-Time Transfer). However, I am encountering difficulties loading the firmware onto the H7 board. ...
0
votes
0
answers
34
views
Waiting for root device PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582... problem on stm32mp157
I have problems with loading yocto-image on sd-card on STM32MP157. Loading stucks at this point.
[ 3.343164] Waiting for root device PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582...
[ 3.591162] ...
1
vote
0
answers
25
views
GAS (gnu assembler) and conditional execution
Stupid question. I am writing code in pure assembly for STM32 variants. I want to make two different versions from the same source file by assembling twice with a simple change that is selectable ...
2
votes
2
answers
148
views
Clarification of C Code containing nested structs, pointers, pointer type casting and C MACROS
I am trying to understand the following code below. It belongs to stm32f407xx microcontroller & i am trying to make sense by expanding the macros.
#define GPIOA_BASE_ADDR 0x12345678U
#define ...
0
votes
1
answer
33
views
Multiple Projects(or images) on STM32 Board
I'm here to ask some questions about my project.
Now I'm implementing a lite hypervisor.
So I made three discrete projects(monitor.bin, OS1.bin, OS2.bin), and divided memory.
MEMORY
{
CCMRAM (xrw)...
1
vote
0
answers
38
views
Stm8l mcu RTC calibration problem using RTC_SmoothCalibConfig()
stm8l151k4 mcu
rtc external crystal works stably but returns error when I want to write calibration value.
"RTC_SmoothCalibConfig(RTC_SmoothCalibPeriod_32sec, RTC_SmoothCalibPlusPulses_Reset,50);&...
0
votes
1
answer
55
views
How to display " °C " in OLED Display for STM32 IDE?
I am unable to display the symbol for degree celsius in my display, is there anyway to do it other than drawing a circle manually?
I tried giving the "char ASCII code" for some symbols to ...
-1
votes
0
answers
66
views
Troubleshooting Zero ADC Readings on STM32L0 Microcontroller
I am working on a project using an STM32L0 microcontroller where I need to read values from multiple ADC channels and transmit them to a PC for monitoring. However, I'm consistently getting zero ...
0
votes
2
answers
24
views
Frequency multiplier on GPIO with STM32
I want to input an external clock signal to the STM32 and output a clock signal with the same phase and 4 times the frequency of the original clock. For example, I have a 6MHz input clock on pin PA1 ...
0
votes
0
answers
25
views
Error on eclipse debug. Cannot follow programm flow
I am using Eclipse IDE for Embedded C/C++ Developers Version: 2023-09 (4.29.0). In my project I flash and run my project in STM32l476. When I debug my code sometimes the pointer of degug does not ...
0
votes
1
answer
60
views
Error on trying to launch a code for stm32L4 developement board
I have started to work with STM32L4 Kameleon development board and got a problem right away. I created project for my board and generated sample code for it
When I run it a ST-Link USB connector diode ...
1
vote
0
answers
27
views
Audio Codec2 on STM32
I wanted to use Codec2 on STM32F4xx, so I took the existing libraries and ran them on the hardware - a Nucleo board. Then I started measuring the time it takes to encode and decode one frame - a block ...
0
votes
1
answer
30
views
I have a problem trying to use TIM17 on a STM32L432kc
As a homework I need to use TIM17 instead of TIM16 to make the integrated LED in the L432kc blink, the LED is in the pin PB3, but it doesn't work.
The program works well with TIM16 but when I change ...
0
votes
1
answer
46
views
The f_gets function reads one byte less than I specified
I specify in the f_gets function that 6 bytes should be read, but the f_gets function reads only 5 bytes.
A USB drive is connected to the STM32F407VGT6, and a text file is located on this USB drive.
...
1
vote
0
answers
22
views
stm32 i2c: What is the cause for a start-stop-impulse after a successful i2c MasterTransmit-Receive on stm32?
I have i2c multi master operation. In this test there are two devices connected.
stm32f769 does a MasterTransmit followed by a MasterReceive to stm32f405 with repeated start.
stm32f405 receives data, ...
-1
votes
0
answers
31
views
Problem hosting SD card with stm32L552ZET6
I have been using for a long time the stm32L496ZGT6 in a customized PCB with an uSD card module. Never had any problem interfacing the card. Due to the shortage of supply during the pandemic situation ...
0
votes
1
answer
64
views
Assertion error while trying to debug program STM32CubeIDE, using NUCLEO board: exit error 3
EDIT: Problem solved. The IDE didn't install properly - apparently some files got corrupted. Works fine after reinstallation.
I just started learning how to program STM32 boards and my first project ...
-1
votes
1
answer
39
views
How to adjust external clock in STM32?
I want to trigger STM32 using an external clock. That is, I want data to be output from STM32 at every clock pulse. How to configure external clock in STM32 CubeIDE?
Information: The card I use is the ...
0
votes
1
answer
28
views
STM32 change PWM Duty Cycle dynamically in RTOS
I'm using this code below trying to achieve a intensity transition effect upon turning on a light:
void output2ControlTask(void *argument)
{
/* USER CODE BEGIN output2ControlTask */
uint32_t ...
0
votes
0
answers
43
views
Why is my UART communication between X-NUCLEO-BNRG2A1 (BlueNRG-M2SP) and Nucleo-G070RB not working?
I am currently having trouble making a simple UART communication (+ the HCI command-based protocol) between the X-NUCLEO-BNRG2A1 shield embedding a BlueNRG-M2 (which itself embeds a BlueNRG-2) and my ...
0
votes
1
answer
41
views
When setting both the set bit and reset bit to 1 in GPIOx_BSRR, will the output be high level or low level?
In the GPIO peripheral of STM32, there is a GPIO port bit set/reset register (GPIOx_BSRR). The lower 16 bits set the corresponding pin output to a high level, and the upper 16 bits reset the ...
-1
votes
0
answers
48
views
TCP Server Multiple Client problem - STM32
Using:
MCU: STM32F767ZIT6
Compiler: STM32CubeIDE
I am struggling with multiple client situations.
If I use STM32 TCP server and one TCP client connections - there is no problem.
But if I use STM32 ...
0
votes
0
answers
18
views
Can't get TransmitReceive to work on STM32 nucleo board
I am using CubeMx and CubeIde with two nucleo-F042K6 boards. I am fairly new to development on STM32 boards.
I am attempting to implement SPI communciation between the two boards. I use a logic ...
0
votes
1
answer
29
views
MPU6050 Data Not Changing?
I'm using an STM326050 MCU and I'm trying to get gyroscope and accelerometer data using an MPU6050(MPU6050 Registers, MPU6050 Datasheet. I've made sure the MPU6050 is properly initialized and ready ...
1
vote
1
answer
68
views
Global Offset Table .got and .got.plt must be zero-initialized for STM32 microcontroller
I am in the process of compiling a program for an ARM Cortex-M4 microcontroller without the STM32 IDE. I use the arm-none-eabi toolchain with newlib libc, a linker script I adapted for my specific ...
0
votes
1
answer
43
views
How can I use STM32 sleep mode with UART
I want to use sleep mode because of the power consumption of the MCU. My aim is basic, but I can not use the process.
I will get data from another MCU via UART. If one of my data is 6, I want to wake-...
0
votes
0
answers
54
views
STM32 DMA is not restarting when used with CMSIS V2 Queue
I am developing STM32 firmware based on FreeRTOS. I am using Nucleo-G491RE board.
I am using CMSIS V2 and Queue to handle the data received on UART. The UART fires correctly on receipt of data and ...
0
votes
1
answer
41
views
Undefined reference to _estack and _Min_Stack_Size in STM32 project with GCC
I'm encountering an issue while building my STM32 project using GCC. The error messages are as follows:
gcc -o Src/syscalls.o -c Src/syscalls.c
gcc -o main Src/main.o Src/syscalls.o Src/sysmem.o Src/...
-1
votes
1
answer
31
views
SystemCoreClockUpdate() function not recognized in STM32L476rg CubeIDE project
I am following a Udemy RTOS course, its about how to build an rtos from scratch on stm32 bords, so when following the videos i called the SystemCoreClockUpdate() function but it was not recognized by ...
0
votes
0
answers
28
views
STM23L412 Flash Erase and Programming (EEPROM Emulation) Issue
I'm trying to write a code to store some values at the final flash page (no. 63) of STM32L412 I succeeded into erasing the page, but I'm failing to write anything to it, the code is based on the ...
-2
votes
2
answers
115
views
Programming rotary encoder with timers
I've designed a custom PCB with an STM32F103CBT6 microcontroller and a 16 MHz crystal oscillator. The board features a button matrix with 16 push buttons, 2 standalone buttons, and 4 rotary encoders.
...