User Activity

I set up EXTI so I get interupt on the correct pin GPIO B.6. But I cannot get it to wake up from stop1 mode. I call WFI and RTC wakes upp the processor regularly but EXTI will not. Reading the reference manuel it says any interupt should wake the pro...
The processor never wakes up from STOP1 mode and I do not know why. I know RTC clock is running#define RTC_ASYNCH_PREDIV 0x7F #define RTC_SYNCH_PREDIV 0xF9 /* 32Khz/128 - 1 */ void Sleep_Init(void) { HW_RTC_Init(); __HAL_RCC_PWR_CLK_ENABLE(...
I have a problem that the PWM timer stops working randomly, maybe once every 2 weeks on 4 prototoypes. The PWM signal is just high instead of the frequency it should do. I have added reset and recover but nothing seems to fix. Since I am not able to ...
I try to erase a page using this code:bool EraseFlash() { uint32_t FirstPage = 0, NbOfPages = 0; uint32_t PageError = 0; int i; FLASH_EraseInitTypeDef EraseInitStruct = {0};   HAL_FLASH_Unlock(); FirstPage = GetPage(FLASH_START);   /* Get the ...
Kudos from