Stack Exchange Network

Stack Exchange network consists of 175 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
20 views

STM32F405 - learning turn LED on with momentary switch

I have just started using a homemade STM32F4 development board. The board works OK and I am using STM32 Cube-MX to configure it and Keil uVision 5 as a compiler. I started with a simple blink and ...
-2
votes
0answers
38 views

Comment on Git code for ACIM VFD drive [on hold]

I am new in the field of Motor Drive. While searching for a sample code to get jump start I found this impressive repo on git: GIT Repo for VFD Drive Edit: As pointed out by 'Charles Cowie' is his ...
0
votes
1answer
17 views

CS43L22 DMA constant beep noise

I am using CS43L22 with STM32F4 discovery board. I generate sounds by sending I2S messages to CS43L22 using circular DMA buffer (32 size array). However, chip creates a constant beep whether it's ...
0
votes
2answers
26 views

STM32F429 CANopen with or without transceiver

this might be a stupid question but i'm unable to clarify this by myself. So i'm working on a project with a STM32F429zit microcontroller. I would like to use CANopen in my project so i can ...
0
votes
1answer
33 views

DMA Init code for ADC sampled data

I am trying to figure out how this DMA Initialization code is used to sample following 4 ADC channels and save data in 'adc_data'. ...
0
votes
1answer
17 views

How do I use TIM2 as a timing source on my Stm32F407ZG? [on hold]

How do I use TIM2 to do timing on my Stm32F407ZG? The activity which I am trying to make is to turn on/off a led, using the TIM2. I know how to make to turn on the led, as it is very easy, but in ...
0
votes
1answer
38 views

how to enable FPU in cubemx

For STM32F407 Discovery board how do I enable its FPU from CubeMX? The following instruction is used in handwritten code. How can I get it generated from CubeMX? // Enable FPU SCB->CPACR |= ...
0
votes
0answers
31 views

Converting handwritten SystemInit() function to CubeMX [on hold]

I have a handwritten SystemInit() function for STM32L476. I want to convert it to STM32F407 Discovery board and CubeMX format and use those pins which are not used on the Discovery board.
1
vote
3answers
56 views

issue with timer code

I wrote a simple code to blink an LED connected to PA3 on the STM32F4 Discovery board every 1sec using timer4. I haven't declared any of the swd pins of the board for gpio, yet I get the following ...
0
votes
1answer
27 views

Connect STM32F4 with smart card ISO7816

everybody. My task is to connect STM32F4 discovery Board with Smart Card ISO7816. I don't use interface ST8024CDR only hooked paid directly by the scheme specified in the image: I tried to adapt the ...
0
votes
0answers
19 views

Can I use the st-link/programmer on nucleo l432kc to program external baords?

Can I use the st-link/programmer on nucleo l432kc to program external boards? I know that I need the SWCLK and SWDIO pins and they don't seem to be connected to external headers but I saw some people ...
-2
votes
0answers
34 views

Adaptation of “Working with bootloaders on Cortex-M devices” whitepaper from Atollic

I am working with Atollic TrueStudio on STM32F469 target. I have followed instructions from the tutorial "Working with bootloaders on Cortex-M devices" by Atollic. I want to adapt the bootloader ...
1
vote
2answers
85 views

STM32 Bootloader: How to ensure only uncorrupted firmware boots

I have a custom board with an STM32F407 on it. As SWD is not available, I have to program the microcontroller through the UART bootloader. Imagine that the folllowing sequence of events takes place. ...
0
votes
1answer
23 views

Error when using vPortFree(ptr) CMSIS-RTOS on STM32F4

I will need to handle dynamic memory using malloc and free. Looking on FreeRTOS documentation, I found pvPortMalloc(size) and vPortFree(ptr) , pvPortMalloc(size) works fine. When try to release memory ...
1
vote
1answer
33 views

Low Jitter and Latency on signal trigger using WFI / WFE on STM32F405

I have a hobby project using a STM32F405 MCU, which is intended to respond to a fast clock signal (~1Mhz) connected to Pin 1 of GPIOA. For every transition of the input (both rising and falling), I ...
0
votes
1answer
67 views

Using a MOSFET to turn on/off LEDs which could get reverse voltages

I formerly asked about a LED circuit a long time ago. The circuit I want to make is 'reverse-voltage notifier'. If the input is reversed, then a LED(below, D2) will lit. Of course, if the input is ...
1
vote
1answer
40 views

STM32F429-DISC1 White Screen Error [closed]

I just bought STM32F429-DISC1 a few weeks ago. I did the following: Turned it ON by connecting to my laptop. installed the drivers. and updated the firmware Everything worked perfectly fine. ...
1
vote
1answer
30 views

How to modify BRR and BRSS registers to stm32f4 from stm32f103

I'm trying to modify stm32f103 2x16 lcd library to stm32f4. There are BRR and BSRR register on stm32f103 but there aren't similar register in GPIO_TypeDef structure on stm32f4 so i don't know how to ...
1
vote
2answers
136 views

Firmware only runs when I press the reset button

I've created a board using the STM32F405R6T6. I am experiencing some problems: after I program the firmware onto the microcontroller, withdraw the power and reinsert, the firmware only starts to run ...
0
votes
0answers
49 views

