DSPRelated.com
Forums

McBSP problem on DSK C6713?

Started by muoi...@yahoo.com February 21, 2006
Hi all
I've a problem in using McBSP0 on DSKC6713 board.
My program :
---------
#define CHIP_6713 1
#include <stdio.h>
#include <csl.h>
#include <csl_mcbsp.h>
void main()
	{
	MCBSP_Handle hMcbsp0;
	Uint32 SampleRateGenDelay;
        CSL_init();
	hMcbsp0 = MCBSP_open(MCBSP_DEV0,MCBSP_OPEN_RESET);
       //.....
}
-----------------------------------
This program is on CCS 3.1.
If I use the C6713 simulation, there isn't any problem. MCBSP_open() always
returns the value != INV. This is ok.
But, when I connect DSK C6713 board with CCS and run debug, I always receive the
value INV returned by MCBSP_open(). This is error.

Do you have the some comments or ahvices for me?

Best regards
Muoinho
	
Have you checked that McBSP0 is enabled in DEVCFG register?

Mike

-----Original Message-----
From: c6x@c6x@... [mailto:c6x@c6x@...] On Behalf Of
muoinhohn@muoi...
Sent: Tuesday, February 21, 2006 2:20 AM
To: c6x@c6x@...
Subject: [c6x] McBSP problem on DSK C6713?

Hi all
I've a problem in using McBSP0 on DSKC6713 board.
My program :
---------
#define CHIP_6713 1
#include <stdio.h>
#include <csl.h>
#include <csl_mcbsp.h>
void main()
	{
	MCBSP_Handle hMcbsp0;
	Uint32 SampleRateGenDelay;
        CSL_init();
	hMcbsp0 = MCBSP_open(MCBSP_DEV0,MCBSP_OPEN_RESET);
       //.....
}
-----------------------------------
This program is on CCS 3.1.
If I use the C6713 simulation, there isn't any problem. MCBSP_open() always
returns the value != INV. This is ok.
But, when I connect DSK C6713 board with CCS and run debug, I always receive
the value INV returned by MCBSP_open(). This is error.

Do you have the some comments or ahvices for me?

Best regards
Muoinho
	

Hi
I've verified DEVCFG
---------
#define CHIP_6713 1
#include
#include
#include
void main()
{
MCBSP_Handle hMcbsp0;
Uint32 SampleRateGenDelay;
CHIP_Config config;
CSL_init();
CHIP_getConfig(&config);
hMcbsp0 = MCBSP_open(MCBSP_DEV0,MCBSP_OPEN_RESET);
//.....
}
-----------------------------------

The velue of config is 0x01000000. So that McBSP0 is always enable.
However, I can't open McBSP0. The MCBSP_open() always returns INV value.Mike <d...@mikeroper.net> wrote:
Have you checked that McBSP0 is enabled in DEVCFG register?

Mike

-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
m...@yahoo.com
Sent: Tuesday, February 21, 2006 2:20 AM
To: c...@yahoogroups.com
Subject: [c6x] McBSP problem on DSK C6713?

Hi all
I've a problem in using McBSP0 on DSKC6713 board.
My program :
---------
#define CHIP_6713 1
#include
#include
#include
void main()
{
MCBSP_Handle hMcbsp0;
Uint32 SampleRateGenDelay;
CSL_init();
hMcbsp0 = MCBSP_open(MCBSP_DEV0,MCBSP_OPEN_RESET);
//.....
}
-----------------------------------
This program is on CCS 3.1.
If I use the C6713 simulation, there isn't any problem. MCBSP_open() always
returns the value != INV. This is ok.
But, when I connect DSK C6713 board with CCS and run debug, I always receive
the value INV returned by MCBSP_open(). This is error.

Do you have the some comments or ahvices for me?

Best regards
Muoinho
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/c6x/

<*> To unsubscribe from this group, send an email to:
c...@yahoogroups.com

<*





Can you step into MCBSP_open and see why it gets the bad handle? Looking at the CSL source the only way that you should get an invalid handle is if MCBSP_DEV0 is already open or there’s memory corruption of the device table.

 

 

-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of Muoi Nho
Sent:
Tuesday, February 21, 2006 11:48 PM
To: Mike; c...@yahoogroups.com
Subject: RE: [c6x] McBSP problem on DSK C6713?

 


