Quality RTOS & Embedded Software

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


Loading

FreeRTOS with MSP430FG461x

Posted by Tom-Sze on June 24, 2009
Hi,

I'm working on a project that may deem necessary to implement freeRTOS with the MSP430. The board we're using is TI Experimenter's board with the MSP430FG4618. I altered the demo code from the MSP430IAR port and got it to compile and download. The problem is the scheduler won't execute any task. I checked the LED test file and also the hardware setting and they seem fine (I had the LED and serial communication to work before running the scheduler). I also made sure the code conforms with the addressing scheme of the interrupt vector of that chip. One thing I noticed is that the timer interrupt is not being called. Does anyone have experienced working with FreeRTOS on this chip that can help me get the demo to work?

RE: FreeRTOS with MSP430FG461x

Posted by Jack Peacock on June 25, 2009
The MSP430F461x family uses the extended MSP430X architecture, with 20 bit registers. If you are accessing anything above the 64K boundary or do 20-bit calculations then you'll have problems with the FreeRTOS distribution for MSP430, as the context switching doesn't handle 20-bit registers.

I have a portable.c module working on the MSP430F5438, using CCE3 compiler, but not well-tested. I can email the portable code if your problem is in the MSP430X changes.

Did you check the error code when you try to start the scheduler? You may not have enough heap memory. If the scheduler doesn't start, and enable interrupts, then you wouldn't see the timer interrupt.
Jack Peacock

RE: FreeRTOS with MSP430FG461x

Posted by Tom-Sze on June 25, 2009
Hi Jack,

The scheduler does start and I do see a "Only 16bit will be pushed to the stack" warning when building the port with IAR (I also have CCE). So the problem probably is with the extended architecture of the MSP430FG4618. Please do send me your portable files, and hopefully I can get it to work my board.

Thanks for your help,
Tom


RE: FreeRTOS with MSP430FG461x

Posted by zy015240 on June 26, 2009
Hi Jack,
The same thing I met when I port to MSP430F5438, Please do send me your portable files.

Thanks a lot.

ZouYong

RE: FreeRTOS with MSP430FG461x

Posted by Jack Peacock on June 26, 2009
If someone has the time to put together a port for the MSP430X to be included in the FreeRTOS distribution I can contribute the (crude and sketchy) test code I did for the TI MSP430F5438 Eval board.
Jack Peacock

RE: FreeRTOS with MSP430FG461x

Posted by John W. on June 27, 2009
Hello Jack,

I will be doing just that very soon. I don't need the code as I have it. I've been doing some stability tests and it is very stable. I have the complete demo for TI's '5438 board working - I am running 'UserExperience' as a task. The USB demo works - I have verified that - I haven't yet tried the audio recording and playback but I should get to that soon.

I will be posting the CCE and IAR workspaces for this very soon - as in next week.

It is up to Richard if he wants to include or not in the FreeRTOS distribution.

Regards,
John

RE: FreeRTOS with MSP430FG461x

Posted by John W. on July 2, 2009
Richard,

I have the CCE port on my web-site - www.WestmorelandEngineering.com - please take a look - note I currently have the port password protected.

Regards,
John

RE: FreeRTOS with MSP430FG461x

Posted by zy015240 on July 8, 2009
My port succeed. platform is IAR4.20+MSP430F5438. The kernel dose work. I'll finish my project of protocol convert using in communication. Thanks John for your CCE files.

RE: FreeRTOS with MSP430FG461x

Posted by Tom-Sze on July 9, 2009
Jack,

Your code is working runs fine, haven't encountered any problems. Thanks for you port!

RE: FreeRTOS with MSP430FG461x

Posted by Tom-Sze on July 23, 2009
Hi Jake,

Did you encounter problems with implementing a context switch inside an interrupt?

Thanks,
Tom


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


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner