TI中文支持网
TI专业的中文技术问题搜集分享网站

EVMK2G 开发板MCASP 口初始化状态status错误

我们使用EVMK2G开发板,

音频板是参考PCM1864-Based Circular Microphone Board (CMB) Reference Design资料自己设计的13通道,我们接EVMK2G使用了8个 通道

程序使用SDK开发包ti-processor-sdk-rtos-k2g-evm-04.01.00.06-Windows-x86-Install,使用demo程序为realtime_demo_bios

调试过程中,DSP可以正常启动,启动后电流大约0.56A,主程序运行到mcaspAudioConfig()会报错误;

/* Initialize McASP module */
status = mcaspAudioConfig();
if(status != Cmb_EOK)
{
cmb_write("McASP Configuration Failed!\n");
UART_printf("McASP Configuration Failed!\n");
testRet(1);
}

/* Start BIOS execution */
BIOS_start();

///////////////////////////////////////////////////////////////

进入status = mcaspAudioConfig();程序单步调试;发现程序进入

status = mcaspCreateChan(&hMcaspRxChan, hMcaspDevRx,MCASP_INPUT, &mcaspRxChanParam, mcaspAppCallback, &rxChanMode)中报错;

console 输出错误信息如下:

[C66xx]Static information:
tword: 1
tint: 2
tlong: 4
Max #mics: 7
Max #vmics: 12
Fs: 16000 [Hz]
Frame duration: 10 [ms]
Frame length: 160 samples
Frame size: 320 bytes
Input buffer length: 2240 samples
Frame buffer size: 4480 bytes

Dynamic information:
#mics: 7
#vmics: 12
…Initializing beamformers
Done with beamformers
…Initializing ASNR's
Done with ASNR's
…Initializing MSS
Done with MSS
…Initializing DRC
Done with DRC

******************************************
Audio Preprocessing Demo******************************************

This Demo Takes the Audio Input from 8 Mics from CMB
Runs the BF+ASNR+MSS+DRC Signal Processing Chain on Mic1 through Mic7
The Processed Audio Output will be Sent to Left Channels of K2G EVM On-Board Line-Out
The Mic8 will be Sent to Right Channels of K2G EVM On-Board Line-Out
Please Plug a Headphone to K2G EVM On-Board Line-Out
McASP Configuration Failed!

Audio DC Analog Interface Test Completed!
A0=0x0 A1=0x1
A2=0x1 A3=0xc0e0108
A4=0x1 A5=0x42a
A6=0x8949c4 A7=0x1
A8=0x894778 A9=0x894780
A10=0x10 A11=0x0
A12=0x8fe5b0 A13=0x0
A14=0x1f63ef81 A15=0x8fff00
A16=0x0 A17=0xf6f2bc63
A18=0x10 A19=0x0
A20=0x0 A21=0x879498
A22=0x0 A23=0x879498
A24=0x8fff00 A25=0x888740
A26=0x8949f8 A27=0x825e10
A28=0x832344 A29=0x1a
A30=0x1 A31=0x1
B0=0x1 B1=0x833dc8
B2=0x894930 B3=0x894a00
B4=0x1 B5=0xf6f2bc64
B6=0x8fe5b0 B7=0x0
B8=0x8887bf B9=0x8793f4
B10=0x830c9c B11=0xf6f2bc63
B12=0xc9bae6de B13=0x1f63ef81
B14=0x890000 B15=0x894980
B16=0x0 B17=0x894980
B18=0xffffffff B19=0xffffffff
B20=0xfffffff7 B21=0x0
B22=0x66666666 B23=0x30666666
B24=0x1 B25=0x0
B26=0xffffffef B27=0x888879
B28=0x894930 B29=0x0
B30=0x82f890 B31=0x80b580
NTSR=0x1000c
ITSR=0xa
IRP=0x8fe5b0
SSR=0xc
AMR=0x8949cc
RILC=0x0
ILC=0x0
Exception at 0xdfb87370
EFR=0x2 NRP=0xdfb87370
Internal exception: IERR=0x8
Opcode exception
ti.sysbios.family.c64p.Exception: line 256: E_exceptionMax: pc = 0x0080b580, sp = 0x00000008.
xdc.runtime.Error.raise: terminating execution

程序页面跳转到exit.c中_CODE_ACCESS void abort(void)停止;

请哪位高手,分析指导一下,我们在调试过程中,那些操作不正确,导致realtime_demo_bios 演示程序  无法正常运行;谢谢!

Shine:

请问是否有参考过下面的文档里的步骤来连接硬件?http://www.ti.com/lit/ug/tiducr7/tiducr7.pdf

赞(0)
未经允许不得转载:TI中文支持网 » EVMK2G 开发板MCASP 口初始化状态status错误
分享到: 更多 (0)