Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
I am developing a project using TiRtos. In that I am using Queue. In runtime the code crash at Queue_dequeue().
I did the implementation as follows( copying and pasting only queue related code)
typedef struct XmitMsgQ {
Queue_Elem elem;
Char Xmsgbuf[30];
} xmitq;
struct XmitMsgQ Xmsg;
Queue_Handle XmitMsgQHandle;
XmitMsgQHandle=Queue_create(NULL, NULL);
Queue_enqueue(XmitMsgQHandle, &(Xmsg.elem));
xmitq* XmsginQ;
if(!Queue_empty(XmitMsgQHandle))
XmsginQ= Queue_dequeue(XmitMsgQHandle);
The code crashes at XmsginQ= Queue_dequeue(XmitMsgQHandle);
The crash message below:
ti.sysbios.family.arm.m3.Hwi: line 1087: E_hardFault: FORCED
ti.sysbios.family.arm.m3.Hwi: line 1164: E_busFault: IMPRECISERR: Delayed Bus Fault, exact addr unknown, address: e000ed38
Exception occurred in background thread at PC = 0x00012d66.
Core 0: Exception occurred in ThreadType_Task.
Task name: {unknown-instance-name}, handle: 0x20001270.
Task stack base: 0x200012c0.
Task stack size: 0x400.
R0 = 0x2000fc94 R8 = 0xffffffff
R1 = 0x200008d8 R9 = 0xffffffff
R2 = 0x00015a04 R10 = 0xffffffff
R3 = 0x00000009 R11 = 0xffffffff
R4 = 0xffffffff R12 = 0x153d0200
R5 = 0xffffffff SP(R13) = 0x200014f8
R6 = 0xffffffff LR(R14) = 0x00012d63
R7 = 0xffffffff PC(R15) = 0x00012d66
PSR = 0x81000000
ICSR = 0x00423803
MMFSR = 0x00
BFSR = 0x04
UFSR = 0x0000
HFSR = 0x40000000
DFSR = 0x0000000b
MMAR = 0xe000ed34
BFAR = 0xe000ed38
AFSR = 0x00000000
Terminating execution...
Appreciate your help