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

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 ]    [ 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