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
0
votes
1 answer
STM32F4 SPI Configuration SPI_Init causes assert_failed loop
I'm trying to configure SPI to work with a ST7565 GLCD library which is given here. For now, I'm trying to use SPI1 to achieve this. When the init function -which is given below- is called in main(), it causes the program to loop in assert_failed…

mozcelikors
- 2,582
- 8
- 43
- 77
0
votes
2 answers
STM32F4 accelerometer
I need to read some data from accelerometer LIS3DSH in STM32F4 Discovery. I have this main code:
uint8_t writeData(uint8_t data) {
while(SPI_I2S_GetFlagStatus(SPI1, SPI_I2S_FLAG_BSY) == SET)
;
SPI_I2S_SendData(SPI1, data);
…

Viodentia
- 37
- 2
- 8
0
votes
4 answers
STM32 Embedded GUI Library porting for F4 Discovery
I'm trying to use the STM32 Embedded GUI Library with STM32F4 Discovery Board.
Has anyone already done a porting of this library on the discovery?
Otherwise, how can I try to port it and what is the "weight" in terms of work of such a porting? (I'm…

Daniel
- 141
- 3
- 14
0
votes
1 answer
Understanding the CAN filters
I am unable to understand the CAN filter configuration for the stm32f4-discovery.
CAN_FilterInitStructure.CAN_FilterNumber = 0;
CAN_FilterInitStructure.CAN_FilterMode = CAN_FilterMode_IdMask;
CAN_FilterInitStructure.CAN_FilterScale =…

ashfaqFarooqui
- 71
- 2
- 9
0
votes
1 answer
STM32F4 float to int conversion
On STM32F4 MCU I need to convert floating point numbers into integer.
I have FP numbers as result from arm_pid_f32() function but later I need to update internal DAC's values which accept 12bit integer.
I know that i will lose some "precision" but…

mikikg
- 1,488
- 1
- 11
- 23
0
votes
2 answers
undefined reference to function in c++
I did search and none of the answers really explained what I am seeing.
I had a file that was compiling correctly, and added a new include:
#include "libopencm3/stm32/usart.h"
Compile again and fine. Now, I add a function:
void…

Troy Cosentino
- 4,658
- 9
- 37
- 59
0
votes
1 answer
Lwip send udp packets larger than MTU, but my pc can not reassemble them
I use lwip-1.4.1 and stm32f407.
my lwip can send udp packets to pc, but my pc would fail to reassemble when the udp packets are larger than MTU.
I use wireshark to check these packet context, but the fragmented udp packets from my lwip look as good…

zack1030
- 7
- 2
0
votes
1 answer
eCos with stm32f4discovery Cortex-M4 in Ubuntu 12.04
I wrote a simple program for eCos in stm32f4discovery Cortex-M4, which following steps below.
$ecosconfig new stm32f4discovery
$configtool
#include
int main(){
printf("hello ecos!\r\n");
return 0;
}
$arm-none-eabi-gcc -o hello.elf…

Gapry
- 253
- 1
- 7
- 20
0
votes
3 answers
Debugging stm32f4 via bluetooth
I'm rather unexperienced on the field of microcontrollers, I come from a Java background so the question might seem a bit noob but I didn't find much information on this.
So is it possible to debug an STM32F4 board via bluetooth (using eclipse or…

Peter
- 1,047
- 2
- 18
- 32
0
votes
2 answers
If clause for bit cheking replaced with bit manipulation using C
I have following chunk of code:
// **** CONTROL REGISTER 4 SETUP ****
ctrl|=(uint8_t)(LIS3DSH_InitStruct->CR4_Odr);
if(LIS3DSH_InitStruct->CR4_Bdu)
ctrl|=(1<CR4_Zen)
…

KernelPanic
- 2,328
- 7
- 47
- 90
0
votes
1 answer
using SDL with STM32F4 on Eclipse (C#)
here's my problem:
I'm doing a NES emulator for STM32F4DISCOVERY, and I almost done but I depende on an extern file (SDL) and I looked for one and found the official page, I downloaded the 2.0 version but my program cant resolve "SDL_HWSURFACE" and…

user2905266
- 1
- 2
0
votes
1 answer
Userbutton on STM32f4
I am trying to turn on the LEDs when the user button is pressed
I think I have enabled the peripheral clocks right and the right register. The button is on porta bit 0
Here is my code...any help would be great. Sorry if it is a bit simple, I am…

Andeeh
- 99
- 1
- 4
- 12
0
votes
4 answers
stm32f4 uart baud-rate setting?
Now I have a stm32f4-discovery. I make a max232 for uart to connect stm32f4. And I use usb-rs232 to connect max232. I hope I can communicate stm32f4 and PC through uart. And I open putty in Linux. But I have a big problem about setting uart…

aaa SA
- 321
- 1
- 8
- 16
0
votes
1 answer
Reserving flash location for EEPROM emulation STM32F4
I want to emulate EEPROM in sectors 2 and 3 to keep erase time low (small 16kb sectors).
My question is how to go about reserving this flash space to prevent compiler from placing program code in these sectors?
Can anyone point me to info on this I…

Bruce Duncan
- 169
- 6
- 15
0
votes
1 answer
Hard Fault at memcpy when switching project from TrueSTUDIO to CrossWorks
I've had the misfortune of being required to use CrossWorks for developing for an STM32F4 development board, and I'm running into an issue that only crops up when using CrossWorks to build and run the project.
I'm using LwIP to create a UDP server,…

boztalay
- 562
- 6
- 17