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.

McBSP Driver function error on AM37x EVM while reading

Hi,

I am trying to debug my code for McBSP2 read/write by polling in master mode under linux on AM37x EVM which uses the tisdk's McBSP driver mcbsp.c. Following are the readback values of registers after configuration.

 **** McBSP2 regs ****
DRR2:  0xab4def4c
DRR1:  0x0000
DXR2:  0x0000
DXR1:  0x0000
SPCR2: 0x00c3
SPCR1: 0x0001
RCR2:  0x0001
RCR1:  0x0040
XCR2:  0x0001
XCR1:  0x0040
SRGR2: 0x2000
SRGR1: 0x0001
PCR0:  0x0a01
***********************

I get following error displayed on console and the return value as 65534 while reading from McBSP2 port by calling omap_mcbsp_pollread().

"omap-mcbsp omap-mcbsp.2: Could not read from McBSP2 Register"

I get a values as 0 returned by omap_mcbsp_pollwrite() while writing to the McBSP2 port.

I need help to debug this. Is the configuration correct ?

Thanks.