STM32 MCUs Embedded software

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

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
  • 84 Views
  • 2 replies
  • 0 kudos

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 Associate III
  • 83 Views
  • 5 replies
  • 2 kudos

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
  • 247 Views
  • 27 replies
  • 2 kudos

Resolved! Unexpected output of a function

Hello. I have a problem with my code. I's supposed to send to the computer "00 82 00 00 01 01", however it sends "00 82 00 00 00 00". It can happen that the last four bytes are garbled. I've tested by printing pretty much up to the HAL functions, yet...

Adar71 by Visitor
  • 46 Views
  • 1 replies
  • 2 kudos

STM32G0B1 USB-PD

Hi, I am using the STM32G0B1CBTX with STM32CubeMX ver 6.13.0 to produce a USB-PD DRP application. So far, I managed to implement a USB 2.0 Host as this is also needed. When trying to add the USB-PD DRP following ST-s tutorial BUT omitting the inclusi...

DDeba.1 by Associate III
  • 65 Views
  • 1 replies
  • 0 kudos

Resolved! STM32H753: Receiving Messages via UART

I'm working with an STM32H753 MCU and trying to receive messages from a PC via UART to implement a simple state machine. The idea is that the MCU should switch to different states based on the received message.Initially, I attempted to use fgets(mess...