DSPRelated.com
Forums

DSK6416 with Chassaing's book

Started by konr...@hereford35.freeserve.co.uk November 4, 2005
Hi,

I have recently bought Rulph Chassaing's book together with the C6416DSK. Having installed the CCS and run the TONE.C demo I started to follow the book. I have copied DSK6416\sine8_LED into the MyProjects folder. I have set up the project as per the book. The project will not compile unless I copy the dsk6416.h and the dsk6416_AIC23.h files into the source directory. Then I have the following build output: -

[c6416dskinit.c] "C:\CCStudio\C6000\cgtools\bin\cl6x" -g -q -s -fr"C:/CCStudio/MyProjects/sine8_LED/Debug" -d"CHIP_6416" -ms0 -mv6400 -@"Debug.lkf" "c6416dskinit.c"

[Sine8_LED.c] "C:\CCStudio\C6000\cgtools\bin\cl6x" -g -q -s -fr"C:/CCStudio/MyProjects/sine8_LED/Debug" -d"CHIP_6416" -ms0 -mv6400 -@"Debug.lkf" "Sine8_LED.c"

[Vectors_poll.asm] "C:\CCStudio\C6000\cgtools\bin\cl6x" -g -q -s -fr"C:/CCStudio/MyProjects/sine8_LED/Debug" -d"CHIP_6416" -ms0 -mv6400 -@"Debug.lkf" "Vectors_poll.asm"

[Linking...] "C:\CCStudio\C6000\cgtools\bin\cl6x" -@"Debug.lkf"

<Linking>

>> warning: Detected a near (DP-relative) data access to a far

(non-.bss-relative) symbol. The 'far' qualifier is required to
access this symbol from C/C++ source. Located in
C:\CCStudio\MyProjects\sine8_LED\Debug\c6416dskinit.obj, section
.text, SPC offset 00000040
Build Complete,

0 Errors, 1 Warnings, 0 Remarks.

Single stepping I get as far as

if (poll) while(!MCBSP_xrdy(DSK6416_AIC23_DATAHANDLE));//if ready to transmit

at which point the program hangs

Until I resolve this I cannot proceed with the rest of the book / examples. Including C:\CCStudio\C6000\DSK6416\lib\dsk6416csl.lib in the project should include dsk6416.h?


I am having the exact same trouble with the Sine8_LED project for the
C6713DSK. I'm thinking its a problem with the MCBSP and the AIC23 Codec. It
appears as if the Codec was opened and the MCBSP, but the program tries to
write to the MCBSP and not the Codec...I still have to investigate...any
suggestions would be helpful.

On 11/4/05, konradb@konr... <
konradb@konr...> wrote:
>
> Hi,
>
> I have recently bought Rulph Chassaing's book together with the C6416DSK.
> Having installed the CCS and run the TONE.C demo I started to follow the
> book. I have copied DSK6416\sine8_LED into the MyProjects folder. I have set
> up the project as per the book. The project will not compile unless I copy
> the dsk6416.h and the dsk6416_AIC23.h files into the source directory.
> Then I have the following build output: -
>
> [c6416dskinit.c] "C:\CCStudio\C6000\cgtools\bin\cl6x" -g -q -s
> -fr"C:/CCStudio/MyProjects/sine8_LED/Debug" -d"CHIP_6416" -ms0 -mv6400 -@"
> Debug.lkf" "c6416dskinit.c"
>
> [Sine8_LED.c] "C:\CCStudio\C6000\cgtools\bin\cl6x" -g -q -s
> -fr"C:/CCStudio/MyProjects/sine8_LED/Debug" -d"CHIP_6416" -ms0 -mv6400 -@"
> Debug.lkf" "Sine8_LED.c"
>
> [Vectors_poll.asm] "C:\CCStudio\C6000\cgtools\bin\cl6x" -g -q -s
> -fr"C:/CCStudio/MyProjects/sine8_LED/Debug" -d"CHIP_6416" -ms0 -mv6400 -@"
> Debug.lkf" "Vectors_poll.asm"
>
> [Linking...] "C:\CCStudio\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
>
> <Linking>
>
> >> warning: Detected a near (DP-relative) data access to a far
>
> (non-.bss-relative) symbol. The 'far' qualifier is required to
> access this symbol from C/C++ source. Located in
> C:\CCStudio\MyProjects\sine8_LED\Debug\c6416dskinit.obj, section
> .text, SPC offset 00000040
> Build Complete,
>
> 0 Errors, 1 Warnings, 0 Remarks.
>
> Single stepping I get as far as
>
> if (poll) while(!MCBSP_xrdy(DSK6416_AIC23_DATAHANDLE));//if ready to
> transmit
>
> at which point the program hangs
>
> Until I resolve this I cannot proceed with the rest of the book /
> examples. Including C:\CCStudio\C6000\DSK6416\lib\dsk6416csl.lib in the
> project should include dsk6416.h?