Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [stm32f4]

Anything related to the STM32F4 series of microcontrollers. STM32F4 is a series of high-performance MCUs with DSP (Digital Signal Processor) and FPU (Floating Point Unit) instructions.

0
votes
0answers
34 views

Debugging a Invstate hard fault on STM32F4 microprocessor

I'm having a hard time tracking a source of the hard fault occuring in my program written in C++ for the STM32F405 microcontroller. I only use three sources of interrupts in this project - two timer ...
0
votes
1answer
48 views

STM32 F4 max GPIO toggle frequency [duplicate]

I just started using the STM32 F401VC Discovery Evaluation board and I'm trying to get the maximum GPIO toggling frequency without assambler. So my tought process is following: The code I was ...
0
votes
1answer
47 views

Output impedance for microcontroller minimum 5kOhm

So I'm looking into the stm32f469 series of chips (datasheet here), and see if I can play good audio with one with the build in DAC. To my knowledge, the built-in ones on chips usually aren't that ...
2
votes
0answers
19 views

STM32F429 PWM GLITCH

I have set up Timer 1 Channel 1 for pwm mode 1. I used the STM32CUBE to generate code for MDK-ARM. Parameters as below- ...
0
votes
1answer
48 views

Stm32F4 Discovery Board ADC

I am trying to do a partial integration on a 550 KHz waveform using STM32F4 Discovery board using the Waijung toolset in Simulink. The sampling time that I am using is 0.018 us, i.e 3 cycles, if the ...
1
vote
1answer
120 views

VL6180X ALS values soo small

I have bought VL6180X proximity sensor on breakout (Aliexpress) originally designed for use with arduino. I have tried it use with Raspberry Pi and STM32 (on STM32F429 discovery board). Sensor is in ...
0
votes
0answers
57 views

STM32F429i LTDC + SDRAM Buffer Issue

I have been trying to learn the basics of STM32 LTDC peripheral to drive a 4.3" 480 x 272 LCD using STM32F429IG mcu. I am using the Open429i dev kit by Wavehshare (https://www.waveshare.com/core429i....
2
votes
1answer
103 views

Why can't I route the same signal to multiple pins on an STM32F407?

I have a periodic signal which I want to use as a trigger to two timers - TIM8 and TIM2. When the signal goes high, TIM8 should start running and TIM2 will be clocked once. TIM2 will be configured in ...
0
votes
2answers
84 views

How to increase write speed with USB High speed host mode with STM32F4? [closed]

I want to write into a text file in a Flash drive using STM32F407 (XCore407I Core Board) and via USB HS mode. I have used fatfs library and also Tilen Majerle Libraries for USB HS HOST mode. I ...
1
vote
0answers
64 views

STM32F4 - DMA Transfer Error with ADC

Code here is configuring DMA2 for transferring 160 samples each from two analog channels from ADC1 to memory. The ADC,DMA,NVIC etc. seem properly configured but for some reason I am getting transfer ...
0
votes
2answers
51 views

Inverting REFCLOCK of Ethernet PHY

A few years ago I had to design a board that uses the NXP LPC1769 MCU and had Ethernet connectivity. I was in need of a PHY chip and the LAN8720 was choosen. During design however, I noticed that NXP ...
0
votes
0answers
40 views

No response from ESP8266-01 during communication with STM32F429 discovery

I am currently working on project that requires usage of UART to communicate between STM32F429 Discovery Kit and ESP 8266-01. I am programming in Keil uVison 5 and CubeMx using standard HAL-library ...
0
votes
1answer
104 views

stm32f401 I2C does not send byte after repeated start

I am programming an I2C master on a STM32F401 nucleo board. I program it without HAL, just using registers. I am interfacing a peripheral, that has to be read like the following: Start Write ...
0
votes
0answers
65 views

STM32F4 - DMA, Arbiter, interrupt, stream priority

Does the DMA arbiter interrupt one stream (during transfer) to give access to another stream with higher priority? Or just the arbiter give access before transfer begin so when one stream started ...
0
votes
3answers
68 views

STM32F4 executable stack?

Is the stack executable on the STM32F4 MCU? I want to do this: ...
0
votes
1answer
326 views

STM32F4: How to get data from multiple channels sampled from a single ADC?

So I have searched everywhere for a solution to this problem but I can find anything. I have three channels connected to ADC1 of my STM32F446ZE-nucleo and I want to ...
0
votes
0answers
53 views

