Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
349 views

STM32CubeMX for UART example

I am trying to run the example given in CubeMX document UM1718, Tutorial 4 - Example of UART communications with an STM32L053xx Nucleo board.. page 230. I wonder what is the purpose of using TIM2 in ...
0
votes
0answers
88 views

STM32CubeMX Timer Clock Source

If i am using External oscillator with STM32F407 and I select 'Internal Clock Source' for a Timer then what would that mean? What clock frequency will the Timer/Counter register see at its input if my ...
0
votes
0answers
207 views

STM32F4 Discovery + ILI9341 SPI + STemwin

as the Question says, I'm trying to run STemWin into STM32F4 Discovery board. It compiles well, but does not show anything. I think the LCD initializes, but after that, It does not work anymore. I'm ...
1
vote
2answers
108 views

Trouble getting USART working on STM32 (stm32f103c8t6)

I started working with with stm32f103c8t6 recently and I was able to set GPIO to input and output, however when I try to set USART it just does not work. I'm trying to write directly to registers, ...
0
votes
0answers
39 views

how to connect micro to µPD6379A (NEC Dac IC)

We want to use µPD6379A in our project. after a lot of search we've found no data (code example or schematic hint) about using it on internet. Can anyone guide us on using that IC. Any advice would be ...
0
votes
1answer
154 views

Looking for STM32F4 Vdd 5V

I have to replace Renasas M30853 MCU with STM32F407 MCU in a circuit. The earlier MCU uses power supply Vdd = +5V as well as all the analog and digital circuit that is connected with it. How can I use ...
0
votes
0answers
29 views

Unable to connect to STM32L011d4p6 (14 pin TSSOP) via SWD

I designed a small PCB featuring a STM32L011 and 433.92MHz ASK transmitter; planned as a dual-contact door sensor (those seem to be rare). Schematic: https://drive.google.com/file/d/1KrJF-...
0
votes
1answer
50 views

STM32 - SPI - RTOS problem [closed]

I'm working on a project that uses a 2.8" arduino LCD. The LCD uses an ILI9341 driver. Now I'm testing this library: https://github.com/martnak/STM32-ILI9341 with an STM32F4-Discovery board (STM32F407)...
0
votes
0answers
35 views

SVPWM Primer for ACIM

As I am trying to implement a speed control for ACIM using SVPWM. I could not find out a focused primer on what exactly is a SVPWM technique and how is it implemented in an MCU like STM32F4? All the ...
0
votes
1answer
215 views

SWD vs ST-LINK on STM32F4 Discovery board

Why do we have 2 connectors namely CN2 (SWD) and CN3 (ST-LINK) on STM32F407 Discovery board? Are not they the same thing?
0
votes
0answers
104 views

STM32F407 - ADC in Scan mode setting overrun bit

I want to read 4 ADC channels in continuous scan mode. I am using adc interrupt to read from adc data register. Here is my initialization : ...
1
vote
0answers
227 views

STM32 SDMMC & SDIO - why max 1 SD card only?

I'm writing an SDMMC driver for my C++ RTOS for microcontrollers and there is one thing which really puzzles me, making it hard to decide about class hierarchy. In the Reference Manual for STM32F7 (...
1
vote
3answers
141 views

STM32F429 Discovery debug options

I recently acquired an STM32F429 Discovery Kit (pictured below). I'm new to the M4 cortex series microcontrollers and ARM in general having only worked with PICs before. I've seen some really nice ...
0
votes
0answers
68 views

FOC Control vs SVPWM

I wonder how far the similarities go between FOC control and SVPWM modulation and from which point on wards they are different from each other? edit: Can anyone point out a very basic primer from ...
1
vote
1answer
89 views

Is it possible to replace STM32F407 Internal Bootloader

I am new to the STM32 world. I know that all STM32 MCUs come with an internal bootloader. Is it possible to replace it with custom boatloader?
0
votes
0answers
185 views

Buck-Boost Controller Arduino Nano vs STM32

I have 900W (150W*6Panels) solar panels and 12V inverter (1000VA) which have inbuilt PWM solar charge controller. The distance between pannels and inverter is around >10m and the wires are 6 sq mm ...
0
votes
1answer
58 views

TrueSTUDIO look and feel

