ASF Working Examples for the Atmel SAM4S Xplained Pro


I recently tested some (most) of them with ASFv3.31.0 and they seem to work fine. I’ve also added more examples here.



While working with the SAM4s Xplained Pro I realized the scarcity of documentation available. Atmel examples, when available, would sometimes work, and some others not. Either because  instructions would be missing steps (this happened with the USB CDC), or just because. In any case, this is a set of working examples that might save you from a headache. They were tested with ASF v3.22.. In the downloads you’ll find  a document with the demo’s source code, as well as the steps required to incorporate the functionality into a ASF project (I tested all the demos starting with the Starter Kit Demo – SAM4s Xplained Pro as template). Sample code includes ADC, PWM, GPIO, USART, TWI, SysTick, FatFS, RTC, USB CDC, SSD1306, and Buttons. For more example







By |2018-02-04T05:57:51+00:00December 3rd, 2014|Prototyping, SAM4S Xpro|4 Comments


  1. WW EE February 25, 2015 at 11:30 pm - Reply

    COOL! Thanks. The original doc fully lacks.

  2. Panneer Manoj August 23, 2017 at 4:18 pm - Reply

    Your videos are amazing… Can you help me to control the servo motor using atmel sam4s xplained pro?

    • Rafael Roman Otero August 27, 2017 at 3:49 am - Reply

      Anything in particular that isn’t working?

  3. Abhishek Acharya October 26, 2018 at 5:12 pm - Reply

    Thanks Brother, You saved my day!!

Leave A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.