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.

467 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11
votes
0answers
281 views

Switch from JTAG to SWD with bitbang sequence on STM32F103VB

I am trying to switch from JTAG to SWD without any external devices. Why? Because I would like to use the SWO pin to send a stream of logging information to another device. To accomplish this ...
6
votes
1answer
4k views

STM32F407 + LAN8720A + lwIP + FreeRTOS = No received Ethernet frames

I'm trying to bring up a PCB that uses an STM32F407 and LAN8720A Ethernet PHY, and I can't seem to receive any Ethernet frames — even though I have no problem transmitting frames. Hardware setup I ...
5
votes
0answers
165 views

Is JTAG faster than SWD for debugging on an STM32F with STLINK-V3SET programmer?

There is a new STLINK-V3SET programmer that someone dropped off on my desk today. It supports USB 2.0. My thinking is that if SWD is the bandwidth limiter in the signal chain then a new programmer isn'...
4
votes
1answer
501 views

Receiver issues on STM32H7 interrupt-based SPI

I want to configure a simple interrupt-based SPI slave transmitter/receiver on a STM32H7 MCU. Even though I have quite a bit experience with the older series of STM32 ARM MCUs, it seems that a lot of ...
4
votes
0answers
3k views

UART reception problem when SysTick Interrupt is enabled

I'm using a STM32F411RE-Nucleo board and generating a project with Cube MX for System Workbench. The problem is that HAL_UART_Receive function doesn't receive input ...
3
votes
0answers
127 views

Weird problem on STM32 ADC with Interleaved Mode

I am sampling a signal on the STM32F3 Discovery board (stm32f303vct6) with two ADCs working in interleaved mode. It works great with a 200kHz 1V sine wave. But when I apply 10kHz 100mV sine wave, I ...
3
votes
0answers
361 views

STM32F429ZIT6 with SDRAM IS42S16320F Read/Write Issue

I designed a board which is containing two SDRAM (IS42S16320F) and STM32F476ZIT6 MCU (and other components also). I can access the SDRAM but the data is changing independently from the code. My board ...
3
votes
1answer
2k views

STM32 UID decoding

In my project I need to make readable 96bit UID, in reference manual is described how the number is encoded: ...
3
votes
0answers
278 views

Wait make the STM32L073RZ freeze in stopmode

With my STM32 I'm trying to configure a deepSleep mode and use RTC to generate interruption (actually each 30 seconds). When my STM start, this one configure the RTC and directly go in Stop mode. ...
3
votes
0answers
869 views

Master-slave timing on ARM Cortex-M0

