I replaced the infinite loop in the idle task with "wfi" instruction. Theoretically this should put the processor to sleep until the next systick interrupt and this will save energy. I said theoretically because it needs some setup but it seems to work out of the box so I will keep it as an option.
I also uploaded the RAM memory map.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Since this is a proof of concept I will probably not spend too much time on this. I just noticed some stability issues with the "janitor idle task" so I reverted to an infinite loop until I re-write.
Are you sure? yes | no
Wfi save very little power on regular M0, but it is still better than nothing.
Are you sure? yes | no