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 [stm32cubemx]

Anything related to the STM32CubeMX. It is a program to ease developers' life by reducing development efforts, time and cost. STM32Cube covers the STM32 portfolio.

0
votes
1answer
22 views

STLink USB communication error when no board is connected

I'm new to using the ST-LINK, and I'm trying to isolate a connection problem, by checking if the ST-Link itself is working well with my computer. I connected the ST-LINK V2 by itself to a Windows 10 ...
-1
votes
0answers
34 views

STM32 SPI CRC polynominal must be even or odd number?

I used stm32cubemx for template generation. When I configure SPI in cube, it set CRC polynominal X1+X3 (1010 in decimal its 10 =) ). SPI use 16 bit length word and I think it polynominal not be ...
0
votes
2answers
62 views

How to choose UART maximum output speed?

When I open up a project in STM32CubeMX and configure a UART, there's a Maximum output speed configuration (under GPIO Settings) that defaults to Very High. The options are: Low Medium High Very High ...
1
vote
3answers
74 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
33 views

STM32 CubeMX: Can you prevent CubeMX from generating SYSTICK functions?

I am working with STM32 CubeMX and we are implementing an operating system that will take over the function of the 1kHz HAL_SYSTICK. However, when I want to re-configure the hardware using CubeMX, the ...
0
votes
1answer
42 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 ...
0
votes
0answers
16 views

Interfacing tft lcd ili9225 with nucleo f767zi

How to interface tft lcd ili9225 with nucleo board f767zi. There are no libraries for the ili9225 driver IC with nucleo board. And I don't know where to start without pre built libraries like ...
1
vote
1answer
67 views

Finding ADC pins from Init code

I am trying to figure out the GPIO Pins that are used for ADC input looking at the following ADC Initialization code for STM32L476RG. ...
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 |= ...
4
votes
3answers
370 views

How to debug current consumption with STM32 Nucleo board?

I'm trying to configure an STM32L011-Nucleo developement board to consume about 600 uA of current or so. It uses an STM32L011K4. The datasheet states that this should be possible if I drive the MCU ...
1
vote
1answer
63 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
votes
1answer
62 views

How to handle configuration changes to the project with STM32CubeMX

Just starting to use STM32CubeMX and Atollic TrueSTUDIO to code for STM32L011. One thing I noticed is that if I made any changes to the project configuration in STM32CubeMX - they will automatically ...
-3
votes
2answers
112 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 ...
1
vote
0answers
48 views

STM32F4: loss of SPI communication when enabling interrupts

I'm trying to communicate with a device via SPI (a radio transceiver, to be more specific) and I want to use external interrupts in order to wake the processor up from sleep mode when a message ...
0
votes
2answers
81 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
114 views

Using Character Match functionality in a STM32F7 chip

I'm trying to implement a UART receiver that works by finding a '\0' in the datastream, OR when it receives 256 characters at which point the data should be processed by an interrupt. The point is to ...
0
votes
1answer
41 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
283 views

STM32CubeMX for UART example

I am trying to run the example given in CubeMX document UM1718, Tutorial 4 - Example of UART communications with an STM32L053xx Nucleo board.. page 230. I wonder what is the purpose of using TIM2 in ...
0
votes
0answers
66 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
1answer
163 views

STM32CubeMX HAL vs CMSIS

If I generate code using STM32CubeMX then which files are related to CMSIS and which files are related to HAL? My toolchain is Atollic TrueSTUDIO.
0
votes
1answer
127 views

Problem with STM32CubeMX

