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.
Questions tagged [stm32f4discovery]
542 questions
2
votes
0 answers
Interrupt priority issue between a timer and spi on STM32F4
My goal is to have a timer that triggers an interrupt at 1kHz and for that to call a few lines of code that starts a HAL_SPI_TransmitReceive_DMA call (or possibly more than one on different SPI buses). Once the SPI calls are made, it enters a while…

Ben Freudberg
- 21
- 1
- 3
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
4 answers
STM32F4 USART1 doesn't work correctly and return garbage data
I am trying to work with STM32F407 USART1 peripheral but it doesn't work correctly. I have read the datasheet for many times but i couldn't find any solution.
I use FTDI232 for the communication. My connections are correct, i use this connection on…

Hasan Eren Keskin
- 75
- 2
- 5
2
votes
1 answer
ARM Cortex M4 SVC_Handler "UsageFault"
I'm creating a context switch program for a personal mini ARM kernel project and the context switch program is written entirely in Assembly. The problem is when I make a SVC call (svc 0) I enter the SVC_Handler but when I try to execute the next…

smolaie
- 61
- 1
- 6
2
votes
2 answers
stm32f427 interrupt clear pending bit
I am new to stm32f427 board and I am digging a bit deeper.
I think that on the internet, especially StackOverflow, people sort of agreed on this, just an example:
void EXTI9_5_IRQHandler(void) {
/* Make sure that interrupt flag is set */
if…

user3431800
- 191
- 2
- 17
2
votes
2 answers
STM32F Discovery - Undefined reference to arm_sin_f32
I'm new to programming the STM32F Discovery board. I followed the instructions here and managed to get the blinky led light working.
But now I'm trying to play an audio tone for which I have borrowed code from here. In my Makefile I have included…

arunkumar
- 32,803
- 4
- 32
- 47
2
votes
2 answers
GDB + CLion + STM32f4 + OpenOCD -> gdb error, truncated register 16 in remote 'g' packet
On my Windows10, having stm32f407vg discovery boards I'm doing example: f4-blog-master
Then I got this error:
D:\Software\OpenOCD-20170821\bin\openocd.exe -c "tcl_port disabled" -s D:\Software\OpenOCD-20170821\share\openocd\scripts -f…

yourstruly
- 972
- 1
- 9
- 17
2
votes
0 answers
What is required for windows to recognize a custom HID device?
Currently, I'm working with an STM32F746G-DISCO dev kit, and I'm trying to build a generic HID device. (not keyboard, not controller, not mouse, etc.) Using the mbed libraries, the setup was pretty simple and painless. I was able to import their…

Michael Smith
- 474
- 4
- 11
2
votes
2 answers
gnu linker script - stm32f4xx - global variables
i would like to make the memory map (start and end addresses of section) available in my firmware: example: i would like to know where the origin of the user_data section starts (0x8800000) and how long it is (512K). I saw it in an example once, it…
user7747610
2
votes
1 answer
STM32 HAL SPI 16 bit Transmit
I am trying to use HAL_SPI_Transmit(.) for 16 bit data transmission.
I have configured the SPI using STM32Cube as 16 bit data size
(with hspi2.Init.DataSize = SPI_DATASIZE_16BIT).
I tried to send data in 16 bit with:
uint16_t…

Alithewise
- 25
- 1
- 1
- 7
2
votes
2 answers
stm32f469 FreeRTOS+STemWin with CubeMX and keil: Bad operand types (UnDefOT, Constant) for operator (*
I'm making project generated with STM32CubeMX for stm32f469i-disco.
I have based setup on "FreeRTOSconfig.h" from "Demonstration" project in STM32CubeFWF4V1.16.0 repo. Fresh project from CubeMX compiles without problems, but after adding STemWin…

pondito
- 21
- 3
2
votes
0 answers
STM32F4 Discovery Board as I2C Master - Can not get anything going through the SCL and SDA Lines
I am trying to use the STM32F4 discovery board as a master to communicate to a sensor using I2C. I am using the std periph library to do this but for some reason I am unable to get anything going through the SCL and SDA lines. From reading through…

Sumeet K
- 21
- 1
- 2
2
votes
3 answers
How to setup fast STM32 F4 FSMC to control a display on the STM32F4Discovery board?
I'm connecting an ILI9341 display controller to an STM32F407vg microcontroller (STM32 Discovery board). The display is connected to the STM32 with a 16-bit parallel databus.
To achieve high datarates I use the FSMC of the STM32. The FSMC is…

i.amniels
- 1,781
- 1
- 25
- 37
2
votes
0 answers
Hangs in vsprintf()
I'm programming on stm32f407 and using vsprintf to access all the the arguments assigned to argv such as:
va_list argv;
va_start(argv, __format);
vsprintf(buffer, __format, argv);
va_end(argv);
But the program hangs in vsprintf.
I modified…

Tien Luong
- 21
- 2
2
votes
1 answer
stm32f4 DMA does not always start after suspending
So this question is kind of a "sequel" of this one: Stm32f4: DMA + ADC Transfer pausing.
Again, I am trying to implement such an algorithm:
Initialize DMA with ADC in tripple interleaved mode on one channel
Wait for an external interrupt
Suspend…

sx107
- 309
- 3
- 11