I have used Keil uVision and Microchip MPLABX IDE's a lot for various MCUs. Now starting to use Atollic TrueSTUDIO for STM32 MCUs. But even after spending many weeks on trueSTUDIO and building many ...
0
votes
1answer
73 views

Pin compatibility between STM32L4X1 and STM32F1 [closed]

Does STM32L4X1C series have a pin compatibility with STM32F103xx, 107xx or 207xx? How can I find the other STMs that be pin compatible with the series I want?
0
votes
0answers
89 views

STM32: I2C no dataflow after a few seconds

I have a problem with my i2c connection. After a few seconds of reading the i2c readings stopped and i can't see any SDA signals with an osilloscope. I use CUBEMX5.0.1 and in the function ...
1
vote
1answer
135 views

STM32L0: Fast processing of an analog sinusoidal signal

I have an embedded system based on a STM32 ARM Cortex M0+ microcontroller (STM32L051K6) and want to use it to convert an analog sinusoidal input signal into a digital pulse signal and do some SW ...
1
vote
1answer
71 views

STM32F3 - diffrence between PWM1 and PWM2

Can anyone explain to me wht is the difference between PWM1 and PWM2 in STM32F3 timer configuration? It is mentioned frequently in documentation, however I can't find the difference between these two ...
0
votes
1answer
65 views

Can I use an unmodified ST Nucleo-F303RE to develop USB devices?

I want to use my Nucleo-F303RE to develop firmware for a USB HID. The stm32f303ve data sheet states in section 3.25 that for the USB peripheral to work, the MCU needs a HSE crystal oscillator. ...
1
vote
1answer
37 views

Porting a different variant (STM32F429ZITx) to STM32F429VITx

I have an FreeRTOS example running on STM32F429I-DISCOVERY / NUCLEO-F429ZI, which has the <...
0
votes
1answer
71 views

STM32L4 Reset Issue

I have been facing a reset issue. My controller resets randomly. I have Codded for the source of reset at the begin of the routine. For the testing the code I made the system reset on purpose and ...
1
vote
3answers
186 views

How to supply a very accurate ADC reference voltage to STM32?

Every voltage regulator IC has atleast a variation of 2% or something. This can make the ADC reading way inaccurate if it fluctuates to those levels. What is a robust and common solution to this ...
0
votes
0answers
159 views

flashing a stm32 board, target Not halted

I now this is something simple but I haven't been able to find an answer to my problem, also this is the first time that I am trying to use this line of mcus and I have been trying to solve this ...
1
vote
1answer
149 views

nucleo-f401re button interrupt keep getting into the irq handler

the nucleo board button is pulled up to high to gpioc13 so i made the interrupt on a falling edge , the code keeps getting into the irq handler without me pushing the button my main.c ...
0
votes
1answer
90 views

CubeMX HAL Libraries state or stateless [closed]

I wonder if the STM32F4 CubeMX peripheral HAL libraries saves the internal state of the peripherals OR if they are stateless? I am concerned about this because I want to know the possibility and ...
-2
votes
1answer
78 views

STM32 GUI for Timers [closed]

The CubeMX for STM32 MCUs gives an easy graphical interface to configure the Clock tree. I wonder if there is similar GUI tool for configuring the peripherals specially the advance timers TIMER 1 and ...
0
votes
3answers
240 views

STM32 HAL driver for register value update

I am new to HAL drivers and STM32 MCUs. Can anyone tell me how to use HAL drivers to update register values of STM32F407 MCU? I have to programatically update the values of ARR and CCR registers of ...
0
votes
0answers
464 views

STM32 HAL UART receive timeout interrupt

I'm developing a software for the STM32l432KC (NUCLEO-L432KC) which uses 2 UARTS with DMA (RX DMA mode to DMA_CIRCULAR) using HAL. My problem seems to be quite common: the UART buffer length is ...
0
votes
0answers
51 views

STM32F4xx, How to use RTC correctly?

I'm trying to run RTC, but there are two problems. 1) It is impossible to write the security key in the WPR register. 2) It is impossible to set the time and date in the TR and DR registers. I tried ...
0
votes
2answers
103 views

MCU Reset with DC Motor driving (PWM)

I would like to understand a problem which i have with a little MOSFET test with a dc motor. My power supply drive the motor at 12V and it consume 1A. My circuit is very basic. I have a stm32 MCU ...
0
votes
0answers
54 views

Initializing ADC causes LCD to not display anything

