User Activity

Hi,Exiting from STOP mode based on RTC Alarm A works nice with ALRAIE (Alarm A interrupt enabled) and ALRAE (Alarm A enabled). Do I understand this mechanism correctly, that I've to have both bits enabled?  Having only ALRAE (Alarm A enabled) isn't e...
Hi,I was expecting to get x = 23 after following code: uint8_t x ; char* y = "23" ; sscanf ( y , SCNu8 , &x ) ;but I got x = 32. 
What is the best way to use sscanf with uint8_t?When I use: uint8_t x ; char* y = "23" ; sscanf ( y , "%hhu" , &x ) ;I stuck at: void HardFault_Handler(void) I found following workaround that works: uint16_t x1 ; uint8_t x2 ; const char* y ...
Hi,I'm developing STM32G031 UARTs using registers and the CMSIS library. I’m using NUCLEO-G031K8 UART2 over an embedded STLINK/V3 on board and UART1 over an external CP210x UAR/USB adapter.  I have a problem receiving data to UART1. No problem to rec...
Hi,I 'm trying to code TIM to count 5s for me using CMSIS. Using the code snippet provided below I got IRQ immediately.RCC->APBENR2 |= RCC_APBENR2_TIM16EN ; // Enable TIM16 clock TIM16->PSC = 16000 - 1 ; // 1 ms TIM16->ARR = 10000 - 1 ; // 10 s = 100...