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.

Filter by
Sorted by
Tagged with
0
votes
0answers
40 views

STM32CUBEIDE Clock configuration for USART

My MCU is STM32F072C8T7 and I am using the STM32CUBEIDE to initialize the peripherals and the clock configuration. In the clock configuration option (attached below), I can see the clock settings ...
-1
votes
0answers
25 views

How to calculate initial SOC in coulomb counting method

I am trying to estimate SOC of li-ion battery by using coulomb counting method.Estimating SOC by by coulomb counting method requires initial soc and integration of discharge current divided by ...
0
votes
1answer
34 views

Connect STM32F103 to MPU9250 over I2C with HAL (ERROR)

my experience in programming MCU is only Arduino (also STM32F103 over Arduino) I have now started to use the STM32CUBEIDE and an ST-Link V2 to program my STM32f103. I have tried the functions: ...
0
votes
2answers
78 views

Internally Pulled-Up signal on STM32 interrupt pin? [closed]

I used 2 pins of STM32F103C8T6 as button interrupt which is both located on GPIOA port and 12 & 15 pins. the code compiled and loaded to the board successfully using STM32cubeIDE. One of the input ...
0
votes
0answers
33 views

stm32 SPI and UART not working together

I am using an stm32f042k6 - Nucleo Board. I am using SPI and UART in non - blocking mode initialized through Cube-MX. I am trying to interface an RPI through SPI1 and a BMS through USART1. SPI1 is ...
0
votes
1answer
42 views

STM32 DAC Trigger

I am Trying to use the DAC output on my STM32L053R8 NUCLEO Board. I generate the corresponding Sin-Wave values to set the DAC Values like this. ...
1
vote
1answer
95 views

stm32 which timer and DMA channel should I use?

I am trying to control two lines of digital LEDs (WS2812b) with my STM32F103 using Timers with DMA and PWM. LED strips data lines are connected to PB5 and ...
0
votes
0answers
62 views

Shutdown mode on stm32 consuming a lot of power

I am testing the demo code given in the directory STM32Cube\Repository\STM32Cube_FW_L4_V1.14.0\Projects\NUCLEO-L476RG\Examples\PWR for CubeMX. I am testing the code PWR_ModesSelection and am recording ...
1
vote
0answers
60 views

Mounting Problems SD Card and STM32F7 Discovery

I've got some problems with the FATFs library and the STM32F7 Series. I want to connect a SD-Card (32GB, SanDisk, FAT32) with the F746G-Discovery-Board to save some data on it. (at first .txt-Files, ...
0
votes
0answers
31 views

CubeMX doesn't create bluenrg_utils.c

In case someone already stumbled upon this issue I'd be glad about every advice. So I have an STM32 that is connected to a BlueNRG-MS and I set everything up using the CubeMX. There I select the ...
0
votes
1answer
67 views

How to debug a program using FTDI in STM32CubeIDE?

I want to debug a test project for my board the STM32F103C minimum systemboard, sometimes called the bluepill, I use linux so i downloaded the original STM32CubeIDE as .sh execute it and downloaded ...
0
votes
1answer
84 views

STM32F103 SPI Pinout Problem

I am currently working on a project with LoRaWAN technology using STM32F103C8T6 microcontroller. For LoRa I am using SPI in Full-Duplex Master mode (spi1 specifically) and in CubeIDE when you activate ...
1
vote
1answer
42 views

Changing clock speed of STM32F779II

I'm configuring the clock of the LCD which has a max clock of 30MHz as following. Plus I'm using the touch at I2C1, and USB at 48MHz. The clearing and painting an image to the LCD is slow, and it's ...
3
votes
2answers
488 views

FreeRTOS on STM32 - What API should be used: CMSIS-RTOS API (v1 or v2) or FreeRTOS API? [closed]

According to ST's user manual UM1722 "Developing wireless applications on STM32Cube with RTOS" there are two APIs available: Generic CMSIS-RTOS API (v1 or v2) FreeRTOS API The CMSIS-RTOS API ...
0
votes
1answer
127 views

Do I really need to learn how to use registers - Programming a microcontroller? [closed]

I have a curious question. Do I really need to learn how to use registers when I program a microcontroller? I have been using Arduino for a long time. I quit using Arduino and starting to use STM32 ...
0
votes
0answers
84 views

STM32 HSE clock is affected by LTDC_DE signal?

My STM32F429 project works fine before I added the LTDC module generated by CubeMx. After I added LTDC, the FMC interface began to lost data occasionally which was good before. I thought it may be ...
0
votes
1answer
64 views

