FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2009 Threads] Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. BPosted 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. BPosted 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. BPosted 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. BPosted 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. BPosted 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. BPosted 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. BPosted by Richard on June 13, 2011 https://sourceforge.net/projects/freertos/forums/forum/382005/topic/4570515
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|