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
2 votes
2 answers
1k views

STM32 MCU gets shorted

I've been trying to make a simple audio player using the STM32F302CBT6, however, the VCC and GND pins of the MCU keep getting internally shorted when a 3.3 V power supply is provided and a faint ...
0 votes
2 answers
191 views

I2C Problem in TCA9539

I am using stm32f103 and TI's TCA9539 and TCA6408A Port extender.Both of them support 400-kHz(I2C Fastmode) and 100-KHz (I2C standard mode) clock frequencies. I use 3 TCA9539 and 1 TCA6408A;here is my ...
1 vote
1 answer
802 views

STM32F4 input capture

How can get input capture values from STM32F4 for measuring the duty cycles of the four different signal? Here is one channel code: ...
1 vote
1 answer
162 views

Why does my ADC -> TIM -> DMA driver work for a bit, then freeze up, then continue working again?

This is difficult to describe, but basically my DMA ADC stream will give me correct readings for lets say 10 seconds, then gets "locked up" / outputs static values that do not change (when ...
1 vote
0 answers
20 views

Interfacing to MEMS microphone with PDM output: what is causing this DC bias?

I have a MEMS microphone (IM72D128V01, using this eval kit) with PDM output connected to a STM32U5 NUCLEO board. (Background: it's connected to the ADF/Audo Digital Filter peripheral which I have ...
0 votes
0 answers
9 views

EEPROM Emulation utility fails during "PageTransfer" function (XCUBE-EEPROM V3.0.0 and 4.0.0) on STM32G474 MCU

I have incorporated the EEPROM emulation utility in a project based on STM32G474CE MCU. So far the read/write functionality works fine. The problem comes when a page is full and the pag transfer ...
1 vote
0 answers
24 views

STM32L073 I2C not sending 9th clock pulse

I have an STM32L073 communicating with an IS31FL3246 LED driver over I2C. Occasionally the MCU will not send the 9th clock pulse and therefore locks the bus. (As shown in the picture the analog ...
2 votes
0 answers
77 views

STM32 - I²C Slave HAL Callback ACK

Objective: implement a single byte I²C slave on STM32. Materials: STM32L452RE Nucleo-64 board, HAL Library, CH341 USB-I²C adapter(1), Artix Linux with Runit, Rhode & Schwarz RTB2004 oscilloscope ...
3 votes
1 answer
138 views

Difference between open drain and push-pull modes

The figures show diagrams of line signals: the first in the open-drain + pull up mode, the second push-pull + pull-down. There are several questions: Why does a push pull output have a faster slope ...
1 vote
1 answer
300 views

Stand-alone flashing of STM32

I'm developing a fixture tool to test a custom PCB with ST Bluenrg1 (STM32 M0 core + bluetooth). This fixture tool has its own MCU working at 5V. I would like to flash automatically first previous to ...
0 votes
1 answer
259 views

Transistor in the Darlington pair getting burned?

I have a relay board controlled by an STM32 to switch two AC loads (a compressor and an MD40 pump). The circuit seems to work fine but after about a day of operation, my BC847 got burned and the ...
0 votes
2 answers
826 views

Calculate voltage of a 16-bit differential ADC that gives a two's complement value

I am working with a 16-bit differential ADC and I would like to know the difference between this latter and a single ended ADC especially: How to calculate voltage from the ADC value ? Is it like ...
0 votes
1 answer
58 views

Using MDMA for buffer manipulation on STM32H743vit

I have buffer buff[BUFFER_SIZE], I want to fill it with data from random generator peripheral. Then the copy must increment equal to BUFFER_SIZE. After calling DMA ...
-3 votes
1 answer
32 views

How can I control an ESC with an STM32F303K8 [closed]

I couldn't find any documentation about it. The STM32 nucleo should control a brushless motor, with the speed depending on changing data. The ESC I'm using is a BHELI_S. Edit: I'm using CubeIDE and C
2 votes
1 answer
193 views

Smooth wave plotting using 3 inch thermal printer [closed]

I am interfacing 3 inch Fujitsu thermal printer (FTP-638MCL103) with STM32. Character printing is working fine. I am struggling to print smooth sine waves generated from a function generator. I want ...
1 vote
1 answer
76 views

STM32L496 ADC with HAL and DMA: only one byte updated in results buffer

In the context of an STM32L496 project, I've setup the ADC with two input channels as follows And the DMA like this: I'm using the following code to start the conversion and display the results: <...
0 votes
1 answer
161 views

What is the problem in my timeout implementation?

I'm trying to use a DHT22 (temperature and humidity sensor). Here is its datasheet: DHT22 Datasheet In first few seconds, I can get values. But after a while it gets stuck in here: So I tried to ...
1 vote
1 answer
618 views

Stm32 C - Stepper motor start after 1 minute

I wrote a stepper motor driver with the use of DMA and TIM1. I accelerate the signal using the so-called Ramps. I calculate the times and load them into the DMA table and pass them to the TIM PERIOD ...
1 vote
0 answers
1k views

STM32 - Using Timer as timebase source for HAL in FreeRTOS application

I am learning more about freertos by making a task based program. My problem comes when initializing and configuring the HAL time sources. I read that it is necessary to choose another HW timer as ...
1 vote
2 answers
76 views

Cannot configure timer to 10µs on STM32F401 device

I'm using an STM32F401CCU6 microcontroller and am trying to generate a timer interrupt of 10 us with TIMER3. The timer is a update event timer. The formula I'm using is: ...
2 votes
1 answer
932 views

STM32 HAL_ADC_Start() ends with HAL_ERROR

I'm new to microcontroller programming and I have a problem I can't solve. I am using STM32 Nucleo board L4R5ZI and I try to read the analog value on one of the pins, and then use the ADC to convert ...
1 vote
0 answers
24 views

A6 SIM module keeps resetting

I'm using a SIM A6 module (Goouuu Tech A6, I believe it's the same) to send messages. The problem is, once I plug in a SIM card, it keeps resetting (the green led blinks and kind of interrupts after 3-...
1 vote
1 answer
158 views

Custom Hardware GD32F103 (STM clone) broken after uploading arduino sketch for ESP32

I'm developing a project with custom hardware STM32F103, however due to lack of stock until next year, I have proceeded with the clone GD32F103CBT6. One of the problems I'm encountering is the Serial ...
0 votes
1 answer
1k views

What is causing my error in executing arm-none-eabi-gcc.exe from Keil uVision?

I'm attempting to set up Keil uVision to build a simple C++ program for the STM32F3 microcontroller. I've downloaded the GNU ARM toolchain on my Windows computer and placed it into the directory ...
2 votes
3 answers
1k views

Driving Nokia TFT LCD with STM32

How do I increase the refresh rate of a Nokia LCD that I'm driving using the STM32F103 microcontroller? The LCD is 132*162 and takes a 9-bit instruction/DATA with RGB for each pixel in 565 format. ...
1 vote
0 answers
35 views

STM32CubeIDE Project

I have tried to open existing stm32 project on different computer (computer is not connected to internet). When I try to open the project file, there is a html file which is showed on screen. What is ...
2 votes
1 answer
33 views

USART stop bit not pulled high during nRF update

I am using an STM32L4 chip that sends an update to the nRF52832 on a ublox module over USART. I assume the nordic chip is in the bootloader during the update. We get a UART error: 4 and when we ...
0 votes
0 answers
16 views

ATA6570 does not wake up properly

I want to use the wake-up frame function of ATA6570 (only use ID to wake up), after entering sleep mode, sending the correct wake-up frame directly can wake up normally, but in sleep mode, the wake-up ...
0 votes
2 answers
2k views

Configuring ADC in STM32F3

I'm trying to enable an ADC converter. I'm using STM32F3 Discovery with SPL Library. I measure voltage on PA1 pin. I don't know why it doesn't work. What have I missed? The value of 'value' variable ...
1 vote
1 answer
142 views

ADC doesn't start from 0V

I have a STM32L053-Disco eval board, and I'm building a capacitance meter. For it to work, I have to calculate the charge time on my capacitor. The approach that I'm taking is to set 1 GPIO pin to ...
0 votes
1 answer
881 views

AC dimming with STM32 timers

I'm using an STM32 for AC dimming, for which I use a GPIO output (or timer channel out) to drive a triac, whenever I get a zero crossing detection (rising edge). Is there a way to solve this only ...
3 votes
3 answers
153 views

Measuring capacitance with STM32

I'm trying to measure capacitance with my STM32L053-Disco. I'm using the ADC and one output pin to charge the capacitor. I tried measuring the time it takes for the capacitor to charge to 62.3%. The ...
0 votes
1 answer
415 views

STM32 - reading serial number on command line (with st-flash)

I'm looking to programmatically read the serial number out of a device which uses an STM32 (L07x / L08x / L010). I can read the serial using the STM32 St-Link Utility GUI by reading addresses ...
0 votes
1 answer
53 views

Reading MPU6050 with Nucleo-32, Arduino IDE

...
1 vote
0 answers
28 views

What DMA settings should I use for DCMI for STM32?

OV7670 is a camera with 8-bit bus communication. It's possible to connect that to a STM32 who has a DCMI communication bus. There are two types of OV7670. One with FIFO chip behind the camera and one ...
0 votes
1 answer
38 views

STM32H743 MDMA can't access APB2

I have a code that mdma can access any variable feed to it by &var (AXI SRAM) also I have gave it an address of ADC common registers from APB1 but adress from APB2 &hrng.Instance.DR causes ...
1 vote
1 answer
94 views

Strange X, Y, and Z data from an MMC5983MA

I am working on an MMC5983MA with an STM32. I can read the product id (0x30) and temperature (0x7e = 25.8°C.) The values are good. When I read X, Y, and Z axis data, it is always close to 8G or -8G, ...
1 vote
1 answer
162 views

STM32F429ZI ADC converting too fast

I am trying to trigger ADC1 to convert (for the moment) one channel of a STM32F429ZI microcontroller (on the Nucleo Board) by TIM2 every second. With the code below I configured 180 MHz core frequency,...
0 votes
0 answers
27 views

Failed to replace HAL_TIM_PWM_Start_IT in an STM32 board

I'm using a STM32 Nucleo board with this manual. The following function I modified in stm32f3xx_it.c handles TIM6 global interrupt and starts a PWM output by using HAL: ...
0 votes
1 answer
2k views

Setting STM32F4 SystemCoreClock to 100 MHz but can't get it (only get 57.6 MHz)

I am trying to change the STM32F407 system core clock to be 100 MHz. To do this, I need to set the source of the PLL to be HSE, and configure the PLL coefficient so as to get the right value of SYSCLK....
0 votes
1 answer
332 views

STM32G474 not erasing flash by page?

I am writing to the flash memory of an STM32G474RE using the HAL libraries. Here is the section of code I've been using: ...
0 votes
1 answer
280 views

Does USB host mode on an STM32 require VBUS sensing?

I’ve been using an STM32F413ZH Nucleo board as a USB host device. All is working well. However, I’m in the process of designing my own PCB based on the Nucleo design, but using a full-size USB Type A ...
2 votes
2 answers
181 views

Offset in creating delay between two PWM in STM32 board

I generate two PWM outputs from this Nucleo board (STM32F302R8). I use TIM1 and and TIM2 for PWM outputs and TIM6 to create delay between the PWM outputs. I want to create 100 us delay but my code ...
1 vote
1 answer
41 views

STM32 FMC minimum clock

I'm doing some preliminary testing with a STM32F767 and FMC connecting to a KS0108 128x64 LCD display. The problem I'm running into is that I can't come up with a clean way to slow down the enable ...
0 votes
1 answer
68 views

"Could Not Verify ST Device" when flashing STM32H747XIH6 over SEGGER J-link within STM32CubeIDE

Im trying to flash/debug a STM32H747XIH6 over J-link within STM32CubeIDE. One of the two cores, the CM7, flashes fine and i can enter the debugger. However when i try to flash the other core, the CM4, ...
0 votes
1 answer
41 views

Does the frequency of APB1 on stm32f4 have to stay at 42 MHz?

I'm trying to configure the clock of my stm32 board. And I'm wondering if I always have to make the SYSCLK 168 MHz and APB1 42 MHz. If the APB1 is not 42 MHz, I get a weird result when using uart. I ...
2 votes
2 answers
127 views

Problems increasing VCO frequency above datasheet recommendations

Firstly, yes I contacted ST for answers. Until now, no answer. I'm using STM32F429 MCU and embedded USB FS PHY. To keep the 48 MHz USB PHY clock the maximum PLL clock that I can achieve is 168 MHz, ...
2 votes
1 answer
203 views

Why does the blue pill STM32 use two oscillators?

I'm designing a PCB and I was looking at the schematic of the blue pill STM32 board to integrate it, and found that there are two crystals on the schematic? Why is this? Also, there is only one on the ...
1 vote
1 answer
70 views

STM32) Why DMA can't approach global variable?

I test memory to memory DMA with my STM32H750VBT. I study with following this link. enter link description here According this link, source is inside flash and destination is inside SRAM. I test ...

1
2 3 4 5
76