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
3
votes
1 answer
STM32 HID Keyboard
I am trying to use and STM32F0-disco as a keyboard for a Windows PC. I'm having a problem with the characters that are being printed.
The code below waits until the onboard button is pressed then should print the three characters once.
/* USER…

rosmdgl
- 31
- 1
3
votes
1 answer
How to change exception priority on cortex-m4 processor in Rust?
I want to set interrupt priorities for processor internal exceptions. The cortex_m crate provides easy access to NVIC control registers. Specifically, there is a method that let me set priority for each interrupt.
let mut p =…

Zhiyao
- 4,152
- 2
- 12
- 21
3
votes
1 answer
Loopback SPI in STM32F411RE
I am trying loopback in SPI in STM32F411RE, using the STM32 HAL Library. The output in the serial terminal is distorted (Just boxes) I have connected the MOSI, MISO pins of the micro-controller. Could someone help me point out the problem.…

Paulson Raja L
- 379
- 2
- 11
3
votes
1 answer
giving parameters into math function
If I call in C, math function `"trunc" in math library is define as:
extern double trunc _PARAMS((double));
and in my main file call it:
int i = (int)trunc(2.5);
It works fine, no problems. But if I try to pass double passively, like:
double d =…

user45189
- 169
- 1
- 9
3
votes
2 answers
MPU6050 - Gyroscope tilt angle measurement for self balancing robot?
I have calculated the tilt angle of accelerometer by following formula:
Angle_Accel = atan(Ax/sqrt(Ay*Ay+Az*Az))*(180/PI)
I want to calculate the tilt angle from gyroscope now and I am using Gx co-ordinate to integrate as follows but my result is…

Zero_Cool
- 53
- 1
- 10
3
votes
2 answers
Right formula for calculating temperature sensor using STMF401RE Nucleo?
I'm using STM32F401RE Nucleo board to measure the ambient temperature. After the sampling process, I receive a digital value from ADC_CHANNEL_TEMPERATURE and I want to convert this digital value into C°. I searched on the internet for this and I…

BL_
- 821
- 1
- 17
- 23
3
votes
2 answers
stm32F4 pwm input capture of high frequency signal approx. 2MHz?
I want to measure the frequency of a PWM signal. To do that, I'm using STM-F401RE and its Timer_Input_Capture function.
The problem is:
the input signal has a quite high frequency (approx. 2MHz) and,
the STM-F401RE controller has only a 80MHz…

BL_
- 821
- 1
- 17
- 23
3
votes
1 answer
STM32 - How to trigger interrupt after a certain PWM ON time?
I'm new to ARM MCUs (STM32F411), and I have been trying to find my way around the peripherals using STM's HAL library and STM32Cube.
I've already configured my board in order to use some peripherals:
Timer 2 for running an interrupt with a certain…

starscream
- 741
- 2
- 11
- 23
3
votes
1 answer
STM32cubeMX Firmware Package
I start generate code in STM32cubeMX, and i got this message "The Firmware Package(STM32Cube FW_F4 V1.11.0)or one of its dependencies requiredby the Project is not available in your STM32CubeMX Repository". Can enyone tell me how to throw in?

jabadabadoo
- 35
- 1
- 1
- 4
3
votes
1 answer
Understanding cycle counts on Cortex M4
I'm playing around with an STM32F407 with a Cortex M4 and I'm measuring cycle counts of a function by reading DWT_CYCCNT directly before and after calling a function (in C) that I implemented in assembly. I'd like to understand the results that I…

Bla Blaat
- 143
- 1
- 1
- 7
3
votes
2 answers
Disabling interrupt in interrupt handler STM32F407
I'm new here and I'm trying to solve my projects problem. I'm trying to send send data over UART from Raspberry Pi B+ to my STM32F407 and process that data in real-time. My problem is: How to actually synchronize main() thred and UART interruption…

P. Kudła
- 105
- 2
- 8
3
votes
2 answers
Determining port inside the GPIO EXTI Handler
How to determine the port from which the interrupt has been generated in the handler? For example, in the EXTI0_IRQHandler how will I determine whether the interrupt was generated through PA0, PB0 or PC0? Is it even possible to handle interrupts…

Nikhil Gupta
- 172
- 1
- 18
3
votes
1 answer
PLL clock configuration
I'm using STM32L152RB board and I'm trying to configure system clock to use PLL clock but the RCC_FLAG_PLLRDY flag is getting set so the program is stuck in while loop. please let what I'm doing…

Mustak U
- 115
- 2
- 11
3
votes
2 answers
STM32f4 SPI DMA receive
I have STM32F4407VGT6 controller on board STM32F4 Discovery. I try to read data from the AD7683 ADC using SPI + DMA, but the DMA receive buffer is always empty (all zeroes). In polled mode, everything works fine, but i must read one 16-bit sample…

Tomas Stejskal
- 31
- 1
- 1
- 3
3
votes
2 answers
STM32F4 Jump to Bootloader via SoftReset and without BOOT0 and BOOT1 Pin
i ask because of an answer to a similar quastion which can be found here: Jump to Bootloader in STM32 through appliction i.e using Boot 0 and Boot 1 Pins in Boot mode from User flash
The User "JF002" @JF002 answered "When I want to jump to the…

Markus
- 41
- 1
- 4