emerico wrote on Sunday, December 11, 2005:
Hello,
On a FreeRTOS port on ADuC7026 in nonpreemtive mode using Heap_2 as Heap,
I can not correctly start a task after have allocated memory to a pointer.
Example:
If a write this:
/**********************************************/
3. xTaskCreate( vAbcsp_aduc_ABCSPLaunch, "ABCSP",
4. 100, NULL, ABCSP_PRIORITY, &xABCSPHANDLE);
/**********************************************/
then a will not have any problem. but if l first allocate memory to a pointer like this:
/***********************************************/
1. uint8* pointer = pvPortMalloc (sizeof(uint8*));
2. pointer[0] = 0x00;
3. xTaskCreate( vAbcsp_aduc_ABCSPLaunch, "ABCSP",
4. 100, NULL, ABCSP_PRIORITY, &xABCSPHANDLE);
/***********************************/
then a have a problem at line 3. (Especially in xTaskCreate where memory is allocated to the Task control block.)
Error:
/***************
Data Abort: Thumb Instruction at 000830F2H, Memory Access at 00C016E8H
****************************************/
Can somebody help me? any idea where the error is comming from?
Best regards
Emeric