DSPRelated.com
Forums

How to add Chip Support Library

Started by saravana muthu January 15, 2009
Hi to all
I am using TMS320DM6437 and code composer studio 3.3 I have tried to add chip support library header files (like csl.h, csl_mcbsp.h, csl_mcbsphal.h) and I have faced two problems like
Problem:1
"C:/CCStudio_v3.3/C6000/csl/include/csl_chiphal.h", line 267: fatal error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number, i.e. 6201)
So in project build option I have mentioned as CHIP_6201 (Just for time being), since I don’t find any Current chip identification symbols for my target cpu like CHIP_6437.
Problem:2
"C:/CCStudio_v3.3/C6000/csl/include/tistdtypes.h", line 49: error: duplicate specifier in declaration
Let me know how to fix this error. Need your guidance.
saravana,

On Thu, Jan 15, 2009 at 1:21 AM, saravana muthu wrote:
>
> Hi to all
> I am using TMS320DM6437 and code composer studio 3.3 I have tried to add chip support library header files (like csl.h, csl_mcbsp.h, csl_mcbsphal.h) and I have faced two problems like
> Problem:1
> "C:/CCStudio_v3.3/C6000/csl/include/csl_chiphal.h", line 267: fatal error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number, i.e. 6201)
> So in project build option I have mentioned as CHIP_6201 (Just for time being), since I don't find any Current chip identification symbols for my target cpu like CHIP_6437.
> Problem:2
> "C:/CCStudio_v3.3/C6000/csl/include/tistdtypes.h", line 49: error: duplicate specifier in declaration
> Let me know how to fix this error. Need your guidance.


It would really help if you included the contents of line 49.

mikedunn
>
>

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php



_____________________________________
Hi,
Actually as I mentioned earlier I am using TMS320DM6437 & CCS 3.3 for my application. I am working on MCBSP module right now. I dont have any example code for MCBSP in the "C:\CCS\boards\evmdm6437_v2\tests" So I have build my source code for this MCBSP by the refernce guide shown in the link below :

http://focus.ti.com/lit/ug/spru943c/spru943c.pdf But I have
failed to communicate with my slave device.

So I tried to include the header files related to MCBSP from the Chip Support Library folder.
But here too I have faced another two problem as I mentioned in the previous thread.

Problem:1
"C:/CCStudio_v3.3/C6000/csl/include/csl_chiphal.h",
line 267: fatal error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is
chip number, i.e. 6201)
So in project build option I have
mentioned as CHIP_6201 (Just for time being), since I don’t find any Current
chip identification symbols for my target cpu like CHIP_6437.
Problem:2
"C:/CCStudio_v3.3/C6000/csl/include/tistdtypes.h",
line 49: error: duplicate specifier in declaration
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#if defined(_TMS320C6X)
    /* Unsigned integer definitions (32bit, 16bit, 8bit) follow... */
    typedef unsigned int    Uint32;
    typedef unsigned short    Uint16;
    typedef unsigned char    Uint8;

    /* Signed integer definitions (32bit, 16bit, 8bit) follow... */
    typedef int            Int32;
    typedef short        Int16;
    typedef char        Int8;
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

But I came to know that we cann't use CSL for DM6437. just have a look on this url

https://community.ti.com/forums/p/607/1573.aspx#1573

Could you help me how to use the DSP/BIOS utility for DM6437, since I am novice to this DSP area.
with regards
Saravana
--- On Thu, 15/1/09, Michael Dunn wrote:
From: Michael Dunn
Subject: [c6x] Re: How to add Chip Support Library
To: e...@yahoo.co.in
Cc: c...
Date: Thursday, 15 January, 2009, 10:22 PM

saravana,

On Thu, Jan 15, 2009 at 1:21 AM, saravana muthu wrote:

>

> Hi to all

> I am using TMS320DM6437 and code composer studio 3.3 I have tried to add chip support library header files (like csl.h, csl_mcbsp.h, csl_mcbsphal. h) and I have faced two problems like

> Problem:1

> "C:/CCStudio_ v3.3/C6000/ csl/include/ csl_chiphal. h", line 267: fatal error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number, i.e. 6201)

> So in project build option I have mentioned as CHIP_6201 (Just for time being), since I don't find any Current chip identification symbols for my target cpu like CHIP_6437.

