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
1
vote
2 answers
STM32f3 - Multiple ADC
I have and STM32f3 Discovery Board, and I'm trying to use 4 ADC channels. This is my read function:
int ADC_read(int channel)
{
ADC_RegularChannelConfig(ADC1, channel, 1, ADC_SampleTime_7Cycles5);
ADC_StartConversion(ADC1);
while…

Michelle
- 23
- 1
- 5
1
vote
2 answers
How to setup an interrupt driven SPI with stm32F4
I'am using STM32F4 board with CMSIS library and I want setup an interrupt driven SPI, it means an interrupt is triggered each time a byte is sent by the SPI peripheral. The initiaisation function is as below:
void init_SPI1(void)
{
…

fedi
- 368
- 3
- 7
- 18
1
vote
0 answers
Error when connect stm32f4 with ov7670
I'm using stm32f4 connect to ov7670 (without FIFO) to capture a image (176x144, RGB565). After capture image, stm will send data to PC via UART-COM. I have written a program using C# to read data from com port and display as image. But I have…

Programmer dude
- 167
- 1
- 5
- 23
1
vote
1 answer
How to make external switch control LED stm32f4 board?
I tried to control the LED on board using external switch on breadboard but it does not? The switch is connected to port d number 9, i tried to make it so that once i press a switch, the green LED comes on. But for some strange reason it does not…

suronix
- 13
- 2
1
vote
2 answers
Can´t erase data from flash memory (STM32)
I´m trying to save some data to flash memory on my STM32F407 board. Before I can save them I need to erase memory sector. I choosed 16 Kbytes Sector1 starting with address 0x08004000 and choosed Voltage range 2.1-2.7 V. I'm using HAL…

Jardo421
- 85
- 1
- 3
- 8
1
vote
3 answers
FATFS can't initialize the SD card
So I'm using an STM32F407 and trying to write to an SD card with FATFS. I have used the CubeMX to generate the code for both the FAT layer and 4bit SDIO configuration software. I have added the following code to main to test whether the code…

George Waller
- 95
- 3
- 4
- 13
1
vote
1 answer
How can I program ST MCUs from USB disk without PC?
I want to program (such as STM32F407 cortex M4 MCU) without PC, by using only MCU board, USB disk and USB cable. Binary(.HEX) file should be stored in USB disk. then bootloader which preloaded in MCU, should load binary file from usb to the program…

Celik
- 2,311
- 2
- 32
- 54
1
vote
3 answers
A bitwise operation that im confused with
Hi im working on stm32f4. I need to read 8 pin and sum the values after convert like binary to decimal. For example if the values of 8 bits are 000000110, my CardID must be 6. i used this, but there can be better way:
CardID = (GPIOD->IDR &…

abdullah cinar
- 543
- 1
- 6
- 20
1
vote
3 answers
stm32 HAL library eclipse
I´m using Eclipse IDE with ARM plugin to develop a project on my F4-Discovery. I created an empty template project and started to use functions from stm32 HAL libraries and I got error like:
undefined reference to `HAL_DMA_Init'
undefined reference…

Jardo421
- 85
- 1
- 3
- 8
1
vote
0 answers
import GitHub makefile project into eclipse
I tried to compile a project of stm32f4 from GitHub on eclipse, this is its link:
https://github.com/piratfm/codec2_m4f
Follow some instructions on internet, I did: Import->c/c++-> Existing code as makefile project->Choose path of project folder and…

abcd
- 11
- 5
1
vote
2 answers
Why does SPI not work with my STM32f4DISCOVERY?
I've been stuck with this one for a while. I've followed a few examples online, but with no success. I cannot get it working with my STM32F4Discovery. I have an external chip (SX1272 from Semtech to be more specific) with whom I try to have an SPI…

K Manos
- 507
- 1
- 3
- 12
1
vote
3 answers
What is the meaning of (unsigned char *)&variable_name?
what is the meaning of (unsigned char*)&ch in the following function call ?
HAL_UART_Transmit(&UartHandle, (unsigned char *)&ch, 1, 0xFFFF);
HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, unsigned char *pData, int Size,…

user2819759
- 85
- 1
- 9
1
vote
2 answers
GDB and OpenOCD - reset or resume after end of debugging
I am using Eclipse + GDB Hardware Debugging + OpenOCD + STM32F4DISCOVERY (over ST-LINK)
All work OK.
After completion of the debugging, target CPU is still in the Halt mode.
How to make so that after the debug (Terminate pressed) target CPU reset or…

Aleksandr
- 11
- 1
- 3
1
vote
0 answers
I2C on stm32f407 doesn't work
I wrote a program to use I2C with stm32f407vgt on my board but it doesn't work. I checked the clock(scl) and it was OK , then i tested the same program on stm32f429 discovery board without changing any settings and it worked. any idea about what…

hamid
- 49
- 1
- 5
1
vote
1 answer
STM32F407 PWM control phase shift, dutycycle
I'm new with the stm32f407 discovery board and I'm trying to make 4 signals which I can control phase shift and dutycycle. The thing is, when i set my timer on PWM mode I can't control phase shift between channel_1 and channel_2. I know I have to…

co2ark5
- 45
- 1
- 3
- 12