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.

1
vote
3answers
88 views

Interfacing GPIO 3.3V to 74HC04 5V

Will it be safe if I connect STM32F407 GPIO outputs (Vdd=3.3V) to 74HC04 hex Inverter inputs (Vdd=5V)? What is the best recommended method to add an inverter at the output of STM32F407 MCU? edit: ...
0
votes
1answer
31 views

On-board ST-Link Firmware

There is an on-board ST-Link on STM32F4Discovery board based on STM32F103 MCU. If I have to use this circuit in my design then where could i get the ST-Link firmware for STM32F103 MCU?
0
votes
2answers
39 views

STM32F407 fallback to Internal Osc

I wonder if it is possible at run time to detect that an external Oscillator has gone bad and the application now falls back to internal Oscillator.. specially for the case of STM32F407 MCU?
0
votes
2answers
66 views

STM32F407VG Pin Assignment

I am new to the STM32 world. I am using [STM32F407VG]1 (100 Pins pkg). I have to select an 8-bit port for connecting 8 digital inputs to the MCU.. but the datasheet shows so many alternate as well as ...
0
votes
1answer
21 views

Stm32L4 microcontroller doesn't wakeup from shutdown

I'm using Mbed coding on STM32L432KC nucleo board. I'm copying the code from the STM32 cube code examples to put my MCU in shutdown. See here. The code compiles fine. I just added an LED blink inside ...
0
votes
0answers
21 views

STM32CubeMX Timer Clock Source

If i am using External oscillator with STM32F407 and I select 'Internal Clock Source' for a Timer then what would that mean? What clock frequency will the Timer/Counter register see at its input if my ...
0
votes
2answers
58 views

Problem configuring RTC of STM32F4 using LSE

I want to use RTC of STM32F4. When I configure this with LSI, I have no problem. But when I use LSE, I have a timeout error in SystemClock_Config function when it ...
0
votes
1answer
64 views

Looking for STM32F4 Vdd 5V

I have to replace Renasas M30853 MCU with STM32F407 MCU in a circuit. The earlier MCU uses power supply Vdd = +5V as well as all the analog and digital circuit that is connected with it. How can I use ...
0
votes
1answer
31 views

SWD vs ST-LINK on STM32F4 Discovery board

Why do we have 2 connectors namely CN2 (SWD) and CN3 (ST-LINK) on STM32F407 Discovery board? Are not they the same thing?
1
vote
1answer
70 views

Is it possible to replace STM32F407 Internal Bootloader

I am new to the STM32 world. I know that all STM32 MCUs come with an internal bootloader. Is it possible to replace it with custom boatloader?
0
votes
1answer
41 views

SPWM vs SVPWM implementation [duplicate]

I am learning various control techniques for 3-Phase ACIMs. So far I have understood about the SPWM implementation.. in which we save Sin values in a LUT and then modulate the duty-cycle of PWM wave ...
1
vote
0answers
35 views

Water level measurement using Optical Mouse Sensor

I wonder if anyone has hacked an Optical Mouse sensor to measure water level in an overhead water tank? Its possible to read frames data from the sensor and if those frames could be processed with a ...
0
votes
2answers
69 views

SPWM vs 6-step PWM vs SVMPWM

While learning 3-Phase scalar control of ACIM using STM32F407 MCU I could not clearly understand the diffrence between the following terms: 1. SPWM 2. 6-step PWM 3. SVMPWM How do they differ from ...
0
votes
0answers
21 views

LAN8720A - Reset and Power-up Issues

I am developing a new board that uses an STM32F427 MCU and the LAN8720A as an ethernet PHY. This is my first design with this MCU, but I've done multiple designs with this PHY and other MCUs. I never ...
0
votes
1answer
20 views

Phase or Line V/F Control for ACIM

I am trying to implement V/F control for 3 phase ACIM using STM32F407 MCU. I am using 6 Complementary outputs of its Adv. Timer 1, Center aligned 256-points PWM waveform. The DC Bus voltage is 600 VDC....
0
votes
0answers
30 views

External DACs to 3.5mm jack attached to computer speakers

I have 5 external DACs and 5 Speakers that are being powered independently. The DACs are connected to an Nucleo-f446re microcontroller where will be receiving their data from. For the speakers I am ...
0
votes
0answers
38 views

How to see sinusoidal wave from SPWM output?

I am generating SPWM waveforms using complementary outputs of advance timer. I wonder how can i see the actual sinusoidal waveform on an oscilloscope which is intended from the SPWM output? My MCU is ...
0
votes
1answer
61 views

CubeMX HAL Libraries state or stateless [closed]

I wonder if the STM32F4 CubeMX peripheral HAL libraries saves the internal state of the peripherals OR if they are stateless? I am concerned about this because I want to know the possibility and ...
-2
votes
1answer
62 views

STM32 GUI for Timers [closed]

The CubeMX for STM32 MCUs gives an easy graphical interface to configure the Clock tree. I wonder if there is similar GUI tool for configuring the peripherals specially the advance timers TIMER 1 and ...
0
votes
0answers
40 views

STM32F4 CubeMX SysTick timer rate

I am using CubeMX to generate initialization code for STM32F407 MCU. I wonder where can i see the SysTick timer rate in CubeMX or its generated code? I am using 8 MHz external crystal and set SYSCLK ...
0
votes
3answers
72 views

STM32 HAL driver for register value update

I am new to HAL drivers and STM32 MCUs. Can anyone tell me how to use HAL drivers to update register values of STM32F407 MCU? I have to programatically update the values of ARR and CCR registers of ...
0
votes
0answers
76 views

USB Host circuit correct?

I recently qualified as an electronic engineer. I have designed a USB circuit to update the .bin contained in the STM32F469 microcontroller. I would like you to confirm if the circuit I have made is ...
0
votes
2answers
20 views

Load vs LDAC pins

Alright, so I'm using a TLV5628 Octal 8 bit DAC with my stm32f4-Nucleo and I'm kind of confused about the difference between LDAC and Load. I am also trying to figure out the clock rate and I might ...
1
vote
2answers
79 views

Minimum connections needed between stm32 MCU and the st-link programmer? [duplicate]

My MCU is stm32L432kc. I've concluded that we need a minimum of 4 connections: SWCLK, SWIO, vcc and gnd. Can someone from here confirm that? And another question is I'm confused how to connect the ...
1
vote
0answers
43 views

invalid read data from nand flash

I want to use a nand flash ic with part number of K9F1G08U0C and connect it to a stm32f429igt6 microcontroller. Although I can read the ID of this nand successfully but the written data and read back,...
0
votes
0answers
25 views

Transferring uint32_t using USB_OTG_FS in stm32f4 discovery board

i want to send an uit32_t adcbuffer[1] over USB at full speed and CDC library but as you can see ...
0
votes
1answer
56 views

How to transfer data which is acquired by ADC & DMA using USB_OTG_FS in stm32f407 discovery board

i acquire a 12 bit ADC at 10kHz sampling rate (which is equal to 15 kByte/s) using DMA2/stream0 in circular mode and put them into an unit16_t adcbuufer[1] now i ...
1
vote
1answer
317 views

What is HAL_SPI_TransmitReceive purpose and how it works

I am trying to understand how does this function works even though there are so many people complaining about it. My questions are these: 1) What is the difference between using this in my code: <...
0
votes
0answers
40 views

STM32F429 SPI issue

I am trying to get SPI working on STM322F429-disco board. Here is the setup: SPI2 is setup as a master with Soft NSS and SSOE enabled. GPIOG Pin11 is being used manually for Chip select. SPI4 is ...
3
votes
1answer
63 views

SPI clocking in extra word - STM32F4

I am attempting to interface with the TLE5012B (datasheet here) using SPI. The master in this case is a Nucleo F411RE, which uses an STM32F4 processor. The sensor communicates in 16-bit words, so I ...
0
votes
0answers
17 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'...
1
vote
0answers
69 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
104 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
165 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
90 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
134 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
39 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
211 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
111 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 ...
1
vote
1answer
327 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
104 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
33 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
1answer
62 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
263 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
66 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
51 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
132 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
141 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
153 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
114 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 ...