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

Does the STM32F469I DISCOVERY board allows the user to perform Digital to Analog Conversion?

I have a question on DAC (Digital to Analog Conversion) capability of the STM32F496I DISCOVERY board, which uses the STM32F469NIH6 (216 pins) microcontroller. According to the microcontroller's user ...
0
votes
0answers
25 views

Eclipse Plugins for STM32Cube-IDE

I am trying to explore this new IDE, but also have no hands on experience with Eclipse IDE.. "The new IDE is fully compatible with Eclipse, meaning STM32CubeIDE supports the thousands of plugins for ...
6
votes
4answers
338 views

Is there a down side to setting the sampling time of a SAR ADC as long as possible?

In configuring the sampling time for the internal ADC of a micro-controller (STM32F446RE) to sample the output of a current sensor connected to a PWM controlled motor, the sampling is triggered at ...
0
votes
0answers
38 views

stm32F401re ethernet shield unable to associate IP address

I bought STM32 F401RE and Ethernet shield HR911105A with MCU W5100. I'm not able to configure simple connectivity with it. I have setup all SPI wires and simple code for setting up IP, subnet, and ...
0
votes
0answers
24 views

EPS8266 and Secure SSL on STM32F4

Im trying to implement the TLS library to open a TCP connection with smtp servers and SSL. Im using the STM32 to control the wifi module via uart, how can I implement the ssl library in the stm32 with ...
0
votes
2answers
56 views

Exceeding voltage on STM32 Vbat pin

I want to power STM32F429 Vbat pin with an existing Lithium Ion battery on board. However, the maximum voltage on the discharging curve of this battery is 4.2v which is above the maximum operating ...
2
votes
0answers
47 views

Address Sent bit is not set on STM32F4 Disco

I am trying to interface my STM32F4 Discovery board with a sensor that works over i2c, since the sensor required a specialized i2c protocol, I decided to implement my functions using registers. But ...
1
vote
3answers
75 views

How to generate NACK on STM32F407

Is there a way to send a NACK on I2C on STM32F407? There is no way to do that using the HAL, and the datasheet says nothing about it.
0
votes
1answer
48 views

STM32 USB programming using the OTG interface [closed]

I'm new to ARM based STM32 controller. The Controller which I'm using STM32F427VIT6. It has USB OTG FS interface where I need to program it using the USB interface. Is it possible to program or I have ...
0
votes
1answer
31 views

FMPI2C on STM32F407

Is it possible to use Fast mode I2C on STM32F407 ? I looked everywhere for the I2CX pins GPIO but Can't find them at all.
0
votes
0answers
51 views

Interfacing A71CH with I2C

I'm trying to interface the following chip with STM32F4 https://www.nxp.com/docs/en/supporting-information/AN12207.pdf I'm currently trying to transmit a repeated start using hal sequential ...
2
votes
0answers
49 views

STM32 read external FIFO through FSMC

I want to use FSMC of STM32F429 to read external FIFO implemented in an FPGA MAX10. Since no mode of FSMC can fit the FIFO interface precisely, I try to use the modified synchronous multiplexed PSRAM ...
1
vote
3answers
82 views

Questions on STM32 multiple GPIO names

I started designing the development board for STM32F427VIT6 of LQFP100 package. Its has multiple USART and UART pins. The USART names in the datasheets are USART1, USART2, USART3, UART4, UART5, ...
0
votes
0answers
32 views

Calling a function that uses HW_Delay inside timer interrupt

I have the following timer interrupt configuration ...
0
votes
1answer
44 views

stm32f407 isn't flashing

I'm having problems when I try to update programs in my STM32F407 discovery. It was working well until I tried to use the PA13 pin as an input in my program. I tried to update the program, it didn't ...
1
vote
1answer
56 views

Inconsistent SPI communication between STM32F4 (Slave) and Raspberry Pi (Master)

I've been having a very specific issues with large SPI transaction and after few days of debugging and trying different approaches I haven't progressed anywhere. To briefly explain the system: Slave: ...
0
votes
0answers
63 views

FSMC on STM32F407VGT6

I would like to know the maximum size of an external SRAM supported on STM32F407VGT6 via FMSC. Is it related to addresses? According to the datasheet and the picture .. Is That mean that I can ...
0
votes
1answer
54 views

Implementation of RTOS in irrigation embedded application on stm32

I have designed a small project in which i have two sensor nodes(stm32) with each sensing temp, humidity and soil moisture and actuating the relay based on some threshold of moisture value. These ...
0
votes
0answers
23 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 ...
0
votes
1answer
29 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
85 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
35 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
58 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 |= ...
1
vote
3answers
61 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
60 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
26 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 ...
1
vote
2answers
145 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
32 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
40 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
71 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
46 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
43 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
140 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
84 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
98 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
90 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
117 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
65 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
41 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
71 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
64 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
125 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
83 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
47 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
66 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
705 views

STM32 PWM problem

Using a STM32F407 board. I want to generate a PWM signal. I have the following function: ...
-3
votes
1answer
160 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
53 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
41 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.