Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hello. I have the following problem. There is a project with SYSBIOS, it works fine on the CPU1, but when transferring it to the CPU2 there were problems in code:
GateMutex_enter(TX_mutex);
Queue_putHead(queue_tx_frame,&(tx_packet.element));
Semaphore_post(TSK_TX_semaphor);
GateMutex_leave(TX_mutex,mutexKey);
event = Event_pend(event_wake_up_TSK_update,Event_Id_NONE,Event_Id_00,BIOS_WAIT_FOREVER);
when a task tries to set the semaphore everything falls apart,in the window ROV on the tab TASK I see:
Target memory read failed at address:0x885f4073,length 34
This read is at an INVALID address according to the application's section map.The application is likely either uninitialized or corrupt.
After that, blocking the task of waiting for the event does not work, and when you call it again Event_pend , I get an error (ti.sysbios.knl.Event: line 209: assertion failure: A_eventInUse: Event object already in use.
xdc.runtime.Error.raise: terminating execution) that is natural.tell me what is my mistake.