Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

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

Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

..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

Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

Is there any one who could help me?
Please Richard, are you there? thank you and excuse me for your time,
regards,
enridl

Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

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.

Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

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

Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

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

Porting FreeRTOS 5.4.2 to MSP430FG4618 EXP. B

https://sourceforge.net/projects/freertos/forums/forum/382005/topic/4570515 Regards.