Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Including exception.S into a Atmel Studio project

Posted by trilogik on November 1, 2013

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

Posted by richardbarry on November 1, 2013

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

Posted by trilogik on November 4, 2013

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

Posted by richardbarry on November 4, 2013

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

Posted by trilogik on November 4, 2013

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

Posted by richardbarry on November 4, 2013

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

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists