User Activity

This is probably a *** question, but I was wondering if there is a difference in performance between the following C statements given b is a standard boolean:bool b = false; //... if (b == false) //... if (!b) //...Will gcc in STM32 Cube IDE translat...
I have a timer (TIM15) setup in trigger slave mode which uses CH1 for edge detect, and output compare on CH2. I have it working nicely to have the output low during the initial delay until the CNT reaches autoreload ARR. Then the output goes high as ...
If you put an MCU in sleep mode with WFI, such as the STM32L452, you are supposed to suspend the SysTick and resume it after. Usually this is done in the main thread context. However, when you have an interrupt, I believe the next instruction will be...
I'm developing a board with an STM32L452 and would like to find out if I can improve power consumption while it remains connected via USB (as a device). I've tried putting the device to sleep using the following code: while (1) { // ... do stuff HA...
I'm trying to get multiple timers with interrupts working on an STM32L462 using the provided HAL libraries in CubeIDE 1.14, but every time the chip comes out of reset, it crashes after starting the second timer. Here is the relevant code:  int main(v...