Crystal Oscillator (STM32F4)

I am currently working with a STM32F427 MCU and have a few questions in my mind. Is my schematic for the HSE correct? Can you tell me, why some schematics on the Internet use a Resistor in series ...
0
votes
0answers
65 views

Having trouble reading from registers with STM32F4 HAL_I2C libraries

I'm new to STM32 programming and am programming on a STM32F429 Microcontroller. My main goal is to integrate a Sparkfun UV sensor VEML6075 into the microcontroller as an external payload. TLDR: Tried ...
0
votes
1answer
47 views

stm32f407 timer setup stm32duino

I'm trying to understand how timers work in this board. I want to make a simple led blink after X amount of microseconds and then keep the led on for X amount of microseconds ...
0
votes
2answers
107 views

STM32F407 50 Ohm PCB

For STM32F407, it is recommended by the company that a 4-layer PCB be used to realize impedance matching. However in the Discovery STM32F407, a 2-Layer PCB is used. Now I am designing a PCB for ...
1
vote
1answer
62 views

Can I use the same serial1 port to communicate with two modules?

My MCU is STM32L432KC, it has two serial ports 1 and 2. But I’m wondering if I can use the same serial port1 only to communicate with two modules (not on the same Tx & Rx pins but 4 different pins ...
1
vote
1answer
33 views

STM32F4 SPI Program hangs at TXE non empty

I have been taking a udemy course on STM32F4. The course uses a different board than the one I have but from same family STM32F4. I couldn't make the SPI driver developed in the course to work in my ...
0
votes
1answer
31 views

TLE42744 outputs lower voltage than expected

I am an engineering student and have just finished designing a PCB containing an STM32F405 MCU, an LSM9DS1 Accelerometer/Gyroscope/Magnetometer and 7 connections for potentiometer reading. My power ...
-1
votes
1answer
63 views

What STM32 to learn with? [closed]

I am currently learning stm32, I have very little coding background, only some arduino. What is the best device to start learning on? I currently own a neucleo-f4 and must learn to program a ...
1
vote
2answers
52 views

The STM32L431 EXTCLK MCU pin 14 and 15 need to be conected or not

Is there a way to make the internal MSI (RC) clock recalibrate itself (automatically in hardware) onto the LSE 32.786kHz clock input, effectively reaching the same precision as a sealed-external ...
-3
votes
2answers
107 views

STM32F4 Fewer Pin Mapping possibilities for ADC inputs

For STM32F405 100pin package, its datasheet page 39 and ref. manual page 388 as well as CubeMX shows that there are 3 ADCs each share 16-channels as shown in following images. Although it is not ...
0
votes
2answers
78 views

STM32F405 Setting Clock Freq Less than Max 168 MHz

For STM32F405 the max system clock frequency is 168 MHz. I want to run it at marginally lower frequency only for the sake of safety and reliability because my application will run non-stop through out ...
-1
votes
1answer
45 views

STM32F405 code compatibility with STM32F407

I have to do a project which will be based on STM32F405VG (100 Pin) but I don't have that MCU at the moment. Instead I have STM32F4-Discovery board which has STM32F407VG (100 Pin) on board. All the ...
0
votes
1answer
65 views

High PWM frequency weird shape

Using a STM32F407 if I generate a 200 Hz signal it looks like this: If I want a higher frequency, for instance 10 kHz I get this: I am using a PicoScope 2205A, resolution 8 bits at 200Ms/s, ...
4
votes
1answer
629 views

STM32 PWM problem

Using a STM32F407 board. I want to generate a PWM signal. I have the following function: ...
-3
votes
1answer
87 views

How to write STM32F4 OTP Area

I am reading the reference manual page 75 that shows the flash memory organization of STM32F4 MCUs. There is an OTP area of 528 Bytes in it as shown in the image: Is it possible to write on this OTP ...
0
votes
1answer
47 views

ST-LINK and PA13,14 Pins on STM32F407

If I use PA13,14 pins for flashing my MCU via ST-LINK programmer then can I also use these pins as GPIO in the same circuit? Will that not disturb the ST-Link if some analog or digital circuit is ...
0
votes
1answer
36 views

Minimal circuit to flash STM32F4 using STLINK

I wonder if I need to put some circuit between STLINK and STM32F4 MCU to flash it or does it simply require to connect the wires 1:1 directly? I cannot find it in the datasheet.
0
votes
1answer
60 views

Can STM32F4 USART be used as UART?

There are 4/2 USART/UART ports in STM32F407 (Page 15) MCUs as shown in the image. I need 4 UART ports in an application. I wonder if its possible to use 2+2 (UASRT+UART) ports for my purpose in this ...
5
votes
3answers
1k views

Why isn't there any EEPROM in STM32F4 MCUs? [closed]

Why isn't there any EEPROM in the STM32F4 series MCUs? Mostly I have Microchip MCUs and they have EEPROM available in them, but I just found out that it is not available in the STM32F4 MCUs... And it ...
1
vote
3answers
112 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
49 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
50 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
96 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
40 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
48 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
82 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
95 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
105 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
81 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
68 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
39 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 ...