The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0answers
49 views

What is the problem in my timeout implentation?

I'm trying to use DHT22(temperature and humidity sensor). Here is it's datasheet DHT22 Datasheet In first few seconds. I can get values. But after a while it stucks in here: So i try to implement a ...
0
votes
1answer
37 views

How to update firmware over DFU on read protected STM32 microcontroller with command line tool?

STM32 microcontroller have bootloader in system memory witch is write protected (and it works). This can be booted with right sequence, what I don't cover here. ST provide DfuSe tool to upgrade ...
0
votes
0answers
20 views

Drawing a single pixel using DMA2D

I'm trying to draw a single pixel using DMA2D. I did the following code it's not working at all. LCD Display Width is 320, Height is 240. I assumed a 1x1 pixel rect as a pixel. ...
1
vote
0answers
19 views

Mounting Problems SD Card and STM32F7 Discovery

I've got some problems with the FATFs library and the STM32F7 Series. I want to connect a SD-Card (32GB, SanDisk, FAT32) with the F746G-Discovery-Board to save some data on it. (at first .txt-Files, ...
0
votes
1answer
80 views

How to create a microseconds delay function in STM32F0

I was using STM32F4 and i had created a microsecond delay function using DWT register. And now, i'm using STM32F030F4P6. And this MCU has not DWT register. So, i tried to create another delay function....
0
votes
2answers
58 views

Correctly driving dual 7-segment display

After receiving some feedback on my other question, I have improved my design. I am still using a stm32f030k6 to drive a two-digit 7-segment display, but I am using the common-anode HDSM-291C in ...
0
votes
0answers
33 views

Accelerating Graphics rendering in STM32F7

I have a framebuffer that is created on SRAM with LTDC that is everything is written to that buffer, images, icons,..etc. and get displayed to the LCD screen. That works fine. but the screen size is ...
0
votes
2answers
94 views

How to create a static library for a UART sensor for STM32?

I am working on a project using the NUCLEOF103RB development board that interfaces with a fingerprint sensor over UART. I am using the TrueStudio IDE and would like to develop a "library" for the ...
0
votes
0answers
77 views

Powering LEDs through microcontroller pins and transistors

I'm working on my first ever PCB, and would like to include two 7-segment displays. The device will be powered from mains, so power consumption is not an issue. I have chosen the Broadcom HDSM-293L, ...
1
vote
0answers
41 views

Using internal pullup, pulldown resistors to find floating IOs

I want to find at runtime if a GPIO is floating (nothing connected to it). I assumed I'd find tons of answers on Google, but maybe I'm searching wrong. My approach has been to: enable the internal ...
0
votes
0answers
28 views

CubeMX doesn't create bluenrg_utils.c

In case someone already stumbled upon this issue I'd be glad about every advice. So I have an STM32 that is connected to a BlueNRG-MS and I set everything up using the CubeMX. There I select the ...
2
votes
2answers
272 views

Use one RTC battery for two circuits

I'm designing a circuit with STM32F407 and a DS3231 chip clock. The MCU has a separate VBat pin that can be used and on the other hand, the DS3231 chip has its own RTC. I'm wondering can I use a ...
0
votes
1answer
49 views

Reset Switch Wiring on STM32

I want to wire a reset switch for my STM32F0 microcontroller. The datasheet suggests the following external circuity to do so: Connected to the NRST pin is a 0.1uF capacitor and the reset switch. A ...
5
votes
2answers
2k views

RX vs TX operation in Software UART

I am short of 1 UART in my MCU. I needed 4 but so far what I have found suitable is an MCU that has 3 UARTs in it, STM32F103. So the 4th one I will have to implement in SW. Each of my individual ...
1
vote
1answer
326 views

STM32F0 - interrupt/breakpoint not working on certain hardware

OK I realise this sounds like a dumb/noob question but please do read it through before calling me an idiot - at this stage I'll gladly take it if you can spot where I've gone wrong! The scenario: ...
1
vote
1answer
40 views

