This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Question about fdOpen().

Other Parts Discussed in Thread: TM4C1294NCPDT

I am using ccs 6.1.2, TIRTOS 2.16.0.08, compiler 5.2.7 and a TIVA TM4C1294NCPDT CPU.

 

The fdOpen() will fail if it is called at the start of a task but if I add a small delay before the fdOpen(), the fdOpen() will succeed.

Is there a reason I should have to use a delay?  See below:

void MainTask(void)

{

 

      int fdOpenResult;

 

      Task_sleep(TEN_MILISECONDS); // why is this needed?

 

       fdOpenResult = fdOpenSession(TaskSelf());

       printf ("mainTask() fdOpenSession result = %d\n", fdOpenResult);

….