Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner