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
12 views

Nucleo F446RE - No SPI response while transmit is working as intended

I'm trying to read some registers of an Atmel AT86RF233 transceiver via SPI with a Nucleo F446RE development board. As stated on the title, whenever I send anything through MOSI, the transceiver doesn'...
0
votes
0answers
37 views

STM32F4 ADC oscillating

I am trying to read the ADC of a STM32F4. The code skeleton was generated by CubeMX, the HAL library is used. The read values are feasible but have periodic noise, as seen here: The plot was ...
0
votes
1answer
44 views

NOR Flash Memory Full chip vs Block vs Sector Erase

I am trying to use a NOR flash memory device: SST25VF016B (with STM32 discoveryboard F407VG). However, I am confused on some terms on their datasheet. You can find the datasheet here: https://www.elfa....
0
votes
1answer
89 views

STM32 UART character encoding issues (can't decode using either ASCII or UTF-8)

first some specifics: STM32F411 Nucleo board, Atollic TrueSTUDIO v9.1.0, Debian linux 9.6. I am sending a telemetry string over the UART using the HAL. I am using the following code to construct ...
0
votes
2answers
72 views

How to connect custom stm32 board to debugger

I have a custom STM32 microcontroller board. I have verified all of the electrical connections, and I am able to program the board with Texane's st-flash utility. However, I would like to debug the ...
0
votes
1answer
79 views

SPI communication between STM32F4 and Rasberry Pi produces garbage

I trying to make an SPI communication between a RPi (as MASTER) and an STM32F410 (as SLAVE, on a Nucleo board). My PoC is simple, I send 8 bytes from the Rpi and print them out with the UART-over-USB ...
0
votes
1answer
31 views

Program a Wi-Fi Module using a STM32F4

I am desgning a sensor which reads data from 6 transducers and is desired to send them over Wi-Fi to a host pc. Because of space limitations, I have to design my own pcb with microprocessor instead of ...
2
votes
1answer
100 views

NVIC Pending register vs EXTI Pending register (STM32F4)

Why there are two pending registers for interrupt? One of them is EXTI_PR and other one is Interrupt Set-pending Registers(ISPR) which is in NVIC controller registers. EXTI unit pending register: ...
0
votes
1answer
67 views

STM32F4 struct unnamed has no field brr

I'm a newbie to STM32 coding and struggling with the following: I used to code a little bit with STM32F103C8T6, using cubeMx and HAL libraries. I made a code using the following code to set the pin ...
0
votes
1answer
172 views

STM32F4 - RCC reset register

I can't understand what's the job of RCC_xxPeriphResetCmd() function in the stm32f4xx-rcc driver? in fact the thing that i can't realize is what happens to a ...
0
votes
1answer
72 views

STM32F4-Discovery board RTC

RTC Crystal place is exposed on the STM32F4-Discovery board. So which kind of 32.768 KHz SMD Crystals is proper for that place? Could you give a part number or a link to buy?
0
votes
0answers
24 views

How do I configure system clock while using MBED IDE?

Just starting to use STM32 boards with web-based MBED IDE. This IDE don't have anything like Project configuration menu like other IDEs do. So I can not understand how do I configure system clock. ...
0
votes
0answers
53 views

Is it possible to implement a 96KHz USB audio interface with STM32F401?

I have an STM32F401 Nucleo and an X-Nucleo boards, and I'm trying to implement a 96KHz USB audio interface so I can capture "audio" in the ultrasound range for my application (using ICS-41350 MEMS PDM ...
0
votes
1answer
33 views

Problem with using USB HOST HS example

I am working with USB HS Host in MSC class with STM32F407 MCU. I want to write to the memory cells of a flash drive using usb. (It doesn't matter for me to write with a standard like FatFs, I just ...
0
votes
1answer
103 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
54 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
27 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
73 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
2answers
133 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
96 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
107 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
199 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 ...
2
votes
1answer
140 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
79 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
48 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
231 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
73 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
73 views

STM32F4 executable stack?

Is the stack executable on the STM32F4 MCU? I want to do this: ...
0
votes
1answer
705 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
89 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
69 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
76 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
289 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
48 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
94 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
370 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
276 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
246 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
250 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
148 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
244 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
130 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
234 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
251 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
169 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
139 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
84 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
125 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
127 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 ...