STM32F103CB Timer update interrupt not working

I am trying to setup the timer update interrupt of a stm32f103cb. My setup and interrupt code looks as following: ...
0
votes
0answers
16 views

Errors when enumerating USB of STM32WB55 MCU

I am trying to make a PoC USB device using STM32WB55RGV6 (using their dev kit p-nucleo-wb55 board&dongle). I started with just following STM's example code for USB HID device (using mouse profile)....
2
votes
3answers
198 views

STM32 (SWD) printf not working

I'm new using STM32 microcontrollers, I have been trying to use the printf tracing in my code without success, anything is printed on the console. I can start a debug session, I can place breakpoints ...
1
vote
2answers
165 views

Garbage in SPI RX Buffer with DMA (STM32)

MCU: STM32f030f4p6 There is garbage in reception buffer, when I use SPI and 2 DMAs (for reception and transmission). ...
-2
votes
0answers
26 views

I have a CAN transceiver circuit with the STM32L496 discovery board. How do i program the hardware to receive and transmit VEHICLE data? [closed]

The hardware of the circuit is similar to the draft below. Having trouble with programming to the vehicle.
2
votes
1answer
8k views

LIN-communication between two STM32F4 with a standard LIN-transceiver (Hello World)

I have the following circuit connecting two stm32F4 via the SN65HVDA195-Q1 LIN-transciever. simulate this circuit – ...
1
vote
1answer
150 views

STM32 hits breakpoint when TIM1 prescaler > 2

I'm generating a PWM signal on STM32F103 using TIM1. Timebase init code is: ...
0
votes
1answer
21 views

How to debug a program using FTDI in STM32CubeIDE?

I want to debug a test project for my board the STM32F103C minimum systemboard, sometimes called the bluepill, I use linux so i downloaded the original STM32CubeIDE as .sh execute it and downloaded ...
0
votes
1answer
23 views

How to set up clock for the STM32 Nucleo-64 with libopencm3/rtos

