STM32 MCUs Embedded software

Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Atomic variable for scheduler question

I traditionally use a volatile type for my schedulers. Very simple like so volatile uint8_t myflag; uint8_t ticks; void Func(void){ ++ticks; if(!(ticks % 5)){ myflag = true; } } void User(void){ if(myflag) { myflag = false; //DO ...

Carl_G by Senior III
  • 1953 Views
  • 28 replies
  • 3 kudos

Resolved! TIM still running in STOP

I am using TIM2 to create PWMs for LEDs. When I enter STOP mode I expect the PWM to stop. Yet it does not. From the manual TIM do not have wakeup capability from stop mode. So they should not be requesting the HSI to operate.What could possibly cause...

Carl_G by Senior III
  • 399 Views
  • 3 replies
  • 0 kudos

STL Library flash test error configuration

Hi, my current issue is that after implement Self test library for a stm32h5 the basic things like STL_SCH_Init() works fine but when i try to run the flash test the STL_SCH_ConfigureFlash fails, the status says STL_ERROR.How i run the test:I define ...

juanmilo by Associate
  • 407 Views
  • 2 replies
  • 1 kudos

HAL L4 RTC Bug Report

I'm currently using a STM32L433RCT3 and the L4 HAL library. My goal was to read back a configured RTC alarm, increment it, and restart the alarm. I created a:RTC_AlarmTypeDef sAlarm;I read back the RTC alarm using,HAL_RTC_GetAlarm(&hrtc,&sAlarm,RTC_A...

MVeen.1 by Associate II
  • 387 Views
  • 2 replies
  • 0 kudos

Resolved! STM32H7 USBX hub class flaky - Bug???

There seems to be a bug when using the USBX hub class.  Sometimes it works, but most often it does not.  The problem appears to be with file: ux_host_stack_enum_thread_entry.c.  The code:  VOID _ux_host_stack_enum_thread_entry(ULONG input) { UX...

matt-crc by Senior II
  • 572 Views
  • 7 replies
  • 3 kudos

STM32F103RBT6 USB problem

Hello, I have a problem with communication between my PC and MCU. I have connected my project according to this diagram (with external 12MHz oscillator):  I attempted to connecting the 1,5k GPIO pin (PA10) to control the pull up. Then I connected a 1...

radekklepal99_0-1741793253915.png radekklepal99_0-1741794688405.png radekklepal99_1-1741794719699.png prtscr1.jpg