Quality RTOS & Embedded Software

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




Loading

FreeRTOS and MSPFG4618

Posted by Anne Thomas on 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 " to "#include ". 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[Pe111]: statement is unreachable C:\MSP430\Agamatrix project\FreeRTOS\Demo\msp430_IAR\main.c 177
port.c
portext.s43
Error[40]: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 925
Error[40]: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 941
Error[42]: Duplicate label:'sfrl' C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 959
Error[40]: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 959
Error[42]: Duplicate label:'sfrl' C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 975
Error[40]: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 975
Error[42]: Duplicate label:'sfrl' C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 993
Error[40]: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 993
Error[42]: Duplicate label:'sfrl' C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 1009
Error[40]: Bad instruction C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\INC\msp430xG46x.h 1009
Error[66]: 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[Pe1053]: 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




RE: FreeRTOS and MSPFG4618

Posted by Richard on June 13, 2011
The MSP430F449 uses an MSP430 core. The MSP430FG4618 uses an MSP430X core. The FreeRTOS download contains 2 demos for the MSP430X in the FreeRTOS/Demo/MSP430X_MSP430F5438_CCS4 and FreeRTOS/Demo/MSP430X_MSP430F5438_IAR directories respectively. Each demo uses 3 different memory models. There is a lot of code behind it.

The ports for these demos are found in the FreeRTOS/Source/portable/CCS4/MSP430X and FreeRTOS/Source/portable/IAR/MSP430X directories respectively.

I suggest you look at one of these demos as a starting point.

Regards.

RE: FreeRTOS and MSPFG4618

Posted by enridl on June 13, 2011
So I changed the header file in FreeRTOSConfig.h from "#include " to "#include ".
I think this might be the first error: check if it the right to get included "

then check any error above, and try to edit the right folder/file which gets an error. I'll send you more notes later.

Regards,
Enri.

RE: FreeRTOS and MSPFG4618

Posted by Anne Thomas on June 13, 2011
Hi Enrid:

Thank you for your help. If you are able to send me your code, that would be great. I am using IAR Workbench IDE, but as you said, I can make the necessary changes.

The reason for needing this port is that I am trying to adapt FreeRTOS for use on the MSP430fg4618/MSP430f2013 experimenter's board. It's not for a specific project at this time. However, I want to be able to add FreeRTOS experience to my resume, as some companies I'm looking at are interested in this.

Thank you again.

Regards,
Anne


[ 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