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.

53 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
4k views

UART reception problem when SysTick Interrupt is enabled

I'm using a STM32F411RE-Nucleo board and generating a project with Cube MX for System Workbench. The problem is that HAL_UART_Receive function doesn't receive input ...
2
votes
1answer
93 views

STM32 usart interface sends data but “128” is added to each sent byte

I'm using the newest version of stm32cubemx to config my hardware. I'm using a Waveshare STM32H743 dev board and it's completely healthy and uClinux works(I can easily communicate with it using that ...
2
votes
0answers
171 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- ...
2
votes
0answers
5k views

STM32F429 HAL library CAN_Transmit timeout

I'm having a bit of trouble with the ST32CubeF4 v1.13.0 example of a CAN network. I'm using an STM32F429 discovery board, but I have ported over the CAN network example from the STM324x9_EVAL board. I ...
1
vote
0answers
68 views

Debugger connection fails when using UART2 in DMA mode in Nucleo-401RE

I am trying to build a simple communication between my PC and a Nucleo-F401RE using UART over the USB connection. I am able to do this successfully using a “polling” or an “interrupt” configuration. ...
1
vote
0answers
861 views

STM32CubeIDE issues with CMSIS-DSP library files

I have been trying to add the Library file libarm_cortexM4lf_math.a in the Eclipse based STM32CubeIDE as shown in the pictures below. But the linker is not able to find the library, and drops the ...
1
vote
0answers
189 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 ...
1
vote
0answers
683 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 ...
1
vote
1answer
4k 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 ...
1
vote
0answers
522 views

interfacing tcs3200 color sensor with STM32f746zg

I want to interface TCS3200 color sensor with STM32f746ZG. Since the TCS3200 outputs a frequency based on the amount of light received, I need some way to count the number of pulses for different ...
1
vote
0answers
284 views

STM32F103 - CubeMx - MCU reboots with FreeRtos v9

I using a STM32F103 in my project and I generate the Keil project with Cube32MX with this firmware package for STM32F1 version 1.4.0. Today I update the Cube to version 4.23.0 and I migrate my ...
1
vote
0answers
2k views

Getting UART Overrun Error with HAL_UART_Transmit() vs HAL_UART_Transmit_IT()

On my main board I have a STM32F103ZET6 and I use HAL library V1.6 in order to program it.There is also a sensor board which is connected to my main board and this sensor sends me data through UART ...
1
vote
0answers
4k views

STM32 USB_CDC Firmware to autodetect by Linux

We are developing a custom board to control brushless DC motors. The board has STM32F405RGTx. We are now trying to make USB CDC communication work. We generated the code using STM32CubeMX. ...
1
vote
0answers
3k views

STM32 Shutting down debug session

I'm facing with a problem regarding debug session. When I start debug session, after the configuration of USART2 the debug session is closed. Keil message: Cannot access target. Shutting down ...
0
votes
0answers
19 views

Connection between STM32F446 and CODEC (PCM3060)

I have decided to connect an external crystal to the MCU (STM32F446RC) and then doing the following routing using STM32cubeMX UI. MCU to the CODEC using the I2S mode of the SPI peripheral: I am ...
0
votes
0answers
114 views

Keil Error: Not a genuine ST Device! Abort connection

I am using ST-link V2 for programming/ debugging my STM32F103C8t MCU using Keil. So the problem is that when I try to program the STM32 controller it shows a popup error Not a genuine ST Device! Abort ...
0
votes
0answers
21 views

Programming of STM32 with RFM95 LoRachip in Arduino IDE

I'd like to design a custom board around some STM32 chip, one of STMicro's mainstream MCUs such as the STM32F103C8, which is used for the blue pill should do. I am now wondering: Can I manage to get ...
0
votes
1answer
53 views

STM32 - How to trigger a DMA transfer via hardware timer, while CPU is in SLEEP mode?

I'm trying to set up a simple project that does the following: Enter sleep mode and in the main loop, it waits for interrupt - __WFI(). Transmits data from a buffer[4] to the PC, via UART. The ...
0
votes
1answer
82 views

Debugging STM32 with OpenOCD, STM32 for VSCODE won't work or flash, Configuration issue maybe?

First and for most I googled a lot and Its been a week of searching with no solution at all. Please bare with me! I tried to add all necessary info! Please request more If you need. My problem is: I ...
0
votes
0answers
26 views

Problems with STM32F746G-Discovery using another display

I encountered a problem during the configuration of a STM32F746G-DISCO Board for the use with another display. Initial situation: I unsoldered the connection between the STM32F7 Board and the default ...
0
votes
0answers
112 views

Could a china ST-Link have bricked my STM32F4?

