I am trying to run audio loop on LCDKomapL138 using its DSP. I can use and modify mcasp example from starterware and it is working, but when I try to use it with SYS/BIOS buffers of samples needs to be very big. This is causing delays > 100ms. When buffers are smaller sound breaks more and more while buffers are smaller till there is no sound at all. When I try to use audio example from biospsp 3.0.1.0 it crashes after:
GIO_create(GIO_INPUT)
with:
A0=0x1 A1=0x0
A2=0x0 A3=0x0
A4=0x0 A5=0x0
A6=0xc3045514 A7=0x0
A8=0x0 A9=0x0
A10=0xc302c070 A11=0x1
A12=0xc302c070 A13=0x3
A14=0xc304422c A15=0x0
A16=0x0 A17=0x0
A18=0xc304550c A19=0x0
A20=0x79747618 A21=0xc058af5a
A22=0x0 A23=0x2040702
A24=0x280517f6 A25=0xf3480825
A26=0xb9ac58f2 A27=0xc3044d74
A28=0xc303c188 A29=0x1
A30=0xc30450d4 A31=0x0
B0=0x1 B1=0x0
B2=0xffffffff B3=0xc30615ac
B4=0xc304505c B5=0x0
B6=0xc3073cf8 B7=0xc307b744
B8=0x69 B9=0x0
B10=0xc30441c4 B11=0xc30745a0
B12=0x0 B13=0xc3067128
B14=0xc307bbdc B15=0xc3044118
B16=0x0 B17=0xc30741e8
B18=0x260bfddf B19=0xfdb30b7e
B20=0x41f3dbfd B21=0x2e4786e6
B22=0x72a2c95 B23=0x72a2c95
B24=0x0 B25=0x2041866d
B26=0x94f79b01 B27=0x0
B28=0x2e4 B29=0x14c
B30=0xc307af64 B31=0x0
NTSR=0x1000f
ITSR=0xf
IRP=0xc3064cd4
SSR=0x0
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 255: E_exceptionMin: pc = 0x00000000, sp = 0xc3044118.
To see more exception detail, use ROV or set 'ti.sysbios.family.c64p.Exception.enablePrint = true;'
xdc.runtime.Error.raise: terminating execution
I tried modifying structures passed to GIO_create, but with no luck.GIO_create(GIO_INPUT)
with:
A0=0x1 A1=0x0
A2=0x0 A3=0x0
A4=0x0 A5=0x0
A6=0xc3045514 A7=0x0
A8=0x0 A9=0x0
A10=0xc302c070 A11=0x1
A12=0xc302c070 A13=0x3
A14=0xc304422c A15=0x0
A16=0x0 A17=0x0
A18=0xc304550c A19=0x0
A20=0x79747618 A21=0xc058af5a
A22=0x0 A23=0x2040702
A24=0x280517f6 A25=0xf3480825
A26=0xb9ac58f2 A27=0xc3044d74
A28=0xc303c188 A29=0x1
A30=0xc30450d4 A31=0x0
B0=0x1 B1=0x0
B2=0xffffffff B3=0xc30615ac
B4=0xc304505c B5=0x0
B6=0xc3073cf8 B7=0xc307b744
B8=0x69 B9=0x0
B10=0xc30441c4 B11=0xc30745a0
B12=0x0 B13=0xc3067128
B14=0xc307bbdc B15=0xc3044118
B16=0x0 B17=0xc30741e8
B18=0x260bfddf B19=0xfdb30b7e
B20=0x41f3dbfd B21=0x2e4786e6
B22=0x72a2c95 B23=0x72a2c95
B24=0x0 B25=0x2041866d
B26=0x94f79b01 B27=0x0
B28=0x2e4 B29=0x14c
B30=0xc307af64 B31=0x0
NTSR=0x1000f
ITSR=0xf
IRP=0xc3064cd4
SSR=0x0
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 255: E_exceptionMin: pc = 0x00000000, sp = 0xc3044118.
To see more exception detail, use ROV or set 'ti.sysbios.family.c64p.Exception.enablePrint = true;'
xdc.runtime.Error.raise: terminating execution
Could You provide me necessary changes for this example to work with my board?
Please help me as soon as possible. My project deadline is coming.