Getting started with Atmel SAM4S-EK2

Handling errors

Here are some ways to handle error that appear when you try to build for project.

  • Ensure that all required drivers have been add using ASF wizard.
  • Check the asf.h file whether all the header files are included.
  • Sometimes we have to check where symbols used in the project have been added in the project properties. For this, go to Project > Properties > Toolchain > ARM/GNU Compiler > Symbols.Try checking in the Directories tab also.
  • For using certain function, we have to enable them in their respective conf file.
  • Functions that have have a pointer as a parameter, the value pointed by that pointer has to be set to 0 using memset.