Hi
I've verified DEVCFG
---------
#define CHIP_6713 1
#include
#include
#include
void main()
{
MCBSP_Handle hMcbsp0;
Uint32 SampleRateGenDelay;
CHIP_Config config;
CSL_init();
CHIP_getConfig(&config);
hMcbsp0 = MCBSP_open(MCBSP_DEV0,MCBSP_OPEN_RESET);
//.....
}
-----------------------------------

The velue of config is 0x01000000. So that McBSP0 is always enable.
However, I can't open McBSP0. The MCBSP_open() always returns INV value. Mike <d...@mikeroper.net> wrote:

Have you checked that McBSP0 is enabled in DEVCFG register?

Mike

-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
m...@yahoo.com
Sent:
Tuesday, February 21, 2006 2:20 AM
To: c...@yahoogroups.com
Subject: [c6x] McBSP problem on DSK C6713?

Hi all
I've a problem in using McBSP0 on DSKC6713 board.
My program :
---------
#define CHIP_6713 1
#include
#include
#include
void main()
{
MCBSP_Handle hMcbsp0;
Uint32 SampleRateGenDelay;
CSL_init();
hMcbsp0 = MCBSP_open(MCBSP_DEV0,MCBSP_OPEN_RESET);
//.....
}
-----------------------------------
This program is on CCS 3.1.
If I use the C6713 simulation, there isn't any problem. MCBSP_open() always
returns the value != INV. This is ok.
But, when I connect DSK C6713 board with CCS and run debug, I always receive
the value INV returned by MCBSP_open(). This is error.

Do you have the some comments or ahvices for me?

Best regards
Muoinho
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/c6x/

<*> To unsubscribe from this group, send an email to:
c...@yahoogroups.com

<*

 




Hi
Thank you very much for your advice.
My problem come from the lnk.cmd file.
I used BIOS/API configuration tool to create other lnk.cmd file and it's ok now.
Regards
MuoinhoMike <d...@mikeroper.net> wrote:
Can you step into MCBSP_open and see why it gets the bad handle? Looking at the CSL source the only way that you should get an invalid handle is if MCBSP_DEV0 is already open or there’s memory corruption of the device table.
 
 
-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of Muoi Nho
Sent:
Tuesday, February 21, 2006 11:48 PM
To: Mike; c...@yahoogroups.com
Subject: RE: [c6x] McBSP problem on DSK C6713?
 

Hi
I've verified DEVCFG
---------
#define CHIP_6713 1
#include
#include
#include
void main()
{
MCBSP_Handle hMcbsp0;
Uint32 SampleRateGenDelay;
CHIP_Config config;
CSL_init();
CHIP_getConfig(&config);
hMcbsp0 = MCBSP_open(MCBSP_DEV0,MCBSP_OPEN_RESET);
//.....
}
-----------------------------------

The velue of config is 0x01000000. So that McBSP0 is always enable.
However, I can't open McBSP0. The MCBSP_open() always returns INV value. Mike <d...@mikeroper.net> wrote:
Have you checked that McBSP0 is enabled in DEVCFG register?

Mike

-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
m...@yahoo.com
Sent:
Tuesday, February 21, 2006 2:20 AM
To: c...@yahoogroups.com
Subject: [c6x] McBSP problem on DSK C6713?

Hi all
I've a problem in using McBSP0 on DSKC6713 board.
My program :
---------
#define CHIP_6713 1
#include
#include
#include
void main()
{
MCBSP_Handle hMcbsp0;
Uint32 SampleRateGenDelay;
CSL_init();
hMcbsp0 = MCBSP_open(MCBSP_DEV0,MCBSP_OPEN_RESET);
//.....
}
-----------------------------------
This program is on CCS 3.1.
If I use the C6713 simulation, there isn't any problem. MCBSP_open() always
returns the value != INV. This is ok.
But, when I connect DSK C6713 board with CCS and run debug, I always receive
the value INV returned by MCBSP_open(). This is error.

Do you have the some comments or ahvices for me?

Best regards
Muoinho
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/c6x/

<*> To unsubscribe from this group, send an email to:
c...@yahoogroups.com

<*
 



Relax. helps detect nasty viruses!