nobody wrote on Thursday, May 10, 2007:
thanks for your help, i’m sure that all the task are succesfully create like that
check=sTaskCreate( Task_Main, ( const portCHAR * const ) "Main", portMINIMAL_STACK_SIZE, ( void * ) pParamEvento1,mainTASK_MAIN, NULL );
and each task has define the portMINIMAL_STACK_SIZE with the minimun value to work… at this moment i have:
check=sTaskCreate( Task_Main, ( const portCHAR * const ) "Main", 120, ( void * ) pParamEvento1,mainTASK_MAIN, NULL );
check=sTaskCreate( Task_INFR, ( const portCHAR * const ) "Main", 110, ( void * ) pParamEvento1,mainTASK_MAIN, NULL );
check=sTaskCreate( Task_OBSRV, ( const portCHAR * const ) "Main", 120, ( void * ) pParamEvento1,mainTASK_MAIN, NULL );
check=sTaskCreate( Task_Marcadores, ( const portCHAR * const ) "Main", 90, ( void * ) pParamEvento1,mainTASK_MAIN, NULL );
check=sTaskCreate( Task_PosXY, ( const portCHAR * const ) "Main", 150, ( void * ) pParamEvento1,mainTASK_MAIN, NULL );
and the #define portTOTAL_HEAP_SIZE ( 3150 )
Check is 1 when i’m using the mplab’s debuguer (breakpoints), but it works for few seconds after it reset without breakpoints… i’m thinking to change the pic for one with much memory like 8722 … do you think it can works? or i will have the same problem?
PIC 18F8621
Program Memory Data Memory
Flash #Single-Word SRAM(bytes) EEPROM(bytes)
(bytes) Instructions
64K 32768 3840 1024
PIC 18F8722
Program Memory Data Memory
Flash #Single-Word SRAM(bytes) EEPROM(bytes)
(bytes) Instructions
128K 65536 3936 1024
The PosXY task works with 20 differetns float variables, so when i put the other tasks all is good… bur when i put the PosXY with the others the problem appear…
I don’t know what else can i do… i have to work whit this floats … so do you have an idea??
Thanks again for your help… i’m very worried i have to finish it very soon…
Thanks and have a nice day!!!