2017-03-07 08:03 AM
Hello,
In my project I need to run Stop Mode on STM32F072, but also I would like to monitor CAN Bus and wake it up when some specific ID will be send. Is it possible ? I'm trying and it's not working ?
I did set up CAN Interrrupt and it's working. I did set up external Interrupt (line 6) and it works as a wakup source. I also wakup using RTC (EXTI LIne 17) which works fine too. But I can't wakup my uC using CAN (CEC CAN Interrupt). Reference Manual (RM0091) says that CEC and CAN global interrupts are combined with EXTI Line 27 but it deosn't work.
Can anyone confirm that this is possible and I'm making something wrong, or maybe it can't be done that way ?
#stm32f072 #can-bus2017-03-07 03:30 PM
Stop mode stops all clocks, including CAN clock, so it can't receive.
You can try to go for sleep mode with selectively disabling as many peripherals' clocks through RCC_AxxxENR as possible to achieve low consumption.
JW