Quality RTOS & Embedded Software

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


Loading

Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

Posted by enridl on November 2, 2009
Hi to everyone,

I managed to sucsessfully port FreeRTOS to MSP430FG4618 using GCC+Eclipse cdt.
I could run the FlashTasks for 3 on board LCD Leds, checking if otherTasks are running+MathTest+ApplicationIdleHookNotStalling+CheckIfErrors, each task toggling a LED. I defined another task in main(), similar to CheckIfErrors, that toggles a led with mainNoError rate just for comparing the rate it toggles a LED, with mainErrorCheck rate.

I am using the small memory model(heap1.c in memoryManagement and including Minimal in Common folder).

But, i have a problem!
I cannot use more than 7 tasks a time, because i get a _stop_prog_exec() error, while debugging
So if i use just 2 LEDs in flash.c, i can use all the other 5 tasks, or i can use 3 LEDs toggling in flash.c, but i can't use the task i defiined NoErrorCheck() in this case.
Could anyone tell me what is this _stop_prog_exec() error about? am i using all the available stack reserved in Minimal memory management model.

I have another question: I notice while debugging that it keeps running a task called _udivmod4 for a very long time interval.
I could get no description in FreeRTOS.org about that. does anyone know what is this about? Sometimes it gets stuck when i run the step mode debugging while it is in this udivmod4si.

Any advice is welcome

Regards,

enri

RE: Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

Posted by enridl on November 2, 2009
..and there's something else:

I cannot run it in preemptive scheduling, because as soon as i set #define use preemptive to 1 in FreeRTOSConfig, none of the tasks Toggles any LED.

What could be wrong?

Please, could anyone help me!
Thanks for your time,
enri

RE: Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

Posted by enridl on November 10, 2009
Is there any one who could help me?
Please Richard, are you there?

thank you and excuse me for your time,
regards,
enridl

RE: Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

Posted by Richard on November 10, 2009
Sounds to me like you are simply running out of heap space. Can you free some memory from anywhere else and/or increase configTOTAL_HEAP_SIZE?

I have no idea what _stopprog_exec() but guess it is a library that comes with your compiler, or simply a function from the start up code.

I would also guess that _udivmod4 was part of your compilers maths libraries, but that is only a guess.

Neither function are anything to do with FreeRTOS.

Regards.

RE: Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

Posted by enridl on November 10, 2009
Thanks Richard,

i think you're right. Iam probably running out of heap space. I will try to increase the configTOTALHEAPSIZE, because it is configured for the smaller F449 microcontroller.
But could you please give me a hint: how could i know exactly which is the maximum heapsize i can use for my microcontroller, is there any way i can figure that out, and what are the bad conseguences that could come out by increasing it?

thank you very much for your reply, and thank you very much for FreeRTOS, its a great work you have done, i liked a lot working with it. I would like to contribute. Could you please give me some hints, as soon as i have the final version of this port, what should i do for giving it to the community.

Regards,
Enri

RE: Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

Posted by Anne Thomas on June 13, 2011
Dear enridl:

Were you able to get the FreeRTOS port to the msp430fg4618? I am having trouble configuring FreeRTOS to run on msp430fg4618. (Please see my post under "anne13".) Any help/suggestions would be appreciated.

Thank you,
Anne

RE: Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

Posted by Richard on June 13, 2011
https://sourceforge.net/projects/freertos/forums/forum/382005/topic/4570515

Regards.


[ 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