I have set up a slave timer that starts counting when the master timer is enabled. I want to know if the slave starts counting when the master timer receives a valid edge (my configuration is count ...
3
votes
0answers
1k views

STM32F0 USB device - unexpected Device_Qualifier descriptor request

Edit I may not have asked the correct questions here. Please do not attempt to answer before I edit again to remove this message. Summary I'm developing firmware for a USB device, and I can't get ...
3
votes
0answers
3k views

How to know the memory occupied by the various memory segments in a microcontroller

I'm using STM32 based microcontroller, IAR embedded workbench and STlink v2 debugger. I just want to know how to check the memory utilized/used by the program/system in various memory segments like: ...
3
votes
1answer
9k views

STM32F4 NAND flash via FSMC, difference between bytes written and read back

I have a Waveshare Open407V-D development board, basically a "motherboard" in which an STM32F4DISCOVERY kit is fitted (this kit, for those not familiar with it, is made by ST itself and based on the ...
3
votes
1answer
4k views

Run IAR Program without Debugging

I'm having a simple problem with IAR Embedded Workbench, programming an STM32 using an ST-LINK/V2 programmer. I'm trying to run a program that temporarily switches off the JTAG pins, so I can't run it ...
2
votes
0answers
46 views

Hard fault on only one of two identical STM32F405 boards

So I've made two prototypes of a new custom board with a STM32F405RG microcontroller at heart and while one of them works totally fine, after a few seconds or more I'm getting a hard fault on the ...
2
votes
0answers
87 views

Powering down parts of a pcb to conserve power, is it possible? Any caveats?

I'm building a USB 2.0 bus-powered STM32F429-based audio device that is able to run in a stand-alone mode from a phone charger, or running as a USB device when connected to a computer. To comply with ...
2
votes
0answers
51 views

Address Sent bit is not set on STM32F4 Disco

I am trying to interface my STM32F4 Discovery board with a sensor that works over i2c, since the sensor required a specialized i2c protocol, I decided to implement my functions using registers. But ...
2
votes
0answers
64 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 ...
2
votes
0answers
69 views

How to implement multiple functions on single push button

I am using a STM32 Nucleo MCU and trying to pull a multi-function single-button method. I need a way to implement this form of functionality for a single push-button: Push 1: function 1 Push 2: ...
2
votes
0answers
76 views

STM32f7 ADC DMA transfer not populating the buffer

I'm trying to compute the FFT of a 100 kHz signal from the STM32f746G discovery board using the HAL and CMSIS DSP libraries and I've run into a few issues. My first issue was trying to trigger the ...
2
votes
0answers
61 views

Weird SWD debug port behaviour

Today I have started to encounter strange problems with SWD debugging. The debug only works if I keep my finger on the SWD pins. To be more interesting I have the same problem with the boards I was ...
2
votes
0answers
464 views

Add serial interface to ST-link clone

I recently started studying STM32 microcontrollers (BluePill STM32F103 dev board + ST-link V2 clone). I was wondering if it is possible to add serial communication to ST-Link clone? From what I ...
2
votes
0answers
88 views

STM32F429 PWM GLITCH

I have set up Timer 1 Channel 1 for pwm mode 1. I used the STM32CUBE to generate code for MDK-ARM. Parameters as below- ...
2
votes
0answers
1k views

stm32 external interrupt

I am working with a stm32f103 and am trying to get the external interrupt done. My code is: ...
2
votes
2answers
438 views

Driving WS2812b with STM32 and PWM strange behavior

First of all I want to say that I'm a complete beginner in circuit design but I really want to do one thing. I'b trying to drive WS2812b LED strip using STM32F103 chip. Since WS2812b use 5V and MCU ...
2
votes
0answers
361 views

STM32L0 ADC Interrupt Low Sampling Rate

My observed sampling rate is much lower than expected and I cannot understand why. I have the discovery STM32L053C6 Discovery board and I want to use ADCs sampling. I started from the example ...
2
votes
2answers
822 views

STM32F0 ADC reads wrong values

I am using STM32F030F4P6 MCU for a project. This MCU has no Vref+ pin and using VDDA pin for A/D conversions, PLL etc. While prototyping the circuit that I am going to use on my project, I shorted ...
2
votes
0answers
72 views

nucleo-64 103rb EXTI stays pending

The PC13 EXTI interrupt (EXTI15_10) configured here keeps firing none stop. Most other questions about this same topic indicate that the respective EXTI_PR pending bit needs to be cleared in the ISR. ...
2
votes
0answers
189 views

STM32L1 Discovery Kit 5MHz PWM Generation

I have been using the STM32L1 Discovery Kit with the STM32L152RCT6 MCU. A project that I am working on requires me to output two PWM signals. One of these is a 100KHz square wave and the other is ...
2
votes
0answers
669 views

STM32F7 - Quad SPI dummy cycle behavior

I am working with the STM32F767ZIT6. At the moment I am exploring the QuadSPI peripheral. After setting up the peripheral with the following configuration I noticed some undesired behavior of the data ...
2
votes
0answers
271 views

L298 distorts signal

I connected STM32 F334R8 microcontroller to L298 H-bridge. I made some measurements. The problem is output signal on L298 has quite slow slopes and is not as sharp as input signal. I do not understand ...
2
votes
0answers
287 views

PWM event each second not works STM32F4

I have a STM32F429 Discovery and wants set a PWM to toggle led with period of 1 second using Timer 1, channel 1. So, I follow this equation: My clock APB1 is set to 1MHz. So by my calculations I ...
2
votes
0answers
418 views

Porting RTOS in STM32F4 board

I want to port a RTOS in STM32F4Disco board. I'm a newbie in this area and unable to understand how to adjust the configurations according to a new target and the whole porting process. So right now, ...
2
votes
3answers
826 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. ...
2
votes
0answers
481 views

USART on STM32F411 reads junk after MCU wakes up from STOP mode

I am working on a board that uses an STM32F411 connected to a bluetooth module over USART. One of the goals is to enable Low-power consumption in STOP mode. A brief summary of the platform: The ...
2
votes
0answers
4k views

STM32F429 HAL library CAN_Transmit timeout

I'm having a bit of trouble with the ST32CubeF4 v1.13.0 example of a CAN network. I'm using an STM32F429 discovery board, but I have ported over the CAN network example from the STM324x9_EVAL board. I ...
2
votes
0answers
1k views

How to properly send stop condition when using DMA with I2C?

I'm using DMA transfer to get 1024 bytes from master (STM32F407VG) to slave OLED screen (SSD1306). The library I'm using does this: ...
2
votes
1answer
878 views

STM32f4 Port to HAL : USB HID dropping packets

I am trying to port a working custom HID code from Standard peripheral to HAL.I am sending two consecutive reports in a single while loop. In Standard Peripheral code the following is called twice for ...