This message was posted on behalf of Intel Corporation
Thank you for your interests in our Intel products.
What do you by "sleep mode doesn't work". Do you get a compilation error? a sketch upload fail?
I'd suggest take a look at the CuriePowerManagement library on Arduino repository.
Hope this helps.