Quality RTOS & Embedded Software

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




Loading

mcf52221demo with cw10

Posted by Pixelrv on November 28, 2010
In version 6.1 of freertos there is demo for the freescale mcf52221demo board. However I guess it has been developped for a old version of codewarrior since it doesn't compile on either CodeWarrior 10 (after conversion) or on Codewarrior 7.3. Is there an update for CodeWarrior 10 available somewhere?
Thanks in advance

RE: mcf52221demo with cw10

Posted by Dave on November 28, 2010
“it doesn't compile on either CodeWarrior 10 (after conversion) or on Codewarrior 7.3”


Could mean anything. More information would be useful.

RE: mcf52221demo with cw10

Posted by Pixelrv on December 10, 2010
Apparently the compiler complain about __declspec(interrupt:0) . I am very new to mcu development and don't know how to handle this. Here is the output of the compiler:

**** Build of configuration INTERNAL_FLASH for project RTOSDemo ****
[...]
'Regenerating dependency file: Sources/FreeRTOS_Tick_Setup.d'
' '
'Building file: ../Sources/FreeRTOS_Tick_Setup.c'
'Invoking: ColdFire Compiler'
"C:\Program Files\Freescale\CW MCU v10.0\eclipse\../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf" @"Sources/FreeRTOS_Tick_Setup.args" -o "Sources/FreeRTOS_Tick_Setup.obj" "../Sources/FreeRTOS_Tick_Setup.c"
../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(C:\Documents and Settings\Herve\FreeRTOSV6.1.0\FreeRTOSV6.1.0\Demo\ColdFire_MCF52221_CodeWarrior\RTOSDemo\Sources\FreeRTOS_Tick_Setup.c|57|11|9|3194|9)
=__declspec(interrupt:0) void vPIT0InterruptHandler( void );
>identifier expected
../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(C:\Documents and Settings\Herve\FreeRTOSV6.1.0\FreeRTOSV6.1.0\Demo\ColdFire_MCF52221_CodeWarrior\RTOSDemo\Sources\FreeRTOS_Tick_Setup.c|121|11|9|6260|9)
=__declspec(interrupt:0) void vPIT0InterruptHandler( void )
>identifier expected
../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(C:\Documents and Settings\Herve\FreeRTOSV6.1.0\FreeRTOSV6.1.0\Demo\ColdFire_MCF52221_CodeWarrior\RTOSDemo\Sources\FreeRTOS_Tick_Setup.c|122|0|1|6309|1)
={
>declaration syntax error
../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(C:\Documents and Settings\Herve\FreeRTOSV6.1.0\FreeRTOSV6.1.0\Demo\ColdFire_MCF52221_CodeWarrior\RTOSDemo\Sources\FreeRTOS_Tick_Setup.c|126|12|1|6391|13)
= (*(vuint16*)(0x40150000)) |= MCF_PIT_PCSR_PIF;
>')' expected
../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(C:\Documents and Settings\Herve\FreeRTOSV6.1.0\FreeRTOSV6.1.0\Demo\ColdFire_MCF52221_CodeWarrior\RTOSDemo\Sources\FreeRTOS_Tick_Setup.c|129|1|20|6463|20)
= ulSavedInterruptMask = portSET_INTERRUPT_MASK_FROM_ISR();
>undefined identifier 'ulSavedInterruptMask'
../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(C:\Documents and Settings\Herve\FreeRTOSV6.1.0\FreeRTOSV6.1.0\Demo\ColdFire_MCF52221_CodeWarrior\RTOSDemo\Sources\FreeRTOS_Tick_Setup.c|130|22|1|6544|1)
= vTaskIncrementTick();
>identifier 'vTaskIncrementTick()' redeclared as '__regabi int (...)'
../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(C:\Documents and Settings\Herve\FreeRTOSV6.1.0\FreeRTOSV6.1.0\Demo\ColdFire_MCF52221_CodeWarrior\RTOSDemo\Sources\FreeRTOS.org\headers\task.h|1162|51|1|40888|1)
=void vTaskIncrementTick( void ) PRIVILEGED_FUNCTION;
>identifier 'vTaskIncrementTick()' was originally declared as '__regabi void
>()'
../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(C:\Documents and Settings\Herve\FreeRTOSV6.1.0\FreeRTOSV6.1.0\Demo\ColdFire_MCF52221_CodeWarrior\RTOSDemo\Sources\FreeRTOS_Tick_Setup.c|131|58|1|6605|1)
= portCLEAR_INTERRUPT_MASK_FROM_ISR( ulSavedInterruptMask );
>identifier 'ulPortSetIPL(unsigned long)' redeclared as '__regabi int (int)'
../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(C:\Documents and Settings\Herve\FreeRTOSV6.1.0\FreeRTOSV6.1.0\Demo\ColdFire_MCF52221_CodeWarrior\RTOSDemo\Sources\FreeRTOS.org\headers\portmacro.h|94|51|1|4346|1)
=unsigned portLONG ulPortSetIPL( unsigned portLONG );
>identifier 'ulPortSetIPL(unsigned long)' was originally declared as '__regabi
>unsigned long (unsigned long)'
../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(C:\Documents and Settings\Herve\FreeRTOSV6.1.0\FreeRTOSV6.1.0\Demo\ColdFire_MCF52221_CodeWarrior\RTOSDemo\Sources\FreeRTOS_Tick_Setup.c|136|1|1|6784|1)
= {
>declaration syntax error
../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(C:\Documents and Settings\Herve\FreeRTOSV6.1.0\FreeRTOSV6.1.0\Demo\ColdFire_MCF52221_CodeWarrior\RTOSDemo\Sources\FreeRTOS_Tick_Setup.c|140|0|1|6816|1)
=}
>declaration syntax error

Errors caused tool to abort.
C:\Program Files\Freescale\CW MCU v10.0\gnu\bin\make: *** [Sources/FreeRTOS_Tick_Setup.obj] Error 1

Thanks in advance


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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