Questions tagged [stm32cubemx]

A C/C++ MCU configuration generation tool for STM32 products, from ST Microelectronics

116 questions
1
vote
1 answer

In STM32 CubeMX generated code what does ADC_IRQn refer to in the user code section comments?

Inside the [devicename]_it.c file generated by Cube MX there are multiple user code sections inside each IRQ handler such as below for the ADC_IRQHandler void ADC_IRQHandler(void) { /* USER CODE BEGIN ADC_IRQn 0 */ /* USER CODE END ADC_IRQn 0…
norlesh
  • 1,749
  • 11
  • 23
1
vote
2 answers

no audio data from PC send to STM32F4 audio class USB

I'm working in an audio project. We use stm32f407 like a USB audio device to get audio data from PC then send out by I2S module. We are using stm32f4 Discovery kit and STM32cubeMX. After generate code by following this video, i change nothing and…
1
vote
1 answer

Callback parameter in stm32 freeRTOS software timer

I'm trying to use a software timer with cubeMx integration of freeRTOS (basically, it's freeRTOS with a nearly transparent layer above). I thought I would be able to pass a pointer to a structure as timer parameter and getting it as a parameter in…
Julien
  • 846
  • 1
  • 7
  • 19
1
vote
0 answers

STM32F091Rc interfacing with external(I2C) RTC MCP79411

I am trying to interface STM32F091Rc with MCP79411 through i2c bus, i am able to get Unique ID from the chip(MCP79411) but not able to set or get RTC date and time from the chip. I am using CUBEMX to generate I2C initialization and other required…
1
vote
1 answer

STM32CubeMX is generating Makefiles with repeated C_SOURCES

I'm just starting to learn STM32 development (on Ubuntu 16.04). I've used STM32CubeMX to build a Makefile-based project. The generated Makefiles have repeated entries in C_SOURCES which (obviously) cause linking to fail because of duplicated…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
0
votes
1 answer

How to validate the pulse duration with the generated timer count?

I am working on a small project which utilizes STM32F411RE. I am applying input pulses at a frequency of 100 Hz and am also measuring the applied pulses using a scope. My aim is to initiate a General Purpose Timer counter upon the detection/rising…
0
votes
0 answers

Implement an SPI SD card reader to log data to a STM32H743ZI2 board through CubeMx and Simulink Embedded Coder Support Package for STM32

I am fairly new in the stm32 world and i am using a stm32h743ZI2 board in simulink for coding. Basically the board is connected to multiple sensors through I2C, SPI, CAN etc. And what I want to do is implement an SPI card reader to log the data…
0
votes
0 answers

To a path that does not exist, "No source file named..."\Scr/main.c" on TrueSTUDIO

I am studying STM32F407 with CubeMX and TrueSTUDIO. But when i make a project with CubeMX and turn it over to TrueSTUDIO and debug it, gdb refers to the main.c where I made the first project. No source file named C:\Users\cloud47\OneDrive -…
nunanunna
  • 1
  • 2
0
votes
1 answer

Importing an STM32CubeMX project with a newer version into an older version of STM32CubeIDE

I am using STM32CubeIDE (on Win10 OS), which is based on STM32CubeMX version '6.2.0'. I have a project configuration file (my_project.ioc) created with STM32CubeMX version '6.4.0'. When I try to import the project using the "STM32 Project from an…
yosi
  • 18
  • 5
0
votes
1 answer

Internal Temperature Sensor Reading of STM32 only updating after Reset

We are reading Internal Temperature Sensor reading of STM32-F410RB - NUCLEO 64 Board. Problem: Getting the reading of Temperature sensor every 1 second as programmed, but the same readings are got. Only when Reset is done, the Temperature Reading…
Naveen PS
  • 13
  • 5
0
votes
0 answers

Neovim with compiledb cant find standard library header file and "clang pp_file_not_found" but no problem whatsoever on its own

enter image description here (NOTE: I also use the COC.nvim alongside other plugins such as mason and treesitter. ) I was writing codes for the main.c file for STM32L432KC microcontroller and tried to include the standard library files, when i…
0
votes
0 answers

STM32F411RE: make other than EXTI0 interrupts working?

I'm trying to get an external interrupt from a digital input (GPI) at the STM32F411RE (using the Nucleo-F411RE). When doing this for PA0/EXTI0 in CubeMX, the generated code works well, whenever a rising edge is detected EXTI0_IRQHandler() is called…
Elmi
  • 5,899
  • 15
  • 72
  • 143
0
votes
0 answers

I need a counter 0 - 99 using two seven segments, and a push button to increase the counter by one

I need a counter to count between 0 - 99 using two 7 segments and a push buttons to increase the counter by 1 using HAL language in Keil uvision and cubeMX. I have to use EXTI for the button. When I write my code in the interrupt file it works only…
0
votes
0 answers

STM32CubeMX crushing for jdk file

I am having a problem running STM32cubeMX 5.3.0 on my Windows 11. My jdk version is 20 and the jri version is 1.8.0_361(recommended to run STM32CubeMX). So, when I have jdk in my system My STM32CubeMX crush, it dont want to start. In my cmd when my…
0
votes
0 answers

STM32WLE5 wakeup from STOP mode

I have STM32WLE5 series and I am trying to wake it up using hardware WKUP pin from STOP mode. That pin (PC13 = Wake-up 1 = PWR_WKUP2) is connected to my external button (automatically pulled down, button pulls it up). After wakeup I read logic level…
Foreen
  • 369
  • 2
  • 17