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.

-3
votes
0answers
27 views

I2C is Always busy STM32F407

I followed many posts about that issue, when I transmit something thru I2C I get a busy flag always. That happens on board discovery F407VG. I tried the solutions on the stackexchange but nothing ...
1
vote
3answers
67 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.
1
vote
0answers
32 views

I2C get stuck on busy with DMA interrupt

I'm trying to interface with NXP device using I2C. I'm initializing it that way ...
0
votes
0answers
13 views

atcab_get_pubkey Blocks the code until break point is set

I'm using the cryptoauthentiction lib from microship, and I'm trying to get a public key from it using the function in the code listing below. atcab_get_pubkey https://github.com/ALLTERCO/mongoose-...
1
vote
1answer
48 views

Using the GPIOs of an STM32 Discovery board

I would like to start learning how to program an STM32, because of this I bought the STM32L152C Discovery board. It's a very nice board, full of goodies, but I would like to use just part of them: ...
0
votes
2answers
59 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
48 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
2answers
114 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 ...
0
votes
2answers
104 views

freeRTOS semaphore

I am new freeRTOS and i am using stm32F4 . Requirement is to create a task it should the sd card every after 15min what is the best possible solution ?? ...
0
votes
0answers
18 views

STM32F429ZI MEMES sensor interfacing

I need help using L3GD20 gyroscope that comes with stm32f429ZI DISC1 board. I have used code in this thread as the example and this video to generate code using cube MX This is the code. IDE : KEIL ...
0
votes
1answer
45 views

STM32F429ZI reference voltage

I want to use the full output resolution of DACs (12bit) in the range of 0-1 Volt (and not in the range 0-3.3 Volt). I see there is a pin VDD in this board (STM32F429ZI), please help me to understand ...
1
vote
1answer
65 views

STM32F429ZI DISC1 Register level code USART

I'm learning to program STM32F4 micro-controller using a UDEMY course. It covers GPIO, SPI, I2C and and UART register level programming. So far I have only been able to make GPIO code work. For ...
-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
60 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
166 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
80 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
1answer
60 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
86 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
76 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
206 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
146 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
152 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
115 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
1k 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
455 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
103 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
101 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
2answers
654 views

STM32F4-Discovery GPIO Always High [closed]

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
830 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
288 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
373 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
193 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
3k 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
197 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
499 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
890 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
466 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 ...
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
1answer
1k 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
721 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
497 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
4k 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
15k 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
443 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
727 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
546 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 ...