STM32CubeMX (MCUs)

Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM32CubeMX 6.15.0 released

We are pleased to announce that the version 6.15.0 of STM32CubeMX is available. What is new in 6.15.0: Enhanced microprocessor support: Added the STM32MP21-A35-TD, STM32MP21-M33-TD, STM32MP25-M33-TD, and STM32MP23-M33-TD trusted domains for the STM32...

CAN receiving HAL_CAN_ERROR_PARAM error????????

I have trying for two weeks but cant solve an error can you help me about the receive error.It is in stm32f4xx_hal_can.c at line 1136. The conditions given below;if ((hcan->State == HAL_CAN_STATE_READY) ||   (hcan->State == HAL_CAN_STATE_LISTEN...

gkema by Associate II
  • 758 Views
  • 1 replies
  • 0 kudos

How to stop properly Timer PWM generation (CH + CHN) ?

Hello!I work on 10KHz dual PWM (CH, CHN) generation with dead time implemented.In error handle I want to stop the timer, and now I do it like this:if(HAL_TIM_PWM_Stop(&htim8, TIM_CHANNEL_2) != HAL_OK) { //Error_Handler(); } //Stop channel xN if...

0690X00000BuYvHQAV.jpg 0690X00000BuYuxQAF.jpg 0690X00000BuYvbQAF.jpg 0690X00000BuYvWQAV.jpg
SFeje by Associate II
  • 6426 Views
  • 4 replies
  • 0 kudos

SPI Master/Slave (both STM32 controllers) communication errors

I'm using two STM32 controllers and the CubeMX-HAL. The two controllers can communicate trough SPI (STM32L476 as Master, STM32F410 as Slave).The master sends the data correctly (this has been proved with a logic analyzer), but the slave is receiving ...

beeran by Associate
  • 1414 Views
  • 6 replies
  • 0 kudos

Why the LSERDY FLag is not getting set in RCC_BDCR resistor??

HI,In my design, i am using stm32h7 micro controller. I am using RTC clock using LSE clock source.in LSE_READY_BIT was not set. How to debug the issue..I am generating the code from CubeMX. The LSE crystal was selected in Crystal/Ceramic Resonator. w...

Vel by Associate III
  • 877 Views
  • 2 replies
  • 0 kudos

Hard fault occur during first byte receive

I am trying to receive 16bit data(at once) through SPI and transmit 8 bit data through USART.clock frequency 16MHz. All initialization done using STM32CubeMX. and build was successful .but after writing following codes , control enters in Hard Fault ...

barmy by Associate II
  • 972 Views
  • 4 replies
  • 0 kudos

STM32 and Atollic: C++ possible?

Hello,We are currently evaluating a replacement solution for our current microcontroller. STM32 is currently one of the favorite contestants.The current software is written in C++ and uses alot of code that is pure C++, so no relation to the actual h...

JOF by Associate II
  • 1085 Views
  • 4 replies
  • 0 kudos