Cortex M0 tickless

mkochanowski wrote on Monday, July 29, 2013:

I am adding some support for Energy Micro chips, but I have problem with Cortex M0, because available files in portable folder don’t support tickless idle. Can you help me?

rtel wrote on Monday, July 29, 2013:

I’m not sure that the EM M0 parts have enough RAM to run many tasks.

The first thing to check would be if the same scheme used on the M3 can be used on the M0.  Specifically regarding the way the core is brought out of the sleep mode.  If the M0 can be brought out of a sleep mode by an interrupt even when interrupts are globally disabled (which without actually checking I would guess it could as this is how the other Cortex-M parts work) then it should be simple enough to just copy the M3 (and M4) implementation into the M0 port layer.

We can walk through that here if you want, although I haven’t tried it myself so it would be a case of discussing things here, then you trying it and reporting back before moving onto the next step.


mkochanowski wrote on Tuesday, July 30, 2013:

Ok thanks, with slight changes it works.