Interfacing SD card with STM32F44

I'm using STM32F44VET6 controller(using cubemx code configurator), I need to interface a 64GB SD card,and this controller has SDIO pheripheral also But I'm confused how to choose interface type SPI ...
0
votes
0answers
13 views

how to receive broadcast from the slave in SMBus?

I am using SMBus to monitor the battery, and could get all info I need, but when battery broadcast some critical info to the host, how should I be able to receive it? From the manual of the battery: ...
0
votes
1answer
76 views

Where does STM32CubeMX generate AF GPIO initialization?

i was wondering where does CubeMX (when you export it to an IDE such as Atollic) generate GPIO initialization for alternate functions such as Timer capture pins, UART pin ect. (we are talking about ...
1
vote
1answer
79 views

STM32CubeMX not showing the resolution in ADC

I am trying to use ADC in stm32f103 micro-controller. I use STM32CubeMX to configure the ADC. Based on the videos I gave seen on YouTube, I must be able to configure the resolution of the ADC (8, 12 ...
0
votes
2answers
124 views

How to upgrade StdPeriph drivers for STM32F103 project [closed]

I have an old project which is built on using "StdPeriph drivers" for STM32F103 MCU and Keil environment. It uses various drivers for gpio, adc, can, dac, dma, i2c, spi, tim, uart etc. As these ...
0
votes
0answers
28 views

stm32CubeMX SMBus setup question

there are some terms in stm32cubeMX I do not understand how to set properly, I am using L476RG MCU, and read PMM240(power management board) with RRC2054-2 battery via SMBus. 1, in the manual it ...
0
votes
3answers
82 views

STM32F7 NVIC INQUIRY

I'm trying to connect the NVIC interrupt to handle a keyboard, nonetheless I'm having troubles becuase two keys are connected to the line0, which use the EXTI0_IRQHandler, I saw in the stm official ...
0
votes
0answers
90 views

SMBus is always busy after HAL_SMBUS_Master_Transmit_IT()

I'm using PMM240 power management board to control battery RRC-2054, and I have problem to use SMBus, please see the code I listed below, looks device is ready, but when you send something, it is ...
0
votes
1answer
52 views

stm32cubeMX difference between Gpio_output and Gpio_input [closed]

I will use L476RG to connect with a battery power board, battery board will use two Gpio ports to ONLY send out info, such as battery is full, battery is in charge, and so on, now the question is, in ...
0
votes
0answers
30 views

stm32cubeMX SMbus Listen Complete callback function

I am using PMM240 to manage RRC2054-2 battery, it is based on SMbus, I have questions about how to make sure the command is complete, I noticed there are library functions ...
0
votes
0answers
28 views

How to solve STM32CubeMX keil error?

I have installed keil v5 and installed STM32 package. When I start the STM32 project and add the Software components Here is the directory
1
vote
1answer
374 views

STM32CubeIDE HAL_Delay not working

I am trying to toggle the GPIO port 8 with: ...
0
votes
0answers
472 views

Cube IDE : Error: unknown type name 'HAL_StatusTypeDef'

I am taking code from a stm32f0 series and trying to convert it to a stm32l4 series dev kit. I have already changed the necessary addresses and include files that I needed to migrate, but I keep on ...
0
votes
1answer
80 views

Basic timer that doesn't work STM32L4

I'm trying to use timer2 in STM32L475 but it doesn't start firing the interrupt at all. I would like to configure the timer for a minute. ...
1
vote
1answer
341 views

Configuring STM32 timer as frequency counter

I am trying to configuring one of the timer inputs on a STM32 to behave as a frequency counter for an external signal. The STM32 datasheet describes a "input capture mode" in section 17.3.6 (page 342) ...
1
vote
1answer
86 views

RCC clock freq in STM32F103

If I select internal clock source to run my TIM3 in TM32F103 (TIMxCLK from RCC) as shown in the attached picture: CK_INT Then how to find out what is the freq of this clock? I am using External ...
2
votes
1answer
419 views

single or multiple interrupt handlers in stm32

I am coming from 8-bit world to 32-bit world specifically stm32f103. At present I am only doing study and discussion with my fellows to know the major differences in the two worlds and also to select ...
-1
votes
1answer
195 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 ...
0
votes
2answers
185 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
102 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
85 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
50 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
85 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
81 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
335 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
1answer
249 views
4
votes
3answers
637 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
86 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
184 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
238 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
108 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
104 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
108 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
2answers
295 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 ...