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

cannot compile the FreeRTOS example for AVR32

Posted by foxswiss on December 4, 2007
I tried to compile the demo for the avr32UC3 on the IAR compiler but i got the following erros:
Error[Pe020]: identifier "AVR32_PM_OSCCTRL0_MODE_CRYSTAL_G2" is undefined C:\carag_svn\embededsw\avr32\FreeRTOS\Demo\AVR32_UC3\DRIVERS\PM\pm.c 162
Error[Pe020]: identifier "AVR32_PM_OSCCTRL0_MODE_CRYSTAL_G3" is undefined
C:\carag_svn\embededsw\avr32\FreeRTOS\Demo\AVR32_UC3\DRIVERS\PM\pm.c 163
Error[Pe020]: identifier "AVR32_PM_OSCCTRL1_MODE_CRYSTAL_G2" is undefined
C:\carag_svn\embededsw\avr32\FreeRTOS\Demo\AVR32_UC3\DRIVERS\PM\pm.c 223
Error[Pe020]: identifier "AVR32_PM_OSCCTRL1_MODE_CRYSTAL_G3" is undefined
C:\carag_svn\embededsw\avr32\FreeRTOS\Demo\AVR32_UC3\DRIVERS\PM\pm.c 224
Error[Pe020]: identifier "AVR32_PM_OSCCTRL32_MODE_EXT_CLOCK" is undefined
C:\carag_svn\embededsw\avr32\FreeRTOS\Demo\AVR32_UC3\DRIVERS\PM\pm.c 278
Error[Pe020]: identifier "AVR32_PM_OSCCTRL32_MODE_CRYSTAL" is undefined
C:\carag_svn\embededsw\avr32\FreeRTOS\Demo\AVR32_UC3\DRIVERS\PM\pm.c 284

Do you have any idea on how i could solve this errors.
where should this things normaly be defined?

many thanks for your help.

greets
Marc

RE: cannot compile the FreeRTOS example for A

Posted by Jay on December 4, 2007
Those should be defined in your compiler. If IAR uses different names then you should add something to the top of the pm.c file that redefines the names as whatever IAR uses.

For example:
#define AVR32_PM_OSCCTRL32_MODE_CRYSTAL IAR_AVR32_PM_OSCCTRL32_MODE_CRYSTAL

That's a simple answer but maybe not the best. Maybe there is a header file with IAR that does this and all you need to do is included it in main.c. I don't know as I don't use this processor nor this compiler.

FWIW,
Jay

RE: cannot compile the FreeRTOS example for A

Posted by Richard on December 4, 2007
I had a similar issue at first when testing the port. Atmel then provided me with a separate .zip file that I unzipped into the IAR directory to update the library files. It should be that these files are included in the latest versions of the AVR32 compiler. Are you using the very latest version, or is there an upgrade available to you? It seems your library files need updating too.

Regards.

RE: cannot compile the FreeRTOS example for A

Posted by foxswiss on December 5, 2007
Hey Richard,

I'm using the evaluation version, as i just wanted to test the EVK1100. So i think that i'm using the newest one.
I future i'd like to use the avr32Studio so that i can debug the whole thing.

i now added following lines to pm.c (thanks jay)
#define AVR32_PM_OSCCTRL0_MODE_CRYSTAL_G2 0x00000006
#define AVR32_PM_OSCCTRL0_MODE_CRYSTAL_G3 0x00000007
#define AVR32_PM_OSCCTRL1_MODE_CRYSTAL_G2 0x00000006
#define AVR32_PM_OSCCTRL1_MODE_CRYSTAL_G3 0x00000007
#define AVR32_PM_OSCCTRL32_MODE_CRYSTAL 0x00000001
#define AVR32_PM_OSCCTRL32_MODE_EXT_CLOCK 0x00000000

i found them in another file, but i'm not shure if they are correct.

the project is now compiling without errors, but when i download the code to the AVK1100 the software seems to crash. It runs around 2 seconds, with the LED 1-3 blinking as the shold, but suddendtly the stop blinking and the LED 6 is also swiched on.
any Ideas, what this could be?


[ 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