cannot compile the FreeRTOS example for AVR32

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_svnembededswavr32FreeRTOSDemoAVR32_UC3DRIVERSPMpm.c 162 Error[Pe020]: identifier "AVR32_PM_OSCCTRL0_MODE_CRYSTAL_G3" is undefined C:carag_svnembededswavr32FreeRTOSDemoAVR32_UC3DRIVERSPMpm.c 163 Error[Pe020]: identifier "AVR32_PM_OSCCTRL1_MODE_CRYSTAL_G2" is undefined C:carag_svnembededswavr32FreeRTOSDemoAVR32_UC3DRIVERSPMpm.c 223 Error[Pe020]: identifier "AVR32_PM_OSCCTRL1_MODE_CRYSTAL_G3" is undefined C:carag_svnembededswavr32FreeRTOSDemoAVR32_UC3DRIVERSPMpm.c 224 Error[Pe020]: identifier "AVR32_PM_OSCCTRL32_MODE_EXT_CLOCK" is undefined C:carag_svnembededswavr32FreeRTOSDemoAVR32_UC3DRIVERSPMpm.c 278 Error[Pe020]: identifier "AVR32_PM_OSCCTRL32_MODE_CRYSTAL" is undefined C:carag_svnembededswavr32FreeRTOSDemoAVR32_UC3DRIVERSPMpm.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

cannot compile the FreeRTOS example for AVR32

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

cannot compile the FreeRTOS example for AVR32

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.

cannot compile the FreeRTOS example for AVR32

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?