> Problem:2

> "C:/CCStudio_ v3.3/C6000/ csl/include/ tistdtypes. h", line 49: error: duplicate specifier in declaration

> Let me know how to fix this error. Need your guidance.



It would really help if you included the contents of line 49.

mikedunn

>

>

>

>

>
Hi S M,
I am not using 3.3 version, but I used to use 3.1 and I believe there is
not much different between these two Libs.
I think I already had the answer for you, but again
problem 1.
Please check it, or you can do these:
1) Check to see if csl_chiphal.h is built after or before the time
the CHIP_6437
2) -dCHIP_XXXX will be -dCHIP_6437
You can't select CHIP_6201 rather than CHIP_64XX (XX is 37, or 13, or 16,
or 11, etc.)

Problem2:
duplicate specifier in declaration can give u a clue that you need to find
another (extra one) and take it off. Then you'll be OK.

Good luck!
TN

saravana muthu
Sent by: c...
01/16/2009 02:28 PM
Please respond to
e...@yahoo.co.in
To
Michael Dunn
cc
c...
Subject
[c6x] How to add Chip Support Library

Hi,
Actually as I mentioned earlier I am using TMS320DM6437 & CCS 3.3 for my
application. I am working on MCBSP module right now. I dont have any
example code for MCBSP in the "C:\CCS\boards\evmdm6437_v2\tests" So I have
build my source code for this MCBSP by the refernce guide shown in the
link below :

http://focus.ti.com/lit/ug/spru943c/spru943c.pdf But I have failed to
communicate with my slave device.

So I tried to include the header files related to MCBSP from the Chip
Support Library folder.
But here too I have faced another two problem as I mentioned in the
previous thread.

Problem:1
"C:/CCStudio_v3.3/C6000/csl/include/csl_chiphal.h", line 267: fatal error:
#error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number, i.e.
6201)
So in project build option I have mentioned as CHIP_6201 (Just for time
being), since I don?t find any Current chip identification symbols for my
target cpu like CHIP_6437.
Problem:2
"C:/CCStudio_v3.3/C6000/csl/include/tistdtypes.h", line 49: error:
duplicate specifier in declaration

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#if defined(_TMS320C6X)
/* Unsigned integer definitions (32bit, 16bit, 8bit) follow... */
typedef unsigned int Uint32;
typedef unsigned short Uint16;
typedef unsigned char Uint8;

/* Signed integer definitions (32bit, 16bit, 8bit) follow... */
typedef int Int32;
typedef short Int16;
typedef char Int8;
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

But I came to know that we cann't use CSL for DM6437. just have a look on
this url

https://community.ti.com/forums/p/607/1573.aspx#1573

Could you help me how to use the DSP/BIOS utility for DM6437, since I am
novice to this DSP area.
with regards
Saravana
--- On Thu, 15/1/09, Michael Dunn wrote:
From: Michael Dunn
Subject: [c6x] Re: How to add Chip Support Library
To: e...@yahoo.co.in
Cc: c...
Date: Thursday, 15 January, 2009, 10:22 PM

saravana,

On Thu, Jan 15, 2009 at 1:21 AM, saravana muthu
wrote:
>
> Hi to all
> I am using TMS320DM6437 and code composer studio 3.3 I have tried to add
chip support library header files (like csl.h, csl_mcbsp.h, csl_mcbsphal.
h) and I have faced two problems like
> Problem:1
> "C:/CCStudio_ v3.3/C6000/ csl/include/ csl_chiphal. h", line 267: fatal
error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number,
i.e. 6201)
> So in project build option I have mentioned as CHIP_6201 (Just for time
being), since I don't find any Current chip identification symbols for my
target cpu like CHIP_6437.
> Problem:2
> "C:/CCStudio_ v3.3/C6000/ csl/include/ tistdtypes. h", line 49: error:
duplicate specifier in declaration
> Let me know how to fix this error. Need your guidance.


It would really help if you included the contents of line 49.

mikedunn
> Get perfect Email ID for your Resume. Grab now http://in.promos.
yahoo.com/ address
>

--
www.dsprelated. com/blogs- 1/nf/Mike_ Dunn.php

Get perfect Email ID for your Resume. Get before others grab.
Saravana,


Folks, please forgive the top posting...

