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

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) 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