Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/Atmel/ATSAM4S4B/TC0/SMMR2#0x0
Stepper Motor Mode Register (channel = 2)
Gray Count Enable
Down Count
https://github.com/cmsis-svd/cmsis-svd-data