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
28
votes
4 answers
What are weak functions and what are their uses? I am using a stm32f429 micro controller
Wikipedia says:
A weak symbol denotes a specially annotated symbol during linking of
Executable and Linkable Format (ELF) object files. By default, without
any annotation, a symbol in an object file is strong. During linking,
a strong symbol…

Munir Ahmad
- 391
- 1
- 3
- 5
20
votes
6 answers
STM32F4 UART HAL Driver
I'm trying to figure out how to use this new HAL driver. I want to receive data using the HAL_UART_Receive_IT() which sets up the device to run an interrupt function when data is received.
Problem is that you have to specify the length of data to…

HammerFet
- 841
- 3
- 10
- 16
18
votes
7 answers
How to use Backup SRAM as EEPROM in STM32F4
There are two ways of emulating EEPROM on the STM32F4:
On-chip 4 Kbytes backup SRAM
On-chip Flash, with specific software algorithm
The second option is described here: AN3969.
But google, unfortunately, hasn't been able to provide information…

Jolle
- 1,336
- 5
- 24
- 36
14
votes
1 answer
Allocating memory in Flash for user data (STM32F4 HAL)
I'm trying to use the internal flash of an STM32F405 to store a bunch of user settable bytes that remain after rebooting.
I'm using:
uint8_t userConfig[64] __attribute__((at(0x0800C000)));
to allocate memory for the data I want to store.
When the…

HammerFet
- 841
- 3
- 10
- 16
12
votes
5 answers
Converting from *.hex to *.bin for ARM on Linux
I want to upload program to my STM32F4 Discovery board using st-flash command.
Problem is when I try to upload *.hex or *.elf file it is just not working.
I tried many ways ( like using xxd ) of converting from *.elf or *.hex to *.bin but it is…

Jacajack
- 759
- 2
- 11
- 23
11
votes
3 answers
How can I change the start address on flash?
I'm using STM32F746ZG and FreeRTOS.
The start address of flash is 0x08000000. But I want to change it to 0x08040000. I've searched this issue through google but I didn't find the solution.
I changed the linker script like the…

Hans
- 398
- 2
- 4
- 14
11
votes
3 answers
STM32CubeMX USB CDC VCP?
I've found large number of examples, but nothing on how to do it "properly" from STM32MXCube.
How do I create skeleton code from STM32CubeMX for USB CDC virtual COM port communications (if possible STM32F4 Discovery)?

user505160
- 1,176
- 8
- 25
- 44
10
votes
3 answers
STM32F4 stereo MEMS mic
I've been working on audio project with STM32F4 discovery and I noticed one thing, all I2S standards only work with one microphone (depending which edge the standard uses separate bits). For exmpl. with Philips, MSB or LSB standards which are using…

MattJ
- 683
- 2
- 10
- 35
8
votes
4 answers
How can I use hardware NSS (SPI) on STM32F4?
I tried to use the hardware NSS signal with the HAL library, but I can't find any function to make the NSS pin have a low or high level. I also tried to find the answer in the HAL documentation, but there isn't any information there either. All…

mkom
- 103
- 1
- 1
- 8
7
votes
4 answers
How to change the UART baud rate after running on STM32 board?
I'm using STM32F746ZG and use five UARTs. All UARTs are working fine.
Can someone tell me the procedure to change the baud rate on the USART once it has already been initialized? I'm using USART6 and initialized with 9600 baud rate. After booting,…

Hans
- 398
- 2
- 4
- 14
7
votes
1 answer
Delay in HAL Library (HAL_Delay())
I'm trying to blink LEDs on my STM32F4 Discovery. Somehow it's stuck on the delay function. I have changed the SysTick interrupt priority to 0 and added the IncTick(), GetTick() functions. What am I missing?
#include "stm32f4xx.h" // Device…

Reactionic
- 182
- 1
- 2
- 12
7
votes
1 answer
Error -3 opening ST-Link/V2 device
I'm trying to compile and upload an STM32F4 Discovery project through Eclipse under Linux Mint 16. The project compiles correctly, but during the upload I get the error:
WARN src/stlink-usb.c: Error -3 opening ST-Link/V2 device 003:007
I'm using…

ascallonisi
- 871
- 1
- 11
- 20
7
votes
3 answers
How can I configure Eclipse, GCC, and OpenOCD to work with the STM32F4Discovery board?
I am in possession of an STM32F4Discovery board, which contains both an STM32F4 microcontroller, and an ST-LINKv2 debugger interface. I would like to do some simple C programming on this setup, and would like to use freely available tools to do…

Mark
- 11,257
- 11
- 61
- 97
6
votes
1 answer
How to write to STM32 Flash
I want to write to flash Sector 11 of STM32F407VGT from my user code to store some data. I have used the stm32f4xx_hal_flash.c library. I first erase the sector using this code:
void Flash_Init(void)
{
FLASH_EraseInitTypeDef…

b7031719
- 120
- 1
- 2
- 8
6
votes
1 answer
STM32F407 memory layout
I am trying to use Percepio trace lib for FreeRTOS in Snapshot recorder mode.
After compilation and running it on my discovery board I need to somehow dump entire RAM to file.
I've started ST-LINK utility but I am puzzled on how to dump entire…

user505160
- 1,176
- 8
- 25
- 44