Driving HX8357 LCD by software SPI

I bought this LCD: https://aliexpress.com/item/IPS-3-2-inch-HD-TFT-LCD-RGB-Screen-with-Adapter-Board-480-320-8080-Interface/32725982043.html Unfortunately, there is no schematic or any information ...
1
vote
0answers
55 views

HardFault_Handler on STM32F407ZET6

I am currently facing some problems with STM32F4, the process "hangs" and I am not able to understand at what point it "locked". When this happened, I collected the following values for the following ...
0
votes
0answers
53 views

STMF4xx MPU6050

I have problem with reading data from MPU6050 to STM32F4 nucleo board. The connection is with I2C. The problem is that in the first function IsDeviceReady the device is recognised and the LED does ...
0
votes
0answers
210 views

How to configure LCD TFT on STM32F469i-Disco with CubeMX?

I'm hopelessly trying to configure LCD TFT on the STM32F469I-Disco eval board. So far my best result is the following: What I've done so far: I used CubeMX to configure the board - I answered "yes" ...
-1
votes
1answer
45 views

Driving a boot selection pin with a GPIO pin

I am trying to make a very small change to a circuit to allow for boot mode selection using two boot pins. The component I am trying to control is the STM32F411. One of the pins can be floating in ...
0
votes
0answers
61 views

Instability in STM32F4 USB connection

I use a STM32F407ZET6 microcontroller. I make the connection and data transmission from the microcontroller to the computer through a USB network. I am currently facing some disconnection issues. ...
1
vote
2answers
246 views

STM32F4 custom board, low voltage on reset pin

I designed the following the STM32F407vgt6 custom board for a project. I recently soldered the parts, and powered the board up. I tried programming the board via an STM32F429 Discovery board through ...
1
vote
1answer
186 views

Can't receive CAN frame on STM32 because of unexpected collision

I’m trying to receive CAN frames on a STM32F412G-DISCOVERY with a SN65HVD233 transceiver, transmitted from a USB2CAN device. Both are connected on a bus of about 15 cm long with two 120 Ω resistors on ...
2
votes
1answer
168 views

PC14 and PC15 on STM32F401 not working as inputs

I'm trying to use PC14 and PC15 on Nucleo F401RE board, as inputs using this simple code: ...
0
votes
1answer
167 views

LTDC STMF32 Double buffering problem

I'm trying to do double buffering using the hardware, STMF32492I.. so first I'm initalizing two layers in two different addresses. Then I write to the back buffer, switch the back buffer.. But The ...
0
votes
0answers
107 views

STM32F4 SPI interface MFRC522 Overrun problem

I have a problem regarding SPI communication between MF RC522 RFID reader and STM32F4 Discovery board. I'm hoping some of you have much more experience regarding this topic. So, basically I want to ...
0
votes
4answers
155 views

Speed calculation using Accelerometer

I am using ST manufacture Accelerometer(LIS2DE12) and i making a small hobbyist project for me. For this I am using ST-Microcontroller and developing the C code i am using KEIL V5 IDE. Configured the ...
0
votes
1answer
91 views

How to reconstruct input signal by using DAC?

I am working on a project in which - I have to continuously monitor the the ADC input on a microcontroller(STM32F407) and check if the value crosses a certain threshold. If the value crosses the ...
1
vote
1answer
218 views

STM32F4 USART not correctly configured

I'm trying to manually* configure a USART on a Nucleo F401RE to transmit over the USB virtual COM port, which means using USART2 on PA2 (TX) and PA3 (RX). Not only am I not receiving any characters, ...
0
votes
2answers
161 views

Programming a STM32F407 with a Raspberry PI: No answer on JTDO

Introduction Getting in touch for the first time with an ARM MCU (the STM32F407ZE), I am trying to generate a first working "Hello world!" blinking led. For programming the MCU, it seem possible ...
0
votes
2answers
118 views

LED connected to open drain pin [duplicate]

I configured a pin on my micro-controller(STM32F4-discovery) as an open drain and I wanted to connect it to a 5V pull-up network and drive an LED. The output of my pin is 3V so hence I wanted to pull ...
0
votes
0answers
93 views

Why doesn't my STM32F4 PLL seem to work?

I've spent a few days unsuccessfully trying to get my Nucleo F401RE to use the PLL for its system clock. I've configured it to use the 8MHz HSE and output 84MHz as the system clock. The code stops ...
0
votes
1answer
75 views