I was using this code from github on a blue pill. Now I would like to adapt it for STM32F401 on a Nucleo-64 board. I tried changing the GPIO to A7 and attaching an led (which lit up when I attached it ...
1
vote
1answer
52 views

PWM to analog voltage conversion for communication between two microcontrollers

I want to use this schematic for sending PWM signals from an STM32F0 Arm microcontroller to an ATtiny85. I want to convert the PWM signal to a proper analog voltage, so that the ATtiny analogRead() ...
0
votes
1answer
173 views

stm32f407 timer setup stm32duino

I'm trying to understand how timers work in this board. I want to make a simple led blink after X amount of microseconds and then keep the led on for X amount of microseconds ...
0
votes
0answers
54 views

What is the proper way to reset attiny85?

I have 3 attiny85 on my pcb. And I want to have software controlled reset for them. A separate STM32F0 microcontroller is responsible for the reset. I have two states from the STM32F0 to pull up and ...
0
votes
1answer
52 views

Which would be cost effective, a display with graphics controller or without graphics controller?

I am working on a touch screen display on stm32. I found some evaluation boards like mikromedia-7-stm32f7 and stm32h753i-eval Mikroelectronica uses the external controller SSD1963, although the MCU ...
2
votes
1answer
58 views

Wireless SWD interface

Is it possible to have a wireless SWD interface with a simple Data and clock line like the cheap STM32 ST-Link clones. My initial, and flawed, idea was that I would have an ST-link plugged into the ...
2
votes
3answers
116 views

Conversion formula for adc

If you have a 12 bit adc, as the one in STM32F437, which of the following formulas do you use to calculate the analog value? V = ADC_sample / 4095 * 3.3 or <...
2
votes
0answers
115 views

STM32 read external FIFO through FSMC

I want to use FSMC of STM32F429 to read external FIFO implemented in an FPGA MAX10. Since no mode of FSMC can fit the FIFO interface precisely, I try to use the modified synchronous multiplexed PSRAM ...
0
votes
1answer
170 views

Not Able to Simulate STM32 Program In Keil

I just start Working on Stm32F070RBT6.I am using CubeMx to Configure Keil and And Keil uVision5 to simulate.I tried Blinky Example and run it in simulator mode.But The Example Is not working perfectly....
0
votes
1answer
163 views

capturing 12-bits raw bayer data using STM32F429 MCU

The datasheet of the STM32F429 MCU says that the MCU's DCMI supports parallel digital image data with 14-bit bit depth. But at the same time it says that you can capture raw bayer data only in 8-bit. ...
0
votes
1answer
55 views

How to read USB mouse data using STM32f103C OTG USB functionality? [closed]

I wanted to build a project where is a screen displaying a pointer, and I wanted this pointer location to be determined by a USB mouse, so I used the ARM 32bit based STM32f103C microcontroller which ...
0
votes
1answer
37 views

STM32F103 SPI Pinout Problem

I am currently working on a project with LoRaWAN technology using STM32F103C8T6 microcontroller. For LoRa I am using SPI in Full-Duplex Master mode (spi1 specifically) and in CubeIDE when you activate ...
1
vote
0answers
547 views

Keil - Configuring Logic Analyzer tool

I am working with the Keil compiler in a project using the STM32F769I-DISC1. For debugging I use the ST-Link provided by the board. The idea is to use the on-chip DAC using TIM6 for triggering the ...
0
votes
1answer
74 views

LED lights up even though there is not supposed to be an output from the STM32

I'm using an STM32F103C8T6. I connected an LED to the pin PA5 and a tactile button switch to the pin PA0. I wrote the program as follows: ...
0
votes
2answers
48 views

IAP bootloader not jumping to the application address

I am working on IAP in STM32F4. I received .bin file using uart and flash it in 0x08004000 address successfully and disable irq , set msp , set vector, deinit hal , reset the systick registers but the ...
4
votes
4answers
570 views

Interrupt control in STM32

I am trying to learn about STM32 programming. I started to read some references before start the programming. I am currently reading this ST presentation. It says: When an interrupt request ...
18
votes
6answers
50k views

How do I use the printf function on STM32?

I am trying to figure out how to use the printf function to print to the serial port. My current setup is STM32CubeMX generated code and SystemWorkbench32 with the STM32F407 discovery board. I see ...
1
vote
1answer
42 views

Changing clock speed of STM32F779II

I'm configuring the clock of the LCD which has a max clock of 30MHz as following. Plus I'm using the touch at I2C1, and USB at 48MHz. The clearing and painting an image to the LCD is slow, and it's ...
1
vote
1answer
190 views

stm32f103c8t6 cannot connect using stlink after upgrade, how to fix?

I upgraded the firmware using stlink>upgrade firmware (using cheap stlink v2) with stm32f103c8t6 connected (boot0 and boot1 are both 0). After successful upgrade i unplugged and plugged it back and ...
0
votes
1answer
50 views

Qtouch with non-Atmel microcontrollers

Simple question really. Can I use Atmels Qtouch library with non-Atmel MCUs (such as an STM32)? It seems like Atmel has a solid line of capacitive touch ICs, ...
0
votes
1answer
189 views

STM32F4 LIS3MDL Magnetometer Hard-Iron Effect Elimination

I am using LIS3MDL 3 axis magnetometer sensor for car detection project. while I am using raw data, I understand that if sensor is exposed to hard-iron effect then this sensor can not read old values. ...
0
votes
0answers
25 views

download program to STM32 board is not working well

I am using STM32L031K6 with IAR imbeded workbench 7.70. I give the program to board by 'download & debug' and when clicking 'go', it runs well but after that, when I connect board to external ...
0
votes
3answers
64 views

STM32 ADC and timer(s): Measuring moving average peak voltage of PWM signal with varying amplitude

I want to measure a moving average of the amplitude of a fix frequency, fixed dutycyle PWM signal with slowly varying amplitude but in a noisy environment (DC motors). I want to use as little as ...