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
6
votes
1 answer
How to detect button press on stm32f4discover?
I like to detect a button press to switch through the 4 LEDs on the board, like
Click-1 --> LED 1 on
Click-2 --> LED 2 on
Click-3 --> LED 3 on
Click-4 --> LED 4 on
Click-5 --> LED 1 off
Click-6 --> LED 2 off
Click-7 --> LED 3 off
Click-8 --> LED 4…

David Gölzhäuser
- 3,525
- 8
- 50
- 98
6
votes
1 answer
Tasks behaving incorrectly in round-robin schedule
I have FreeRTOS running on a STM32F4DISCOVERY board, and I have this code:
xTaskCreate( vTask1, "Task 1", 200, NULL, 1, NULL );
xTaskCreate( vTask2, "Task 2", 200, NULL, 1, NULL );
vTaskStartScheduler();
where vTask1 is this function:
void vTask1(…

0x5C91
- 3,360
- 3
- 31
- 46
5
votes
1 answer
STM32F4 Handling peripheral error while making a DMA Transfer (RX)
I am trying to communicate with the UART peripheral using DMA for both RX and TX.
I am using the HAL library that is supplied by ST (Generated with STCubeMX).
I am handling a UART channel with 1.5MBaud - so in order to not loose any data, I've…

assaf
- 210
- 2
- 9
5
votes
3 answers
STM32F4 HAL DMA UART TX
I'm trying to get UART transmit working over DMA on an stm32f405. This part of my application is designed to send out text strings as a command line interface. I have the RX part of the UART working with DMA fine (using 1 byte circular DMA to handle…

HammerFet
- 841
- 3
- 10
- 16
5
votes
1 answer
SPI Slave setup on STM32F4 board
I am trying to communicate between two STM32F4 discovery boards via SPI in Master & Slave configuration. I already have the code for the master but I am a bit confused on the changes I need to make on the SPI initialisation for the slave.
I would…

user2253922
- 125
- 1
- 4
- 10
4
votes
1 answer
GNAT Programming Studio (IDE) and STM32 problems
I’m using the Ada programming IDE GNAT Programming Studio (GPS, GPL 2017 release) and I’m having a hard time when I try to use it with STM32F4Disco.
On Linux (Ubuntu 17.10), when I try to open a STM32 project, GPS freezes. No core-dump, no error…

smionean
- 51
- 6
4
votes
1 answer
How to port a project from one STMFx series to another in the same Series
I'm a little confused about the language/lingo/terminology of the ST line of MCUs in general, and I think this is stopping me from progressing.
A little background: I'm an EE who learned all I know about FW through compulsory college courses that…

testname123
- 1,061
- 3
- 20
- 43
4
votes
1 answer
Communication with SD Card with STM32 Processor - SDIO protocol
I am using the board Nucleo F401Re based on micro-controller STM32F401RET6. I connected to the board a Micro SD slot, and interested in writing data to the SD Card and read data from it. I used the software STM32CubeX to generate code and in…

Armand Chocron
- 149
- 1
- 4
- 14
4
votes
1 answer
RS232 (UART) on STM32F4-Discovery (STM32F429ZIT6) with HAL library?
Background
Here is some of my background so that your guy could know what related knowledge I have or I don't have. I'm totally a newbie of this kind of embedded system. And I don't really know anything about electronics, I'm a pure software guy.
My…

Brian Hsu
- 8,781
- 3
- 47
- 59
4
votes
1 answer
Twice handled (by rising/falling edge) interruption of the button
I have written some code that must turn on leds one by another (in a round) by each click of the button, but sometimes with one click of the button lights not the next led but one random from four leds. It's something like one or more leds skips its…

Alexander Hryk
- 585
- 2
- 4
- 16
4
votes
2 answers
UART receive interrupt stops triggering after several hours of successful receive
I am using STM32f4 discovery board connected with xbee to receive temperature data from remote temperature sensor. Code used is CMIS UART example code. I will receive packet data, 1 byte at a time. In other words UART receive interrupt will be…

user2819759
- 85
- 1
- 9
4
votes
2 answers
STM32F4 - can I use delays in interrupt routines?
I'm using an STM32F4 discovery board for a project and am wondering if I'm approaching the problem correctly. When I press a button, an external interrupt is triggered which runs a routine; without using a delay, this part works fine. As the routine…

Joe of Loath
- 169
- 1
- 4
- 10
4
votes
1 answer
STM32 DMA(concurrent stream, FIFO, burst mode,double buffer)
The DMA for stm32F4 series has some advanced functions, could I ask for clarification here?
Concurrent stream: Can two streams transmit data at the same time? Since one byte transfer is allowed. If the bus width is 32bit, 4 concurrent transmission…

richieqianle
- 602
- 2
- 7
- 20
4
votes
1 answer
STM32F4 microcontroller serial wire debug not working
I am using the STM32F4 discovery board - http://www.st.com/st-web-ui/static/active/en/resource/technical/document/data_brief/DM00037955.pdf
And I am trying to debug via "printf"-like statements using the Serial Wire Viewer in the ST Micro STLink…

JDS
- 16,388
- 47
- 161
- 224
4
votes
1 answer
Stm32f4discovery - OpenOCD - telnet uploading demo program
I have problem trying to upload demo program into fresh stm32f4discovery board, this is what i'm doing:
Connect board to computer
openocd -f board/stm32f4discovery.cfg
telnet localhost 4444
Open On-Chip Debugger
> reset init
target state:…

mucka
- 1,286
- 3
- 20
- 36