Need help getting started.

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I cant get any program running on my sam e70 xplained without the following bug. This happens always after adding the basic drivers that the asf wizard recommends, merging the code and deleting any of the main.c files that generate. I also tried replacing the bugged file with one from a example project which didnt work either. Can someone please help me finding the issue.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

that second line needs to be investigated, you usually can not nest a function declaration with in an other.

Google says:

You cannot define a function within another function in standard C. You can declare a function inside of a function, but it's not a nested function. gcc has a language extension that allows nested functions. They are nonstandard, and as such are entirely compiler-dependent.

 

Good luck

Jim