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-discovery]

The tag has no usage guidance.

1
vote
1answer
14 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
37 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
1answer
34 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?
0
votes
0answers
22 views

STM32F407 - ADC in Scan mode setting overrun bit

I want to read 4 ADC channels in continuous scan mode. I am using adc interrupt to read from adc data register. Here is my initialization : ...
2
votes
0answers
23 views

STM32F429I Discovery board - unable to do printf() redirection using SWV/ITM

I am an STM32 newcomer. I recently got an STM32F429 Discovery dev board which I have been playing around with. Currently I'm trying to figure out how to use the debugging functions of this M4 Cortex, ...
0
votes
1answer
65 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
70 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 ...
-1
votes
2answers
112 views

STM32F407 discovery board jumpers

What is the usage of Jumper1(JP1), Jumper2(JP2) and Jumper3(JP3) on the STM32F407 discovery board?
0
votes
1answer
107 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?
1
vote
1answer
80 views

STM Studio C++ array content visibility

I have been writing software for the MCU STM32F417. I have been using the STM Studio for debugging purposes. Unfortunately I have found that I am not able to observe content of an byte array. I am ...
-2
votes
2answers
106 views

What purpose is to place pins at bottom on STM32 discovery boards [closed]

What is purpose to have pins (pin header) on STM32 development board places at bottom? Arduino and similar have pins at top so you see the top of board and connect external peripherals by connectors ...
0
votes
3answers
752 views

STM32F4 How are Preemption Priorities and Sub-Priorities used?

I have started working with ARM-based microcontrollers. I not understand subpriority and preeemptionpriority. For example: NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0x00; ...
0
votes
0answers
48 views

formatted chip on stm32f407vg

ı was properly working on stm32f407vg and to erase the latest program on stm32f4 I have formatted chip of stm32(now clearly it was not a good idea) ,but now flash memory discreased to 12kb(it was 1mb ...
0
votes
0answers
353 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" ...
0
votes
2answers
81 views

What is a simple method for measuring the physical vibration of a step motor (to STM32) in order to take it to a minimum?

For a university project we installed a motor that is controlled from a STM32F407G-discovery board through a step motor drive, we experimented with the number of Microsteps options in the drive, and ...
0
votes
2answers
99 views

How to get sensor data at fixed time intervals

I am using a STM (stm32l432kb) microcontroller. In my application I need to get the data from the sensor at fixed interval(based on the selected Mode). Like I have to select the Modes:- Mode 1 : which ...
0
votes
0answers
105 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
172 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, ...
-1
votes
1answer
493 views

STM32F4-Discovery GPIO Always High

I am doing some work with an STM32F4-Discovery board, and I am trying to get some simple usage out of the GPIO Pins. However there is a weird problem I am having, that I don't know how to fix. I am ...
0
votes
0answers
699 views

STM32F4-Discovery reading Serial Data

I have an STM32F4-Discovery Board with an attached STM32F4DIS-BB Base Board attached, giving me access to a Serial Port to use for the Discovery board. I am trying to program the board to read data ...
0
votes
0answers
250 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)...
0
votes
1answer
314 views

STM32F4 Discovery AES Encryption Problem

I am trying to implement very basic AES192-CBC Mode encryption routine on STM32F407 Discovery board and I want to do that process with the onboard Cryptographic processor in STM32F407 MCU. I copied ...
1
vote
2answers
177 views

coocox suspends and hits the break-point

I am a complete beginner in the ST micro-controller programming. Intention was to evaluate the software set-up one and board functionality. So tried to blink an LED using standard code available. ST ...
0
votes
2answers
2k views

stm32f4 discovery user button debounce

I am still new to the stm32f4 discovery board. I was looking at the board's schematic to see how the user button is implemented on the board: Since C38 is not fitted, does that mean I have to resort ...
0
votes
1answer
152 views

Attempt to implement a scheduler in STM32F4

I have a question regarding scheduler implementation. I have tried to implement a scheduler according to my understanding. In this example, i have taken advantage of the Systick handler provided by ...
0
votes
1answer
437 views

Reading onboard-RTC registers of STM32F411

I am trying to read the values in the seconds register of on board RTC of the STM32f411E discovery board. I want to transmit the values to my serial port. I believe i have initialized the hardware ...
1
vote
1answer
54 views

Programming the STM32L152C8u6

I want to program the STM32L152C8u6 unit but i don't know how. Can I use the SWD interface on the STM32F4Discovery development board to program a STM32L152C8u6?
5
votes
1answer
798 views

STM32F4 How to stop triple interleaved mode?

I am using triple interleaved mode with DMA in STM32F429 and have problem stopping it. It should be stopped by HAL_ADCEx_MultiModeStop_DMA(&hadc1), but while ...
2
votes
2answers
417 views

STM32F4 ADC: Dual interleaved + Independent

Some STM32F4 microcontrollers have 3 ADCs on board, they can be configured in various modes. I wonder is it possible to configure ADC1 and ADC2 in "Dual interleaved" mode, but have ADC3 configured as ...
0
votes
0answers
68 views

How to create a CMSIS project for DiscoveryF407VG board?