Here is what is going on.
TI's old CSL model was a separate 'bottom layer' of code. Apparently
the architecture and/or implementation was a bit problematic. This has
been changed to eliminate that bottom layer.
NOTE to others:
To find out if your device is supported by the old CSL model, goto
CCStudio_v3.3/C6000/csl/include/csl_chiphal.h and open with a text editor.
Locate the macro 'CHIP_OROFALL' - it contains the supported devices.
Problem:
Many of TI's examples and app notes are based on the old CSL.
Solution:
Goto ti.com and get 'TMS320DM642 to TMS320DM6437 Migration Guide'. It
will show the differences and how to 'convert' from old to new CSL.
These principles apply to other DaVinci processors as well.

Q1. Are you using a DM6437 EVM?? If yes, I think that it includes the
'PSP Drivers' that you will need.

mikedunn
On Fri, Jan 16, 2009 at 2:28 PM, saravana muthu wrote:
> Hi,
> Actually as I mentioned earlier I am using TMS320DM6437 & CCS 3.3 for my
> application. I am working on MCBSP module right now. I dont have any example
> code for MCBSP in the "C:\CCS\boards\evmdm6437_v2\tests" So I have build my
> source code for this MCBSP by the refernce guide shown in the link below :
>
> http://focus.ti.com/lit/ug/spru943c/spru943c.pdf But I have failed to
> communicate with my slave device.
>
> So I tried to include the header files related to MCBSP from the Chip
> Support Library folder.
> But here too I have faced another two problem as I mentioned in the previous
> thread.
>
> Problem:1
>
> "C:/CCStudio_v3.3/C6000/csl/include/csl_chiphal.h", line 267: fatal error:
> #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number, i.e.
> 6201)
>
> So in project build option I have mentioned as CHIP_6201 (Just for time
> being), since I don't find any Current chip identification symbols for my
> target cpu like CHIP_6437.
>
> Problem:2
>
> "C:/CCStudio_v3.3/C6000/csl/include/tistdtypes.h", line 49: error: duplicate
> specifier in declaration
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> #if defined(_TMS320C6X)
> /* Unsigned integer definitions (32bit, 16bit, 8bit) follow... */
> typedef unsigned int Uint32;
> typedef unsigned short Uint16;
> typedef unsigned char Uint8;
>
> /* Signed integer definitions (32bit, 16bit, 8bit) follow... */
> typedef int Int32;
> typedef short Int16;
> typedef char Int8;
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>
> But I came to know that we cann't use CSL for DM6437. just have a look on
> this url
>
> https://community.ti.com/forums/p/607/1573.aspx#1573
>
> Could you help me how to use the DSP/BIOS utility for DM6437, since I am
> novice to this DSP area.
> with regards
> Saravana
> --- On Thu, 15/1/09, Michael Dunn wrote:
>
> From: Michael Dunn
> Subject: [c6x] Re: How to add Chip Support Library
> To: e...@yahoo.co.in
> Cc: c...
> Date: Thursday, 15 January, 2009, 10:22 PM
>
> saravana,
>
> On Thu, Jan 15, 2009 at 1:21 AM, saravana muthu
> wrote:
>>
>> Hi to all
>> I am using TMS320DM6437 and code composer studio 3.3 I have tried to add
>> chip support library header files (like csl.h, csl_mcbsp.h, csl_mcbsphal. h)
>> and I have faced two problems like
>> Problem:1
>> "C:/CCStudio_ v3.3/C6000/ csl/include/ csl_chiphal. h", line 267: fatal
>> error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number,
>> i.e. 6201)
>> So in project build option I have mentioned as CHIP_6201 (Just for time
>> being), since I don't find any Current chip identification symbols for my
>> target cpu like CHIP_6437.
>> Problem:2
>> "C:/CCStudio_ v3.3/C6000/ csl/include/ tistdtypes. h", line 49: error:
>> duplicate specifier in declaration
>> Let me know how to fix this error. Need your guidance.
>
>
> It would really help if you included the contents of line 49.
>
> mikedunn
>> Get perfect Email ID for your Resume. Grab now http://in.promos.
>> yahoo.com/ address
>> --
> www.dsprelated. com/blogs- 1/nf/Mike_ Dunn.php
>
> ________________________________
> Get perfect Email ID for your Resume. Get before others grab.

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php

_____________________________________