Can support up to 255 banks of external memory, with minor sketch changes.

NEW: Supports moving the stack to external memory. You can even specify how much.

NEW: XMEM2 now supports real preemptive multitasking!

On the QuadRam, 16 tasks are possible.Each task has it's own stack, and malloc arena.Tasks are switched in round-robin order.The shared stack/malloc arena area is 32KB and you can split it how ever you wish.Best of all *NO RTOS OVERHEAD*

Thanks for posting the Xmem2. I'm trying to make use of a Rugged Circuits QuadRam board to add memory to my mega 2560 project.

I've downloaded Xmem2 from github, and placed it in my (apple mac) Arduino/libraries folder. Then I got testMultiTask and opened Arduino (1.5.2), but when I compile the sketch, I get a series of errors;

testMultitask.ino: In function 'void task_B()':testMultitask:70: error: 'Sleep' is not a member of 'xmem'testMultitask.ino: In function 'void setup()':testMultitask:112: error: 'SetupTask' is not a member of 'xmem'...

So, looking at the header file, I defined USE_MULTIPLE_APP_API( I don't actually need Multi tasking in my project,just extra ram space). But then I get the following error about redefinition of malloc & free;(BTW; I get this with Andy Browns Xmem too...)