Questions tagged [stm32f4]

STM32 F4 controllers are entry-level ARM Cortex-M4 MCUs from ST Microelectronics.

The STM32F4xx series is an ARM Cortex-M4 based 32-bit microcontroller. Its datasheet can be found here.

533 questions
2
votes
2 answers

STM32: I2S input not working when using DMA

I am trying to interface a 'STM32F401RET6 Nucleo-64' microcontroller with an Adafruit I2S microphone in a mono setup. To accomplish this task, I would like to have DMA enabled. I used the Device Configuration Tool in STM32 Cube IDE to activate I2S3…
IsaacNuketon
  • 55
  • 1
  • 10
2
votes
0 answers

DMA data loss when changing PWM frequency during the DMA reading

First time working with DMA here and I'm getting data loss when the frequency of a PWM signal is varied during the DMA reading. The DMA request is triggered by a 16MHz clock. I'm using DMA2 on STM32f429zi. The DMA direction is peripheral to memory,…
linda123
  • 21
  • 2
2
votes
2 answers

I cannot access STM32 DMA register when configuring it

I currently use standard peripheral library to write a driver that enable memory to USART6_TX DMA transfer on a STM32 F407 ZGT6 chip. However, I tried for a long time but the initialization keeps on failing: DMA_GetCmdStatus always returns DISABLE.…
Brad
  • 23
  • 4
2
votes
1 answer

STM32 Timer auto-reload preload

The conditions to reproduce: Here is my real life example that I would like to solve:I am developing an application on an stm32f411RET which needs to dynamically change the period of two PWM's.The two PWM's need to be synced and have exactly the…
Spyros Mourelatos
  • 484
  • 1
  • 8
  • 19
2
votes
2 answers

stm32cubeide reports firmware package is missing

I have a STM32 Nucleo F4 and I am trying to create a new C project in STMCubeIDE. I have STMCubeIDE version 1.5.0 Build: 8698_20201117_1050 (UTC) In the Embedded Software Packages Manager I have installed "STM32Cube MCU Package for STM32F4 Series"…
DavidW
  • 353
  • 2
  • 10
2
votes
2 answers

STM32 USB CDC Rx Interrupt

I have implemented USB CDC (VCP) on STM32-F446re(Nucleo). I am using int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len) in loop to receive data. But lot of data is also being sent over, hence I want reception interrupt based. Can anyone help me…
Schrodinger95
  • 25
  • 1
  • 4
2
votes
1 answer

Systick timer on Cortex-M4: What is its prescaler?

I am a little bit confused regarding Cortex system timer on Cortex-M4 CPU. Let's say, we have following configuration: 16MHz HSI as a clock source; AHB1 prescaler sets to 1 (i.e. HSI divided by 1); It means that main system bus (i.e. AHB1 or AHB)…
2
votes
1 answer

How to enable UART for STM32 Nucleo F429ZI?

I am trying to enable UART for STM32 Nucleo - F429ZI. I have gone through user manual and it says by default USART 3 can be configured for virtual com port purpose. Here is my code. I can see that USART 3 has pins D8 and D9. Here is my code. What am…
tannoy connect
  • 185
  • 4
  • 14
2
votes
0 answers

Is there a way to use dual mode on a Nucleo board without using DMA?

For our project, we are using the STM32Nucleo446RE. We want ADC1 and ADC2 to start sampling at the same time. We found the dual-mode, but couldn't find clear examples of how to use it. Using the STM32CubeIDE we configured both ADCs to…
jefry
  • 21
  • 1
2
votes
1 answer

STM32F4 RTC alarm interrupt called without initialization

RTC alarm interrupt (IRQ number 41) is being called on my development board with STM32F411CEU MCU continuously without even initializing RTC. I have this default interrupt handler (I commented out the Default_Handler in…
user785560
  • 111
  • 1
  • 9
2
votes
1 answer

STM32F407VG Standby mode wake up reason — WUTF flag always set

I’m writing a low power application for the STM32F407VG. It goes into standby mode and can wake up in two ways: Periodically, using the RTC wakeup timer; By pressing a push-button connected to the PA0-WKUP pin. Depending on whether the application…
swineone
  • 2,296
  • 1
  • 18
  • 32
2
votes
2 answers

Writing to non-volatile memory without disrupting UART interrupts execution on STM32F4XX

I have several OVERRUN errors on UART peripheral because I keep receiving UART data while my code is stall because I'm executing a write operation on flash. I'm using interrupts for UART and has it is explained on Application Note AN3969 : EEPROM…
2
votes
1 answer

STM32F4 - how detect removed battery

I would like use battery backup SRAM in STM32F4 MCU. Is there some way how detect disconnected/removed battery after connecting VDD voltage (after reset)? Yes, I can save CRC of backup SRAM in RTC backup registers, but I would like get information…
BlR
  • 23
  • 4
2
votes
2 answers

Read/Write Struct to Flash Memory

I want to write the contents of a struct to flash memory in my C program for STM32F4 Discovery board using HAL libraries. This is my struct: typedef struct { RTC_TimeTypeDef time; RTC_DateTypeDef date; float Data; } DataLogTypeDef; I…
b7031719
  • 120
  • 1
  • 2
  • 8
2
votes
3 answers

STM32F4 interface with RS485

I am trying to read data from a meter using a RS485 to TTL Converter to an STM32f407VG. My device slave ID is 121, the baudrate is 9600. I want to read holdingRegisters and InputRegisters. I am trying this FreeMODBUS RTU port for STM32 HAL library…
Gourav kumar
  • 23
  • 1
  • 2
  • 5