I downloaded the new STM32CubeMX (with the 'fancy' but quite annoying GUI). When I make a project (using some GPIO's, timers), I create the code (for System Workbench for STM/AC6/SW4STM Eclipse). And ...
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 ...
0
votes
0answers
147 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 ...
3
votes
2answers
165 views

Multiple(five) alarm time setting in stm32f0 mcu

I am working on my hobbyist project and need to develop the alarm timings. And RTC and Timer are new for me and I am confused in RTC Alarm time setting. I need to make alarm with RTC for five ...
0
votes
1answer
97 views

strange RFM95 SPI behaviour with STM32L4 [closed]

I am using CubeMX and HAL to program an STM32L4. I am trying to communicate with RFM96 module using SPI, but I am getting nonsensical results. According to the RFM96 datasheet, in order to read a ...
0
votes
1answer
45 views

stm32 uart issue serial monitor vs logic analyzer

I am writing data serial monitor via hal_uart_transmit and it works fine, but when I monitor same serial bit pattern in logic analyzer I see extra two bits have the logic high state, why is that? for ...
-2
votes
1answer
113 views

Why do people say STM32Cubemx is full of bugs? [closed]

I have worked with stm32cubemx for 2 years now, and I have found on forums people have mentioned that stm32cubemx is full of bugs? Why is that?
0
votes
1answer
359 views

How to write data to end of line of existing file (STM32CubeMX FATFS SDIO issue)?

I have successfully coded write data into a CSV file is an SD card using STM32 CubeMS FATFS SDIO interface 1-bit mode. But I can't find the file append function in HAL FATFS driver to write data to ...
1
vote
0answers
61 views

ADC gets stuck after doing a HAL_Delay

In the while loop I have this: HAL_ADC_PollForConversion(&hadc1, 1000); adcValue = HAL_ADC_GetValue(&hadc1); The ADC works okay until I execute this line,...
0
votes
1answer
211 views

How to measure duty-cycle with Input Capture from STM32F103C8T6?

I'm trying to measure the duty-cycle of the 0-5V electrical PWM signal I have generated from the any source. How can I do this? Anyone can help me? IDE: Keil Microcontroller: STM32F103C8T6
4
votes
1answer
119 views

Why does STM32 use a two-stage initialization process? What is the primary purpose of each stage?

I'm learning to use STM32 microcontrollers using CubeMX to generate a project. I've noticed that CubeMX generates two basic stages of initialization for nearly every peripheral: (A) Within the ...
0
votes
1answer
45 views

STM32F030(K6) Systick not triggering (BOOT0 problem)

I'm trying to write a simple program for a STM32F030K6T6 microcontroller. The problem I am facing is the more common "Systick is not working" problem. The code is generated using Cube32MX (Firmware 1....
2
votes
0answers
74 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- ...
1
vote
1answer
342 views

General questions on Timers [STM32 & CubeMx]

I'm learning by myself how to handle timers in CubeMx. I've got some simple questions. First question: In the clock tree, I see APB1/APB2 peripheral and timer clocks bus frequencies. I thought that ...
0
votes
1answer
589 views

Measuring speed with Input Capture Mode [STM32 & CubeMx]

I have the L432KC Nucleo. I'm trying to measure low speeds with a 1 PPR (pulse per revolution) sensor. For low PPRs, using the Period Measurement Method is suggested. If I get the period of the signal,...
0
votes
2answers
231 views

Questions about DMX512 protocol/STM

I want to make a DMX512 transmitter with a STM32F103 using HAL, CubeMX. I found some documentation like here about the protocol: Lighting-Control-using-DMX512-protocol-on-STM32. Sadly it does not ...
1
vote
0answers
277 views

driving WS2812B using DMA and timers

I am trying to port the octoWS2811 for STM32F103c8T6. This guy hubmartin has already done the heavy lifting and created a library using STM32 HAL. But the problem is that i am unable to get it to ...
0
votes
1answer
394 views

STM32 Flash erase sector 0

I have an updatable project with stm32f407. Code produced by cubeMx. Updater code check new update from internet and if is avaliable write main program on 0x08020000(sector 5) and this updater code ...
0
votes
1answer
2k views

STM32F4: How to get data from multiple channels sampled from a single ADC?

So I have searched everywhere for a solution to this problem but I can find anything. I have three channels connected to ADC1 of my STM32F446ZE-nucleo and I want to ...
0
votes
0answers
1k views

LWIP Raw UDP API on STM32F2/F7 generated by CubeMX not sending on startup, requires an arbitrary amount of resets to work

I'm working on a project using the LWIP raw API with the stm32f2 and cannot get it to work. The basic concept of the project is to have the stm32f2 acting as the actuator and gets instructions from ...
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" ...
1
vote
1answer
116 views

How to update MCU application

I'm currently developing with Keil µvision5 and STM32CubeMX on a Nucléo Board L053R8 (LQP64). Now I would like to transfer my program to my prototype board which has a STM32F051K6T8 (LQP32). Do I ...
0
votes
0answers
236 views

STM32 PWM generates excessive pulses

I use STM32F103C8T6 to drive WS2812 RGB LED strip. So I try to setup TIM1 to generate PWM using DMA. Everything works fine except the fact that I get more waves then I requested. Almost all the code I ...
0
votes
1answer
1k views

STM32L4 USB Device with VBUS Sensing

I'm trying to get the CubeMX generated sample CDC application working on STM32l475VG IoT board. By following a document from ST Community, I was able to get the clock configuration right and the CDC ...
0
votes
0answers
527 views

Stm32 and FREERTOS

I am a newbie to the embedded world I write this example to learn to programme; I have this problem: I wrote this code but I don't understand it. I have this following situation: I have two Threads "...
-1
votes
1answer
515 views

STM32L0 GPIO Interrupt problem

I am trying to blink the led(PA5) when PC13 Button is clicked. But it doesnot work. main.c ...
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 ...