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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

-1
votes
0answers
78 views

why we can't connect to stm32f407 [closed]

we tried connect to the stm32f407zet6 by jlink and stlink. actually it's a part of system. we try write a LED blinking program. but we have problems for ethernet too. sometimes it worked and ...
0
votes
2answers
35 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
25 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
36 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
58 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
65 views

STM32F4 executable stack?

Is the stack executable on the STM32F4 MCU? I want to do this: ...
0
votes
1answer
57 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
33 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
43 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
35 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
90 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
43 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
47 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
148 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
87 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
109 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
87 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
55 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
103 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
78 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
211 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
97 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
81 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
53 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
56 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
76 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
101 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 ...
0
votes
0answers
42 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
32 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
46 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
38 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
238 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
209 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
155 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
161 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
277 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
27 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
71 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
134 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
298 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 ...
0
votes
1answer
54 views

CAN ports on STM32F407G board

The project I'm starting with requires multiple development-boards connected with CAN buses. Is it possible to put two CAN ports on an STM32F407G board?
0
votes
0answers
164 views

Stm32F4-Discovery starting problem

I'm using CoIDE and the CMSIS library. The problem is that my programs start up normally only immediately after flashing the board. By disconnecting and reconnecting the board to the usb( just for ...
0
votes
0answers
415 views

ADC continuous conversation mode with STM32F411RE without DMA

Hi I have a code with STM32 peripheral libraries in which I could convert in continuous mode value from ADC channel 0 with in microcontroller STM32F411RE on NUCLEO-F411RE board. After each conversion ...
0
votes
2answers
83 views

Designing from low-voltage 3-phase motor driver for more powerfull BLDC motor

I am starting to work on undergraduate project to build electric skateboard. Main thing I will foucus on, will be ESC (electric speed controler) made for a motor 190KV (motor spec.). I got micro-...
0
votes
0answers
52 views

Multiple undefined HAL functions after adding new files

I have a Nucleo F446RE board, I am using trueSTUDIO and I am trying to make a project where I use an SD card. I am using the User-Defined FATFS library with the adafruit SD card BSP library. After I ...
0
votes
3answers
398 views

keil v5 STM32F4 - Cannot access memory

I am using an STM32F407VGT board with an STLINK V2 programmer in keil IDE. I have downloaded to the board a very simple code: ...
0
votes
0answers
169 views

Set Block size(CMD16) for SD card returns Illegal Command as response

I am interfacing SD card (16Gb Class 10 Micro Sd HC) to STM32F407VET using SDIO protocol. I am using Chan FatFs version 13a for this project. I am able to open an existing file(with some content in it)...
1
vote
3answers
234 views

Should I use MBED of ARM or native platform of microcontroller suppliers? [closed]

I got a STM32F429I-DISC1 development board from STMicoelectronics and I know MBED support it. So if I want to learn about ARM and develop a commercial product in the future, should I use MBED ...
1
vote
3answers
580 views

CAN Initialization Timeout Error in STM32F4

I am using an STM32F446ZET6U Nucleo Board (programmed with CubeMx and Keil uVision 5) and I try to use some of the ST's examples in order to learn about its peripherals. I am stuck with the CAN ...