STM32F407 Flash sector auto cleared after programming

I've tried to do flash logger function for my device based on STM32f407 and found some problem with flash: If I uncomment function for clear sector, after load program my dummy data on first page is ...
7
votes
6answers
2k views

Noisy signals with 2-layer PCB - What's wrong with my design?

For my master's thesis in computer science, I need to read out a TCD1304AP linear CCD sensor. A STM32 microcontroller with the circuit laid out on a breadboard gets the job done, but in order to make ...
0
votes
1answer
95 views

STM32F discovery doesn't execute code after programming successfully

I have a stm32f051R8T6 Discovery board, and I compiled a simple blinking LED code to activate the LED's on the board itself. The code builds successfully and flashes the MCU but the MCU won't execute ...
2
votes
1answer
116 views

Why am I not able to compile this assembly code?

When assembling the code, I get the error : fpu.s(13): error: A1240E: Immediate value cannot be used with this operation ...
1
vote
1answer
60 views

Adafruit Ultimate GPS sendCommand

EDIT: Solved, Problem was with not sending "\r\n" at the end of the sentence. I'm trying to control Adafruit Ultimate GPS through STM32F407, there is an official Arduino Library and this library has ...
0
votes
1answer
37 views

stm32f429 flash load address error

I've recently run into this error where openocd wont flash the binary to my discovery board. I'm using the same linker script that i've been using all along. arm-none-eabi-objdump gives the ...
0
votes
0answers
71 views

Read from data from Lis3dsh via I2C using Stm32f4

I'm working with the board STM32F4DISCOVERY from ST microcontrollers. I'm trying to read acceleration on the 3 axes from the accelerometer LIS3DSH via I2C communication.According to the Datasheet of ...
0
votes
0answers
56 views

STM32F4 timer not counting with external clock

I'm probably missing something obvious, but I just can't see it. The issue: I'm trying to get a counter on the STM32F407VG on the STM32F4 discovery board to count using a clock from an external pin, ...
-3
votes
1answer
375 views

How to measure DC current with a microcontroller?

I have a project where I need to measure DC currents in the range of 0-150 A. I am using an STM32F446RE MCU. I can't use the solution where I convert current to voltage using resistors and reading ...
0
votes
1answer
316 views

STM32F4 HSE clock frequency without HSE

I am using an STM32F446ZE Nucleo Board which does NOT have an external HSE clock. From CubeMX I set the clock input from the HSE and after in the clock configuration I set the system clock to 180MHz. ...
0
votes
0answers
179 views

stm32f4 USB Host HID to interface touchpad..?

In developing a USB Host HID application where using the controller STM32F4, and the USB stack library available on the ST website, we are trying to send data/command to an USB HID device. But in the ...
0
votes
0answers
327 views

How to use JTAG to connect external ST-LINK/V2 with STM32F407VG discovery board? [duplicate]

I want to isolate the on-board stlink, and use an external ST-Link/v2 to program/flash the board. I have a 20-pin JTAG connector. This is just a temporary, proof-of-concept project. I have removed ...
0
votes
1answer
427 views

How to count the number of the generated PWM pulse on stm32?

I have a stepper motor on TIM2 CH1. When a button is pressed the motor runs. How to count the steps(pulse) the PWM generated while the button was pressed?
0
votes
0answers
28 views

SIM900 GPRS SHIELD and STM32F429 Open waveshare

im trying to connect my openwavshare (stm32F429 µC) borad with GSM/GPRS arduino shield, but when i send the "AT\r\n" i get "A" in my receiv buffer. Buffer reception is not completly filled. I use ...
-4
votes
1answer
86 views

Buzzer does not give a sound when GPIO pin is high [closed]

I'm new here and have some issues about my stm32f429 project. I would like to drive a buzzer when flame sensor detect a flame and it does not work fine. So can anyone help me to resolve this problem ? ...
4
votes
1answer
142 views

STM32F415 weird I2C behaviour

I am using a STM32F415RGT6 embedded in the 1Bitsy Board. I want to set up the I2C Peripheral in order to read some data from a sensor. I am using the stm32f4 standard peripheral library. My example ...
2
votes
1answer
427 views

STM32F446 I2C peripheral won't assert repeated start condition

I am writing some register level firmware for my STM32F446 to use the I2C peripheral to talk to an accelerometer. The sequence of events i need to do is as follows ...