anne13 wrote on Sunday, June 12, 2011:
Dear FreeRTOS Forum:
I am using IAR Workbench and got the FreeRTOS demo “msp430_IAR” to build. However, this demo’s architecture is for SoftBaugh’s ES449 prototyping board.
I followed the instructions on p. 161 (steps 1 - 6) of the FreeRTOS tutorial book for adapting one of the supplied demo projects. I removed all demo source files except heap_1.c and main.c and got the project to compile.
However, I want to port to the MSP430FG4618 (instead ES449). So I changed the header file in FreeRTOSConfig.h from “#include <msp430x44x.h>” to “#include <msp430xG46x.h>”. Now the project will not compile. How can I get project to work on FG4618? Here are the error messages:
Building configuration: RTOSDemo - Debug
Updating build tree…
15 file(s) deleted.
Updating build tree…
croutine.c
heap_1.c
list.c
main.c
Warning: statement is unreachable C:\MSP430\Agamatrix project\FreeRTOS\Demo\msp430_IAR\main.c 177
port.c
portext.s43
Error: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 925
Error: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 941
Error: Duplicate label:‘sfrl’ C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 959
Error: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 959
Error: Duplicate label:‘sfrl’ C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 975
Error: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 975
Error: Duplicate label:‘sfrl’ C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 993
Error: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 993
Error: Duplicate label:‘sfrl’ C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 1009
Error: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 1009
Error: Segment too long (max is ffff) C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 925
Error while running Assembler
queue.c
tasks.c
Warning: conversion from integer to smaller pointer C:\MSP430\Agamatrix project\FreeRTOS\Source\tasks.c 470
Total number of errors: 22
Total number of warnings: 4