-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWU_IRQHandler not working for STM8S #164
Comments
…duino STM8 Framework. tenbaht/sduino#164 AWU_IRQHandler not working for STM8S We will use Platformio scripting to apply patched cores/arduino/stm8s_it.h file.
…g for STM8S tenbaht/sduino#164 AWU_IRQHandler not working for STM8S
Hi @wmarkow I'm working on same to use STM8S103F3P6 halt for ultra low power consumption . Can you please share your working code how did you implement attaching interrupt to pin , etc ? |
Hi @g1ra , my code is available here: To make it happen I needed to patch the STM8 Arduino core, see this file: |
…duino STM8 Framework. tenbaht/sduino#164 AWU_IRQHandler not working for STM8S We will use Platformio scripting to apply patched cores/arduino/stm8s_it.h file.
…g for STM8S tenbaht/sduino#164 AWU_IRQHandler not working for STM8S
I wanted to use the active halt power save mode together with AWU unit to wake up.
Basically the concept of AWU works but the processor gets restarted every time the AWU interrupt occur. Expected behavior is that the procesdor should continue its execution from the place where HALT instruction has been called.
Root cause: it is not possible to correctly set the AWU_IRQHandler to some specific method. This code doesn't work:
because the AWU_IRQHandler is commented out in the stm8s_it.h file:
In this way the AWU_IRQHandler is set to zero and the processor gets restarted on this interrupt.
When I modify the file and uncomment the line
then everything works fine. Is there any particular reason why the interrupt handler is commented out?
The text was updated successfully, but these errors were encountered: