<SOLVED> missing library "sercom_interrupt.h

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

Hi everyone.

I was trying the sercom USART on samd21g18 with ASFWizard in atmel studio 7. The point is that when I try to build the solution it gave me this error:

Severity    Code    Description    Project    File    Line
Error        sercom_interrupt.h: No such file or directory

The sercom_interrupt.h is included by default in the asf.h when you add the sercom-uart module, but I couldn't find it in my installation of atmel studio 7. Is it a known bug? Do I have to manually download and compile sercom_interrupt.c and the relative header?

Thank you for the answer. Bye.

 

edit. Uninstalling and then reinstalling Atmel Studio 7 did the trick, now it doesn't include sercom_interrupt.h and everything works fine, thanks for your support

Last Edited: Sun. Nov 15, 2015 - 04:20 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Assuming you mean USART, I used the AFWizard to add SERCOM USART.  That added the sercom_interrupt.h file.

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

Yes, I meant USART. I also used the ASFWizard to add SERCOM USART, but when I try to build it tells me that sercom_interrupt.h can't be found sad

I'm reinstalling AtmelStudio 7 hoping that it fixes this bug. Otherwise it would be a problem, because samd21 is a complex device and is hard to program it without the ASF.

If everything fail I will manually download and link the missing library, but I prefer to avoid this metod.

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

Did you load the callback version of SERCOM USART?

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

No, I loaded the polled version. After uninstalling and reinstalling Atmel Studio 7 loading SERCOM USART polled doesn't include anymore sercom_interrupts.h and everythings seems fine. I'm doing some other test to be sure that everything's working, then I will call this a closed thread.

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

Ok, I've done testing it, and seems that Uninstalling and then reinstalling Atmel Studio 7 did the trick, now it doesn't include sercom_interrupt.h and everything works fine.