Questions tagged [stm32f4discovery]

Evaluation board from STM. Based on the STM32F407VGT6, it includes an ST-LINK/V2 embedded debug tool, two ST MEMS, digital accelerometer and digital microphone, one audio DAC with integrated class D speaker driver, LEDs and push buttons and an USB OTG micro-AB connector.

542 questions
1
vote
0 answers

FatFS f_write never returning

I am trying to write to a file on an SD card using an STM32F401RET6 development board. I am using an SDIO adapter I got on amazon (https://www.amazon.ca/gp/product/B07C26YZPK/ref=oh_aui_detailpage_o06_s00?ie=UTF8&psc=1). In STM32CubeMX, I have…
Marcel
  • 1,034
  • 1
  • 17
  • 35
1
vote
1 answer

Undefined reference to main when using Real-Time For the Masses

I'm trying to write a multi-threaded bare-metal application for the STM32F4Discovery using the Real-Time For the Masses (RTFM) crate. I've frankensteined together a minimal application from an example for the STM32F3Discovery board and this…
arkap
  • 27
  • 8
1
vote
0 answers

Keep alive messages transmitted from a UART device in my system to the CPU don`t arrive once in a while only when another process is running

I have a STM 32F microcontroller which is connected to a X3399 core board via UART. Every 400 ms I`m sending a keep alive message from the micro controller to the board, once in a while, asynchronously, the keep alive message is not received on the…
1
vote
1 answer

stm32f4 adc eoc flag with dma

I am using an stm32f4. Currently I am reading the temperature of the chip by using the ADC with DMA and TIMER tiggered. DMA is setup as a circular buffer with double buffering. The TIMER TRGO is set up as every to trigger Update Event. It seems to…
Moeiz Riaz
  • 165
  • 2
  • 18
1
vote
2 answers

use RNG library in stm32f4xx

I want to write simple code to generate random number with built-in hardware in stm32f4xx discovery board. I wrote the code below but it does not work. It sticks in inner while loop and the flag never set to jump out of loop. #include…
M.Mazraeli
  • 11
  • 3
1
vote
1 answer

Serial communications over stlink with stm32f4discovery, is it possible?

I have the following: STM32F407G-DISC1. My goal is to communicate (sending strings back and forth) between my pc and the mcu over serial and I currently am able to do so using the micro-usb (otg) port, while powering separately using the mini-usb…
Gerard
  • 13
  • 6
1
vote
0 answers

STM32F4 PWM input mode with DMA. Cannot measure duty cycle

I am trying to measure PWM signal duty cycle. I strive to make all configurations in STM32CubeMX and also I am using STM32F407G-Disc1 discovery board. I have configured one timer to generate PWM signal and another to capture it. TIM2 below is used…
hrust
  • 734
  • 1
  • 11
  • 34
1
vote
1 answer

STM32 StdPeriph library USART example

I downloaded Stdperiph library and i want to make USART example run on STM32F4 - Discovery. I chose STM32F40_41xxx workplace, added stm32f324x7i.c file and compiled without any errors. Issue is that I cant receive expected message in my terminal…
V.CHR.
  • 31
  • 1
  • 6
1
vote
2 answers

STM32 Timer Interrupt unexpected behavior

I want to implement long-press button to turn a device on. I use external interrupt button to launch the timer on press, and stop and reset it on release of the button. If you hold the button enough (1 sec) it will call a Timer_Update event and…
Warpony
  • 31
  • 5
1
vote
1 answer

Formulae to calculate PWM output Timer (Counter settings) for STM32

Need formulae to calculate Prescaler,Counter Period and a Pulse value of each channel on a Timer with given values of Input clock frequency (APB) Output Frequency (PWM) Duty cycle (for each channel)
TonyP
  • 5,655
  • 13
  • 60
  • 94
1
vote
2 answers

How do I start up a minimal project with STM32CubeMX?

I'm attempting to learn embedded development, and I'm currently playing around with a STM32F407G board. So far, I've been able to toggle the LEDs based on the User button press using the high level driver APIs provided by the CubeMX. However, I…
gjvatsalya
  • 1,129
  • 13
  • 29
1
vote
1 answer

STM32 SPI Receive DMA is getting garbage data

In my project, I am using Master SPI communication to get analog data from external ADC. My MCU is STM32F746ZGTX. My system needs to work real time so I used SPI DMA Receive and Transmit functions. I am reading all external ADC data correctly with…
dredg
  • 11
  • 2
  • 9
1
vote
0 answers

STM32F415 Problems with I2C

I am using a STM32F415RGT6 embedded in the 1Bitsy Board. I want to set up the I2C Peripheral in order to read some data from a sensor. I am using the stm32f4 standard peripheral library. My example code: RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOB,…
1
vote
1 answer

STM32F4 Discovery - Writing / Reading Flash memory

This is my first post here, sorry if format or something is wrong. I succeed writing and reading flash memory of the STM32F4 Discovery following the advises of our colleges here and here (both posts explain the same…
1
vote
0 answers

Stuck on Instruction SVC0 __asm void prvStartFirstTask( void ){...}; in STM32F4

In my project, boot loader Flash address: 0x08000000 application Flash address: 0x08004000 Same RAM for boot and app: 0x20000000(IRAM1) and 0x10000000(IRAM2) Separately boot Loader and Application(With or Without FreeRTOS) working fine. Boot…
Malik Ji
  • 339
  • 3
  • 13