Hi everyone !
I'm currently working on a project using a timer interruption i found few years ago. My code is working fine on an arduino m0 or M0 pro, bu i tried to compile it on an Arduino DUE, and this error appeared :
SYSCTRL->XOSC32K.bit.RUNSTDBY = 1;
(I'm using SYSCTRL on this line of the timer :
SYSCTRL->XOSC32K.bit.RUNSTDBY = 1;
I pretty sure this is a hardware difference between the M0/M0pro and the Arduino DUE which is causing this issue, but i have no idea how to resolve it....
Thank you in advance for your help !
StanSmooth:
My code is working fine on an arduino m0 or M0 pro, bu i tried to compile it on an Arduino DUE, and this error appeared :
SYSCTRL->XOSC32K.bit.RUNSTDBY = 1;
That's not an error message, it's a program line. Please post the error.
Hello,
the error :
exit status 1
'SYSCTRL' was not declared in this scope
The Duo uses a SAM3X processor. The M0 uses a SAMD21. They don’t have identical architectures, resources, peripherals, etc. You need to understand how the existing application uses the SAM3X’s resources and write code for similar functionality on the SAMD21.