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.

4
votes
3answers
283 views
+100

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
61 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
48 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
100 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
39 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
74 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
39 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

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
31 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
121 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
34 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
85 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
80 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
76 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
73 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
64 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
149 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
77 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
40 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
90 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
241 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 ...
0
votes
0answers
44 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
142 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
106 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
44 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
57 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
272 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
441 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
161 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
213 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
329 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
1k 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
402 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
219 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
972 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
455 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
440 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 ...
0
votes
1answer
356 views

Cannot read accelerometer values from MPU6050 Interfaced with STM32F303RE

I m working on a "self-balancing robot" with STM32F303RE.I m using STCubeMX to generate the MCU configuration code and then I added the main() to get the values from MPU6050 from the following code : ...
0
votes
0answers
477 views

MPU6050 Interfacing with STM32

I m trying to interface MPU6050 Gryo+Accelerometer to STM32F303RE but I can't figure out how to program it using the HAL Drivers and CubeMx.Can some suggest some literature or material which I can ...
0
votes
1answer
720 views

STM32F4 HSE clock frequency without HSE

I am using an STM32F446ZE Nucleo Board which does NOT have an external HSE clock. From CubeMX I set the clock input from the HSE and after in the clock configuration I set the system clock to 180MHz. ...
1
vote
1answer
517 views

STM32L1xx HAL_GPIO_Init Problem

I am developing an application for a University project on my STM32L1DISCO board with the STM32L152RC MCU. I have configured the pins and generated the init code via STM32CubeMX. I am using Atollic ...
3
votes
1answer
140 views

Can't run code in Keil for STM32L433RCT6P on NUCLEO-L433RC-P

Recently at Embedded World 2018 in Nuremberg I got, for free, NUCLEO-L433RC-P with STM32L433RCT6P chip onboard. I want to broaden my knowledge in STM32 chips. Before, I did simple stuf on STM32F4. ...
0
votes
0answers
51 views

Flashing STM32L0 - QSTlink2

When I am trying to flash STM32L073RZ using QStlink2 with .bin file which was built in Eclipse, QStlink throws following errors: ...
2
votes
1answer
2k views

SD card block read/write issue in SPI mode. (STM32) (CMD17, CMD24)

Good day, I am using an STM32F103C8T6 and trying to interface an SD card (SanDisk Ultra 16GB MicroSD HC card) with it. I know that the card works fine because I can read, write using a PC and it also ...
1
vote
1answer
139 views

Simple measuring Ethernet throughput

I have STM3220G-EVAL board (STM32F207IG MCU). I'd like to measure (approximately) its actual Ethernet throughput (board <-> Windows PC). I have CubeMX sources. There are several examples (TCP, ...
0
votes
1answer
462 views

How to get a Timer started without interrupt?

I use an STM32F103c8t6. What I want is to measure time between several statements. I found out HAL_getTick does not work since the resolution is too small (1 ms). However, I cannot seem to initialize ...