We have developed a Sigfox circuit board using the SAMD21 and a sigfox module. Although this is a standalone board we are using the Arduino bootloader (the Arduino M0 using the SAMD21 chip) as some of our libraries were previously developed for the ATMEGA328 and we want to reuse those.
We would like to get the power consumption down very low (the application note says that with the RTC we should get 10uA in sleep) so we can run off battery. Currently, this is higher and is because of the way the arduino boot loader initialises some of the registers. We have made some clock and peripheral adjustments but are not getting to the level of power expected.
We are looking for someone who has had experience with SAMD21 who can give us a block of code which turns off all the unnecessary clocks/ peripherals which we can embed in our code. We need the RTC in sleep mode to wake up the chip periodically to send the sigfox message and we need an external interrupt which when it fires we increment a counter.
If you would be able to do this please let me know. We can discuss further. Please indicate if you have experience with the SAMD21 specifically and with the low power sleep mode.
To verify the project we would take the code and using the Arduino IDE flash the firmware to our custom PCB. We would then measure the current using in sleep mode.
I have done such project and I am familiar for SAMD21 and python. I have SAMD21 boards and I can finish it asap. I am all ready for hardware and software. Best Regards.