STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

keil v5: assign member variables when creating C++ class object go wrong, after new operator all assignments are not what I set.

​after executing constructors:m_Handle and bbb both with int type are not what I write, it seem it's memory alignment problem but all related class has 32bits int type member variables.And I define g_pointer=(int*)m_Handle, the address  g_pointer sav...

0693W00000VOrhKQAT.png 0693W00000VOrhUQAT.png

STM32F411CE hardware timer in encoder mode won't increment

I'm using a STM32F411CE on a blackpill dev board with a second connected as a BMP debugger.I'm attempting to use the hardware timer quadrature encoder support and having absolutely no luck. I've followed the guidance in both the application note AN40...

TOG435 by Associate II
  • 1435 Views
  • 7 replies
  • 0 kudos

Timer PWM: Get State of PWM

Hello,I am planning to use the PWM feature in the timer (PWM Generation CH1). I want to send that PWM signal to an external device and am doing preliminary testing on the code. This PWM duty cycle changes based on the press of a button. I want to ver...

KMew by Senior III
  • 778 Views
  • 3 replies
  • 0 kudos

Programing FLASH in a STM32G030C8T6 throubles

Debuging the function when try thisHAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD, (uint32_t) 0x08001000, DATA_64)get in FLAH->SR = 8, its the PROGERR bit, i unlock the flash before, below part of codeHAL_FLASH_Unlock(); if (HAL_FLASH_Program(FLASH_T...

woutnme by Associate II
  • 656 Views
  • 1 replies
  • 0 kudos

Timeout on usart2 with DMA

Hi everybody,I'm using a STM32L476RG. I use the usart2 to transmit/receive frames from an external sensor. The reception is working with DMA1 channel6 (I use Transfer complete and idle line interrupts), and it works very well.I'd like to add a timeou...

fab04 by Associate II
  • 911 Views
  • 4 replies
  • 0 kudos