I have downloaded Keil 5.24a, and Arm cortex-M legacy support, when I want to create a new project, in micro selection step, in Software Packs there is no ...
1
vote
1answer
2k views

Atollic + STM32F4 + ST-Link v2 connection problem “Unknown MCU found on target”

I currently have a problem with the connection between the debugger ST-Link V2, ARM Atollic 8.0.0 and a custom board with STM32F469. The Atollic and the ST-Link utility believe the Target is halted (...
1
vote
1answer
2k views

Interfacing HC-SR04 Ultrasonic sensor with STM32L

I'm trying to control this HC-SR4 Ultrasonic sensor by simply ON an LED when an object closer than 100cm is detected. I'm using TIM2 for the trigger signal (Pin PB10), and TIM4 to receive Echo signal (...
0
votes
0answers
324 views

STM32F407VG: Using timers to count every pulses of an external clock during a specified time

I am working on a project to count the pulses of an external signal, I am using TIM2 to count every pulses of the signal and the TIM4 to set the duration of counting. For example : I have an external ...
0
votes
1answer
930 views

Program not running on STM32F4 after disconnect it from PC

I developed a program on STM32F4 using keil uV on windows 10, it works perfectly when the target is powered by the computer even after i stop the debugging. Normally after downloading the program in ...
0
votes
2answers
656 views

Using SPI to communicate between stm 32 f4 and stm32 f3

I want to use an SPI bus to transer a message between an STM32F4 discovery and a STM32F3 Discovery, using an half-duplex channel. Master is F4, slave is F3 and the communication is MOSI type. When I ...
0
votes
1answer
2k views

How to configure Multichannel ADC properly? Currently two different values stored in same variable

I want to use Multichannel ADC using the STM32F4 so I want to read two different AC signals on two different pins/channels. One AC signal value should be stored in ADCConvertedValue[0] and the other ...
0
votes
1answer
456 views

DMA circular input

I want to copy the same value, say 0.0f, into a big block of SDRAM through DMA. For example, STM Discovery 429 uses DMA2D for fast screen clearing with the ...
3
votes
1answer
3k views

DMA triggered by Timer using STM32F4-Discovery board

I am trying to trigger the DMA peripheral by the Timer using STM32F4-Discovery board, but it doesn't seem to work. I want to get the value of a port (Port C) every 5 ms and save the value in memory ...
2
votes
2answers
2k views

Read big file from sd card with fatfs

I'm using the STM32F4DISCOVERY board and I am trying to read a file from a micro SD card, and treat the data. I'm using the following functions ...
1
vote
2answers
14k views

How to read from multiple channels of the ADC on an STM32F407?

I am working on a project wherein, I need to read the Analog outputs from 4 sources and convert them to a digital value using a single ADC module on the STM32F407 microcontroller. I want to sample the ...
0
votes
1answer
418 views

Error in programming STM32F4 Discovery with IAR?

I program STM32F4 using External Interrupt, and there is an error below: Error[Li005]: no definition for "SYSCFG_EXTILineConfig" referenced from C:\Users\AnhDoan\Desktop\STM32\IAR[GPIO ...
0
votes
2answers
671 views

RTC (real-time clock) in STM32L4 series - date and time is not updating on the debugger variable

While using the RTC (real-time clock) in the STM32L4 series, but date and time is not updating on the variable in debugger mode. But when I stop the debugging, the variable gets updated instantly and ...
0
votes
1answer
494 views

External Power STM32F4DISCOVERY [duplicate]

This question has already been asked on this link but I cannot comment there. I want to run my STM32F4DISCOVERY board from external power supply, but it does not run as it should. As specified in the ...
0
votes
0answers
353 views

Can't get GPIOH pins to work as output on STM32F4 Discovery

I'm using 4 LEDs connected to different pins on STM32F4 Discovery: PA6, PD8, PH0, PD1. All of these pins have been configured as output with same function: ...
2
votes
1answer
2k views

How to configure STM32F4s TIM1 and 8 for PWM

I have configured timer 4 for PWM with following code and connected LED to the configured pin. It is working. ...
0
votes
0answers
1k views

Factory Reset stm32f4discovery

What is the easiest way to perform a factory reset on the board STM32F4DISCOVERY ? I am working on IAR Workbench 7.70.1. Thank you all
1
vote
0answers
546 views

Constant values read from LIS3DSH Accelerometer

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. The code is working on one ...
0
votes
1answer
625 views

Proper way of storing a register address on ARM Cortex M4?

I am writing a program on STM32F4 Discovery where I have to store address of Timer's CCR register into a pointer and then change register via this pointer, ie ...
0
votes
1answer
447 views

Open Error on host while using VCP on STM32

I use STM32F407G-DISC1 board. I have run some examples with VCP based on STD library. Everything is OK. Then I have tried to generate code by CubeMX. And something interesting happens. If not to add ...
0
votes
0answers
561 views

STM32F429 Discovery board power issues

I seem to have accidentally bricked my STM32F429 Discovery board. By mistake, I connected the external power supply while the ST-LINK cable was connected to a PC. I have done some troubleshooting: ...