I have been having some trouble getting my ADC to work so I have decided to give it a try by manipulating the registers. I have a textbook which outlines the steps and I think I have it finished, but ...
0
votes
0answers
115 views

USB Host circuit correct?

I recently qualified as an electronic engineer. I have designed a USB circuit to update the .bin contained in the STM32F469 microcontroller. I would like you to confirm if the circuit I have made is ...
2
votes
2answers
519 views

What's the difference between a generated hex file and a binary file in embedded systems?

I have an STM32 project (let's call it blinky). This project is developed using Keil IDE. It blinks an LED every 1 second. When I build it, a HEX file is generated. Let's say I want to upgrade the ...
0
votes
1answer
46 views

STM32 Power connections question

When incorporating the STM32F7 MCU onto your own board design, is it necessary to connect supporting circuitry (analogue supply filtering etc) to the VDDA, VCAP pins if not using any of the analogue ...
1
vote
3answers
126 views

Microcontroller overheating when sensor is plugged in [closed]

I am building a board based around an STM32L051C6 microcontroller, which will measure a hall effect sensor (AH3362Q) and count the time in between the edges the sensor sees. The sensor is powered from ...
0
votes
3answers
567 views

STM32 ADC Input voltage

What happens to STM32F407 ADC if i give it an input voltage higher than maximum VDDA that is mentioned in datasheet equals to 3.6 volts? It will harm the micro?
1
vote
2answers
186 views

Minimum connections needed between stm32 MCU and the st-link programmer? [duplicate]

My MCU is stm32L432kc. I've concluded that we need a minimum of 4 connections: SWCLK, SWIO, vcc and gnd. Can someone from here confirm that? And another question is I'm confused how to connect the ...
0
votes
1answer
200 views

STM32 GPIO Clock

Why do we need to ENABLE a GPIO pheripheral's clock by RCC_AHB register while we are using of that GPIO's pins as an another Peripheral(e.g. ADC) Input/Output pin(Alternate Function)? For instance ...
-2
votes
1answer
62 views

Arduino STM32 bluepill generate PPM

does anyone knows is there a way to generate PPM (CPPM/PPMSUM) on STM32 Bluepill Arduino? Tnx in advance?
0
votes
1answer
254 views

STM32L476 Discovery ADC output is not changing even though the input voltage is

The output value of the ADC seems to flicker between 539-549 (in a range of 0-4095) no matter what voltage is on the input pin. The voltage on the input is usually between 0V - 4V. This might be a ...
0
votes
0answers
68 views

STM32H7 DMA2D MEM2MEM rectangle coordinates

Question: how do I specify rectangle copy parameters of source (x1, x2, width, height) and destination (x2, y2) buffer using DMA2D registers, in memory to memory mode? My problem is that I cannot ...
0
votes
0answers
103 views

STM32F072 TIMER PWM + DMA : Not working as expected

I am using TIMER2 + CHANNEL 2 PWM to generate 800 Khz wave. The idea is to vary the duty cycle of this wave as per a statically generated pixel bit array (1 SK6812 pixel = 32 bit GRBW = 32 bytes of ...
0
votes
1answer
60 views

Compiler error when using HAL functions for I2C communication

I am using the board STM32F3 and I am trying to establish I2C communication between the microcontroller and the accelerometer LSM303DLHC by using the HAL functions. This is the code: ...
1
vote
2answers
135 views

SPI using STM32's DMA sends one word too much

On an STM32F103 I configure SPI in 16bit wide mode and set up a DMA transfer to transmit one byte: ...
6
votes
1answer
740 views

Inaccurate timer interrupt STM32

I wrote a simple program to toggle an LED on and off using the TIM1 interrupt on an STM32F0 discovery board. CLK Freq = 48MHz Prescalar = 48000 Auto Reload Register = 1000 Using the following ...
0
votes
1answer
125 views

STM32F091 timer as a prescaler for another timer

I would like to chain two 16-Bit timers to each other to make a 32Bit timer. Just like the example in the datasheet [RM0091 figure 147 page 429] but with different timers. I found these two sites: ...
0
votes
0answers
107 views

stm32f030 and ad9833

There are a lot of examples how to make sine generator with arduino. Use ATMega 328, AD9833 and that's OK. My project use STM32F030 and AD9833. I prefer to use HAL and in this case don't use crystal ...