Questions tagged [stm32]

The STM32 is the third ARM family by STMicroelectronics. It follows their earlier STR9 family based on the ARM9E core, and STR7 family based on the ARM7TDMI core. The STM32 is based on the ARM Cortex-M family of cores.

Filter by
Sorted by
Tagged with
0 votes
0 answers
58 views

The shortest timer between interrupt events is 3 microsecond. How can I shorten this time?

Using an STM32F756ZGT6, I want to detect rising edge of 1MHz frequency has 50% duty circle. At each rising edge I will generate a pulse about 50ns (I use a timer on the same board to generate this PWM ...
Hongquan Phan's user avatar
0 votes
0 answers
23 views

Any alternatives (available on EASYEDA) for BGS13S4N9 [closed]

It’s an RF MOS switch. I am designing an STM32 based board with LoRa functionality, but the BGS13S4N9 is out of stock and I’m looking for an alternative.
Gdee's user avatar
  • 23
-2 votes
0 answers
35 views

What kind of product can I use instead of pic12f510? (cheap cost) [closed]

we have been using the pic12f675 microcontroller for a long time. However, due to its high cost, we started to use the pic12f510 microcontroller upon a suggestion. We have to abandon this ...
Sait Faik's user avatar
0 votes
1 answer
63 views

PAC1921 power monitor issue

I'm trying to measure voltage, current and power by PAC1921 IC. This is a PAC1921 datasheet: PAC1921 DataSheet This is my schematic: 3.3V_Input is input from simple AMS1117 3.3 V regulator and +3.3 V ...
Alatriste's user avatar
  • 140
0 votes
0 answers
69 views

STM32 FreeRTOS StreamBuffer doesn't work

I am testing RTOS's StreamBuffer and it doesn't receive what it sends: ...
KlimDuda's user avatar
0 votes
1 answer
34 views

ST-Link V2 forgets its firmware upgrade

My ST-Link V2 is the low cost memory stick kind from China. It works, but every time I re-power it, it needs to upgrade the firmware and that works too. Is this normal; should it not remember the ...
Peter Laidlaw's user avatar
0 votes
0 answers
29 views

STM32 Wakes up from standby mode immediately

I'm trying to get my board (STM32L072CZ) to enter the standby sleep mode, and it seems to be entering this mode, but it also immediately wakes up again. After searching the great webs the solution ...
Rasmus Madsen's user avatar
0 votes
1 answer
67 views

5 V encoder output to 3.3V micro

I need to interface a 5V digital output from an encoder(https://media.futek.com/content/futek/files/pdf/productdrawings/trs605.pdf) with a STM32F411 (https://www.dfrobot.com/product-2338.html). What ...
luffy's user avatar
  • 1
0 votes
2 answers
77 views

STM32H7 flashing problem

I have been having a problem with my STM32H725IGT custom PCB, because I can't flash it even though i tried almost everything. I have tried flashing from nucleo's programmer and from stlink-v2 clones ...
Synte's user avatar
  • 1
1 vote
0 answers
41 views

STM32IDE & DC Motor - Tracking Motor rotation

Is there a way for a microcontroller (STM32) to track DC motor rotation? Currently in class supposed to connect a DC motor of our choosing to a microcontroller, rotate it by 5 degrees and track the ...
ZombieSpale's user avatar
0 votes
0 answers
50 views

Closed Loop Control of BLDC Motor using STM32

I am working on 6-step commutation control of BLDC Motor. For this, I am using the values of Hall Sensors embedded inside the motor as feedback to determine the sector and find a switching sequence ...
Arslan's user avatar
  • 1
0 votes
0 answers
40 views

Ping not work on STM32H745 ETH

I'm trying to get the ethernet interface to work on an STM32H745. After fixing various hardware problems, now I don't just have software problems. I created a simple project with CubeMX, basically I ...
Federico Massimi's user avatar
0 votes
1 answer
113 views

How to format data properly before using CDC_Transmit_FS?

I am using STM32CubeIDE to program 12 bit ADC(P/N = ADC128s102) which has 8 bit of control register and return 12 bit in MISO. Following is scope result. I am able to return some data which I think it ...
Alia Sana's user avatar
0 votes
2 answers
108 views

HAL_SPI_TransmitReceive not working properly

I am trying to use HAL function to drive SPI to read analog voltage from external ADC (adc128s102). I see what I expect to see in first 16 CLK with MISO(Blue) and MOSI(Yellow) line. But what's causing ...
Alia Sana's user avatar
0 votes
0 answers
34 views

How to export values to TXT file in STM32CubeIDE

I have a code for ADC: (STM32F407) ...
Mahesh Namboodiri's user avatar
0 votes
2 answers
50 views

I2C with MPU6050 and STM32F407stuck at send address status check

I have the following code for an accelerometer sensor, MPU6050. ...
Mahesh Namboodiri's user avatar
0 votes
3 answers
145 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 ...
CircuitFreak's user avatar
0 votes
1 answer
61 views

STM32G431 CMSIS clock setup failed

I am currently developing with the WeAct Studio STM32G431 Board, but when I tried to configure the clock setup something went terribly wrong. During the debugging process the ST link connection broke ...
Jakob Flocke's user avatar
1 vote
2 answers
85 views

How can I get roll, pitch, and yaw data from an ISM330DLC sensor?

I have code to receive data from both the accelerometer and the gyroscope in X,Y Z axis. According to the datasheet, those are two's complement data. The data read by registers. Can you make sure that ...
Nimms's user avatar
  • 11
0 votes
1 answer
30 views

STM32F407 ADC with timer trigger not working for some reason

For STM32F407 discovery board, I tried to establish ADC for measuring voltage at a point, using timer to trigger the ADC, every clock cycle. Somehow I have missed something, because the timer clock is ...
Mahesh Namboodiri's user avatar
0 votes
1 answer
35 views

STM32H7 QuadSPI CMSIS Read

So, I am trying to access an APS6404 IC (PSRAM) with QSPI on STM32H7 (currently in single-line mode). When I am writing to it, everything seems fine, but as soon as I read - the FIFO is empty and the ...
sx107's user avatar
  • 1,077
0 votes
1 answer
54 views

Slave SPI not firing interrupt

I have 2 STM32F407 discovery boards for which I'm trying to setup a multi slave SPI bus. The first slave is working but the other one is making problems once I connect the second CLK input onto the ...
Michael's user avatar
  • 13
0 votes
1 answer
74 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 ...
andre.hre's user avatar
  • 139
0 votes
1 answer
93 views

FatFs. How to find the end address and start address of a file on a USB drive?

USB drive connected to STM32F407VGT6 I need to find the end address and start address of text and ...
stm's user avatar
  • 81
2 votes
1 answer
103 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 ...
block3r's user avatar
  • 41
1 vote
2 answers
93 views

STM32 USB Full Speed and card reading causes slow USB speed

I-m trying to accomplish best USB speed through STM32H743 MCU to PC. First of all I was testing just receiving data. I was sending sending 8192 bytes from MCU to the pc without any other tasks, and ...
KlimDuda's user avatar
0 votes
1 answer
50 views

Removing HSE backup crystal from ST RF module

I'm currently examining the reference design schematics from ST, available at en.MB1389-WL55JC-highband-E02_Schematic. In the schematics, the EXTERNAL HSE CLK with TCXO configuration is linked to the ...
Atrahasis's user avatar
  • 127
1 vote
1 answer
67 views

STM32F407 PLL config not producing 1ms SysTick

I've a bare metal PLL setup for my STM32F407 which should generate a 168MHz system clock. However for some reason the 1ms SysTick interrupt is orders of magnitude off the grid. The math works out on ...
Michael's user avatar
  • 13
0 votes
1 answer
160 views

Delay with timers for a non-blocking delay

I need microsecond/millisecond delay in my project but I don't want to affect the process flow. I am using an STM32G4. I am using a timer for microseconds delay. This is the function: ...
Sireesha's user avatar
-1 votes
0 answers
52 views

VGA signal on STM32 blackpill

I am trying to build a simple VGA video card using the STM32F401 Blackpill with max clock frequency of 84Mhz. I am aiming for a resolution of about 640x480 at 60hz. I tried using timers and PWM to ...
Kalash Changal's user avatar
1 vote
0 answers
44 views

STM32U5 SCL line stays low and hangs

I have two STM32L0 (slaves) and STM32U585 (master) MCUs. I have no issue when Slave transmits data to Master, but if Master transmits signal to Slave, it sends all the 9 clock pulses with address bits,...
amir_sh's user avatar
  • 21
2 votes
1 answer
49 views

SWD Connection to MCU and Appropriate Configuration for Reset Pin

I aim to establish a connection between SWD header and an STM32 MCU on PCB, having identified the relevant pins on MCU (SWO, SWCLK, and SWDIO). I have two inquiries: Is it appropriate to connect ...
Atrahasis's user avatar
  • 127
1 vote
0 answers
35 views

High current consumption in STOP MODE of STM32L496ZG MCU on an STM32-Nucleo board (Nucleo-144, MB1312)

I'm using Nordic's Power Profiler Kit II to measure current of STM32L496ZG MCU on STM32 Nucleo board. I've tried to measure current using JP5 (IDD) as mentioned in the datasheet but current ...
Ans's user avatar
  • 11
0 votes
1 answer
45 views

Vibration transducer to ADC of STM32

I'm trying to design a circuit to read the vibration value from a vibration transducer and I need some help with it. The signal from the transducer has DC component of 12 volts and a varying AC ...
FunkyAP's user avatar
3 votes
4 answers
943 views

How can I read the value of an open drain pin connected to an LED

I'm developing a circuit with a charger inside. The charger has 2 STAT pins that indicate the functionality of the board (charging, standby, fault, etc.) As the datasheet suggests, I've connected two ...
Filo_Gold's user avatar
0 votes
1 answer
38 views

STM32F407G-DISC1 AUX to Laptop Aux [closed]

I am working with STM32F4 board and signal processing, generating some sin waveforms on CODEC, the problem is that I don't have oscilloscope on me and want to see what waveforms I am generating. I ...
Dominykas's user avatar
  • 335
0 votes
1 answer
92 views

Implementing a light software stack on STM32 to send and receive data using 433Mhz RF modules

I need to send a 12-bit data continuously from one system to another using 433MHz RF modules. The transmitter and receiver systems uses STM controllers (STM32L010F4) which are connected to the radio ...
nottherealfaraday's user avatar
-1 votes
1 answer
149 views

SPI NAND rewrite issue

I'm using Alliance Memory's AS5F38G04SND-08LIN 8Gbit(1 Gbyte) SLC NAND flash with STM32. Datasheet So my question is, Can I re-write a page with data already in it? Page size is 4096 bytes. For ...
Alatriste's user avatar
  • 140
-1 votes
2 answers
188 views

Possible FPU error

...
rachit juthani's user avatar
1 vote
0 answers
55 views

How to handle flash write/read operations on STM32L552 with ICACHE enabled without disabling it?

I am currently working with an STM32L552 microcontroller and encountering some peculiar behavior when writing and reading double words to and from the flash memory. After writing data to a specific ...
tronhawk's user avatar
0 votes
4 answers
91 views

Multiplexing I2S: multuple I2S devices on single bus

I am working on a project which involves capturing audio from a linearly-arranged array of microphones, and processing that data to identify the peak frequency (highest amplitude) detected by each ...
Joe Mills's user avatar
0 votes
1 answer
53 views

Capture/compare interrupt flag resetting without reading the CCRx

...
rachit juthani's user avatar
1 vote
0 answers
62 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 ...
SRobertJames's user avatar
0 votes
1 answer
50 views

STM32 H7 - Outputs wrong I2S BCLK (1.027 Mhz pulses, expected 1.024)?

The STM32 seems to be a nightmare... Just such weird issues constantly. Anyways, I'm trying to output Master I2S (with BCLK, no MCLK) at 16 kHz, but for some reason am getting a 1.027 MHz clock ...
Kevin Parker's user avatar
8 votes
4 answers
3k views

Why are stm32 addresses larger than flash size?

I am a complete beginner to using STM32 boards. I bought an STM32F103C8T6 board, and the product page said it has 128 KB of memory. I am using Linux and am using ...
First User's user avatar
2 votes
1 answer
59 views

Opinion on Solution for minimal CPU use for STM32 based precision external ADC conversion timing

I have been working on a data acquisition system that requires fairly high sample rates given the resolution and dynamic range requirements. The front end performs well, but to avoid wasting large ...
Luke Gary's user avatar
  • 1,065
1 vote
0 answers
39 views

How to receive digital audio via polling the SAI?

I'm trying to receive digital audio on an STM32 by polling the SAI, via HAL_SAI_Receive. Eventually I will switch to DMA; my goal now, though, is to simply be able ...
SRobertJames's user avatar
1 vote
0 answers
79 views

What is SAI frame synchro?

The SAI interface, as used by ST and others, includes some options which I have not been able to find any explanation of. Justme's answer provides a great explanation of frame, slot, and data size; I'...
SRobertJames's user avatar
1 vote
1 answer
171 views

Synchronous buck converter using STM32 as feedback controller

I am planning to use stm32f103cbt6 MCU as a feedback controller (voltage or current) for a synchronous buck converter by using gate driver IC, mosfets, inductor, capacitor and etc. Is there any ...
Alia Sana's user avatar
0 votes
2 answers
85 views

Can I capture audio over SPI on from the onboard MEMS microphone?

I have a STM32H735G-DK Discovery board and would like to record audio from the onboard digital MEMS microphone, a MP34DT01TR-M which provides PDM audio. It would seem to me the simplest way to do ...
SRobertJames's user avatar

1
2 3 4 5
71