Including exception.S into a Atmel Studio project

Hi! I have created a new project using Atmel Studio 6 for the microcontroller AVR32UC3C1512. I could not take an old “demo” project, because I need the new features for queues which are available in FreeRTOS 7.5.3. Now when compiling the project and also using the “intc.c” and “intc.h” – driver from the ASF of Atmel, I get compilation errors like C:/src/ASF/avr32/drivers/intc/intc.c(284,1): undefined reference to `_int0′ How do I include the file called “exception.S” the correct way into a newly created project using Atmel Studio 6? Thanks for any hint, Dennis

Including exception.S into a Atmel Studio project

While I am doing a lot of Atmel Studio work on SAMD20, SAM3 and SAM4, Atmel have done the AVR32 stuff themselves, so I don’t know the answer to your question. However, if want to update an old project to the latest FreeRTOS version you should just be able to copy the latest FreeRTOS files over your existing ones (provided your original files are not older than version 5). Obviously, take a backup of your original files first. Regards.

Including exception.S into a Atmel Studio project

Hi Richard! Thank you for your fast answer, but the hint did not help me out. I created a new “Example project” within Atmel Studio and simply replaced all the files within the “freertos”-folder with the ones from the new 7.5.3-version (the example was built with 7.0.0). While doing so, I get exactly the same error as in my try to do it before on my own as decribed in my post above. Therefore I cannot upgrade or update an old example project to the newest release of FreeRTOS. While going on searching for the source of this problem, I got it compiled with exchanging everything, but the “portable/gcc” subfolder. So I updated every file of FreeRTOS from version 7.0.0 to 7.5.3, except
  • port.c
  • portmacro.h
  • exception.S
while there was still one thing to change within port.c: line 247 contains a call to vTaskIncrementTick(); which had to be changed to xTaskIncrementTick(); Got it compiled now, but not consistently to 7.5.3, since the three files mentioned are still in version 7.0.0 – the ones of the original example project. Will this break my system? Dennis

Including exception.S into a Atmel Studio project

Ah, actually, the AVR32 port layer in FreeRTOS is different to that in Atmel Studio as (as per my previous comment) the AVR32 port was continued by Atmel themselves whereas that in the download targets the original ES revision of the AVR32 silicon. I would expect to be able to update the core files (those in FreeRTOS/Source) from the 7.5.3, but not the port layer files. Regards.

Including exception.S into a Atmel Studio project

Sorry, Richard, I changed my posting above after you answered already… I did not expect you answering that fast!!!! So my question is answered then? It’s safe to change everything but the port layer files? Thanks, Dennis

Including exception.S into a Atmel Studio project

I would say ‘almost definitely’ it is ok, which is a little short of a ‘yes’. Try it. Regards.