I have built several boards with STM32F405 on them and I have been flashing them with a cheap china ST-Link knock-off from eBay which worked perfectly for many months now. However, I now noticed, that ...
0
votes
0answers
57 views

stm32l431 Read multiple channels ADC

I am trying to read from 2 channels of ADC 1, I have followed other tutorials and tried but I am not getting any success. I can read from one channel but not the other. ADC configuration: This is my ...
0
votes
1answer
91 views

Does USB host mode on an STM32 require VBUS sensing?

I’ve been using an STM32F413ZH Nucleo board as a USB host device. All is working well. However, I’m in the process of designing my own PCB based on the Nucleo design, but using a full-size USB Type A ...
0
votes
0answers
51 views

STM Nucleo-F722ZE UART weirdness when setting the baud rate (it needs to be set 3 times larger)

For the past days I've been trying to communicate via UART between an Arduino and an STM32 Nucleo F722ZE board. After much troubleshooting with the oscilloscope I realized that when I set a baud rate ...
0
votes
0answers
101 views

Setting up UART with STM32L4RGTx

The prompt here is to debug the issue with UART setup on the STM32 chipset. I've followed a couple of online blogs to understand and setup the UART interface. I want to transmit (only) a dataframe (...
0
votes
0answers
23 views

Connect Nucleo ST-LINK to another Nulceo Board Target

I am having issues displaying serial data, when I connect a Nucleo ST-link to another Target. My Pins Connections are as follows: ST-Link -> Nucleo Board VCC -> From JP1 of ST-link to 3.3V ...
0
votes
0answers
74 views

Why do I get Hard Fault error when I use RTOS with STM32?

I have created a library for ILI ILI9341 LCD that can do lot's of stuffs. It's made for STM32 and it can do: Plots Number pad Icons 16 bit Windows 3.11 Question dialog Frames But when I try to load ...
0
votes
0answers
151 views

Proteus doesn't see the code of my .elf file

I created a project for stm32 in cubemx then the project was edited in system workbench for stm32. I got .elf file for an stm32f103c6 microcontroller and I can't run it. I load the file in the ...
0
votes
0answers
36 views

Remote Debugging problem on CUBE MX IDE via ST LINK

Are there any way to debug my codes which is located on my remote desktop via ST-LINK which connected to my local notebook's USB port ?? How to do configure settings on local and remote PCs and CUBEMX ...
0
votes
0answers
281 views

ADC Triggering with TIM3 TRGO running in PWM mode in STM32F446

I have been trying to trigger an ADC using TIM6 with TRGO signal in STM32F446RE board. I am unable to do it. I have used CubeMX initialization and have been trying to use the HAL libraries for ...
0
votes
0answers
40 views

MCU Package of STM32f1 series for stm32CubeMX

I am trying to download MCU Package of STM32f1 series for stm32CubeMX from the following link: https://www.st.com/en/embedded-software/stm32cubef1.html But the given link sends this messege that the ...
0
votes
1answer
184 views

STM32f103 NRF24L01 Communication Problem

I am trying to apply communication between two stm32f103c8t6 with NRF24L01 modules. And using uart with usb to ttl module to reach putty terminal. I am using KEIL and for generating code CUBEMX. Here ...
0
votes
0answers
90 views

ADC value over UART (STM32)

I am trying to transfer ADC value over UART, every 1 second TIM2 elapse continuously (STM32F103). After, restart it sends data only once and then stops working. When debugging i see that ADC gets ...
0
votes
1answer
37 views

Atollic's TrueSTUDIO IDE / SDK displays unbelievable variable values

While debugging with Atollic's TrueSTUDIO IDE / SDK, variables are reported to contain unbelievable values. But, if the code is left to run, the code behaves as if the variable values are correct. ...
0
votes
1answer
40 views

Initialize IWDG with two difference handles

I am implementing a watchdog in my project, where i am using a IWDG in STM32F4 series controller. I am trying to initialize the watchdog twice with different handles, since it is implemented in two ...
0
votes
1answer
81 views

Embedded Development Support plugin does not generate CMake files in CLion on Ubuntu 19.10

I can build, run and debug my old projects. But when I try to import new STM32CubeMX project, nothing happens. No CMakeLists.txt file created. Pressing '...
0
votes
0answers
415 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
0answers
385 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 ...
0
votes
0answers
47 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
0answers
159 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
3answers
137 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
1answer
353 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
0answers
45 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
0
votes
0answers
1k 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
1k 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 ...
0
votes
1answer
3k 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
0answers
506 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
3k 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
812 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 "...
0
votes
0answers
785 views

STMF4 ADC conversion seems slow

I'm using an STM32F4 to do some 12 bit conversions. I see from here that I should have hopes of getting somewhere around 1us per conversion, and since I'm doing 2 conversions, I would expect ...