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.

RTOS/TMS320C6748: Program crashes after ti.sysbios.family.c64p.Exception

Part Number: TMS320C6748
Other Parts Discussed in Thread: SYSBIOS, OMAP-L138

Tool/software: TI-RTOS

Hello, 

I'm using dsplib c674x release 3.4.0.0.

My program crashes in a random moment of time, displaying the following output:

=0x0 A1=0x0
A2=0x0 A3=0xc00f7d90
A4=0xc008cb94 A5=0xc00f3498
A6=0x15e A7=0x0
A8=0xc0002af8 A9=0xc0002c38
A10=0xc000c4c0 A11=0xc00e4320
A12=0x0 A13=0x0
A14=0x0 A15=0x0
A16=0x0 A17=0xc008cb28
A18=0xc008cb5a A19=0x19a
A20=0x10001 A21=0x0
A22=0xc008cf1c A23=0xfffffffb
A24=0xfffffffa A25=0xfffffff8
A26=0xfffffff4 A27=0xffffffe6
A28=0xffffffe5 A29=0x1278
A30=0xc0094140 A31=0x0
B0=0x0 B1=0x1
B2=0x1 B3=0x0
B4=0x14000303 B5=0xc00f2d1a
B6=0x4200010 B7=0x90
B8=0xc0011c70 B9=0x0
B10=0xc000c4c0 B11=0x0
B12=0x0 B13=0x0
B14=0xc00f8390 B15=0xc008cbe8
B16=0x0 B17=0x0
B18=0xc000ed4c B19=0x40
B20=0x10001 B21=0x1
B22=0xc008cb5c B23=0x21
B24=0xc008ded8 B25=0x72
B26=0xc008d518 B27=0xf4
B28=0xc00f0778 B29=0x90
B30=0xc0002c38 B31=0xffef
NTSR=0x1000f
ITSR=0xf
IRP=0xc00c12ac
SSR=0x3
AMR=0x0
RILC=0x0
ILC=0x0
Exception at 0x0
EFR=0x2 NRP=0x0
Internal exception: IERR=0x1
Instruction fetch exception
ti.sysbios.family.c64p.Exception: line 256: E_exceptionMax: pc = 0x00000000, sp = 0xc008cbe8.
xdc.runtime.Error.raise: terminating execution

The problem occurs not in every launch.

What the interesting momemt in this trouble is when I replace dsplib function 

DSPF_sp_fir_r2(pModeHeapBuffer, h, r, nh, nx);

with its source code equivalent 

for (unsigned int j = 0; j < nx; j += 2){
	sum1 = 0;
	sum2 = 0;

	for (unsigned int i = 0; i < nh; i += 2){
		sum1 += pModeHeapBuffer[i + j] * h[i];
		sum2 += pModeHeapBuffer[i + j + 1] * h[i];

		sum1 += pModeHeapBuffer[i + j + 1] * h[i + 1];
		sum2 += pModeHeapBuffer[i + j + 2] * h[i + 1];
	}

	// store the results
	r[j] = sum1;
	r[j + 1] = sum2;
}

I took from dsplib release sources (packages\ti\dsplib\src\DSPF_sp_fir_r2\) the program seems to work fine.

Could anyone help me with diagnosis of the problem by the output and solving it?

Host OS: Windows 10 1607-14393.2430 64-bit

CCS:  7.3.0.00019 

DSP: TMS3206748 (OMAP-L138 LCDK)

SYSBIOS: 6.73.0.12

UIA: 2.20.0.02

XDCTools: 3_50_07_20_core

Dsplib: C674x 3.4.0.0

Compiler: ti-cgt-c6000_8.3.0