From: Foad Askari on
Hey,

I am just getting started with a project and we are using Code Composer Studio v3.1 with a eZdsp kit for TMS320F2812.
do you know of any tutorial on how to code this CPU with this software and even how to get started. I appreciate any help as I am not familiar with this program at all.

Thanks


"Rui " <ruimac(a)gmail.com> wrote in message <g9j8iq$35s$1(a)fred.mathworks.com>...
> Hi,
>
> I make a project that used Toolbox for DSP Texas
> Instruments C2000. I tried to use the RTDX functions (write
> and read) in Simulink for TMS320F2812 processor.
> But when press in button "Incremental Build" to generate
> the code for CCS, appear a error dialog window with next
> message:
>
> " Error building Real-Time Workshop target for block
> diagram 'c2812rtdxtest'. MATLAB error message:
> Error using ==> callMakeHook.p>callMakeHook at 47
> The call to ccslink_ert_make_rtw_hook, during the exit hook
> generated the following error:
> Error using ==> i_exitHookpoint at 88
> Error while creating the project:
> Error using ==> ccs.ccsdsp.fileparamparser at 32
> Specified file does not exist on CCS path "
>
> I don?t know what "specified file does not exist on CCS
> path". I hope somebody give me a little tips to fix it.
>
> Thanks.
> Rui Machado
>
From: Philip Chu on
To start coding with F2812 CPU, you may refer to following documents:

F281x Data Manual - sprs174r.pdf
C281x C/C++ Header Files and Peripheral Examples - SPRC097.pdf

If you are using Simulink Target Support Package, you may look at C2000
demos with F2812 board models.

Hope this helps.

Thanks,
Philip


"Foad Askari" <foadaskari(a)hotmail.com> wrote in message
news:hutncc$90m$1(a)fred.mathworks.com...
> Hey,
>
> I am just getting started with a project and we are using Code Composer
> Studio v3.1 with a eZdsp kit for TMS320F2812.
> do you know of any tutorial on how to code this CPU with this software and
> even how to get started. I appreciate any help as I am not familiar with
> this program at all.
>
> Thanks
>
>
> "Rui " <ruimac(a)gmail.com> wrote in message
> <g9j8iq$35s$1(a)fred.mathworks.com>...
>> Hi,
>>
>> I make a project that used Toolbox for DSP Texas
>> Instruments C2000. I tried to use the RTDX functions (write
>> and read) in Simulink for TMS320F2812 processor. But when press in button
>> "Incremental Build" to generate
>> the code for CCS, appear a error dialog window with next
>> message:
>>
>> " Error building Real-Time Workshop target for block
>> diagram 'c2812rtdxtest'. MATLAB error message:
>> Error using ==> callMakeHook.p>callMakeHook at 47
>> The call to ccslink_ert_make_rtw_hook, during the exit hook
>> generated the following error:
>> Error using ==> i_exitHookpoint at 88
>> Error while creating the project:
>> Error using ==> ccs.ccsdsp.fileparamparser at 32
>> Specified file does not exist on CCS path "
>>
>> I don?t know what "specified file does not exist on CCS
>> path". I hope somebody give me a little tips to fix it.
>>
>> Thanks.
>> Rui Machado
>>
>


From: Foad Askari on
Thanks for your response.
I have looked at those. I can't follow it very well.
I am trying to use this kit to generate 0 or 5 v output to my motor controller.
I just realized that it doesnt output analog so I am buying a DAC.

do you know of any basic coding examples such as blinking a LED or even reaching the input and output pins.
Thanks


but if you can help me with
"Philip Chu" <pchu(a)mathworks.com> wrote in message <hutvj0$acd$1(a)fred.mathworks.com>...
> To start coding with F2812 CPU, you may refer to following documents:
>
> F281x Data Manual - sprs174r.pdf
> C281x C/C++ Header Files and Peripheral Examples - SPRC097.pdf
>
> If you are using Simulink Target Support Package, you may look at C2000
> demos with F2812 board models.
>
> Hope this helps.
>
> Thanks,
> Philip
>
>
> "Foad Askari" <foadaskari(a)hotmail.com> wrote in message
> news:hutncc$90m$1(a)fred.mathworks.com...
> > Hey,
> >
> > I am just getting started with a project and we are using Code Composer
> > Studio v3.1 with a eZdsp kit for TMS320F2812.
> > do you know of any tutorial on how to code this CPU with this software and
> > even how to get started. I appreciate any help as I am not familiar with
> > this program at all.
> >
> > Thanks
> >
> >
> > "Rui " <ruimac(a)gmail.com> wrote in message
> > <g9j8iq$35s$1(a)fred.mathworks.com>...
> >> Hi,
> >>
> >> I make a project that used Toolbox for DSP Texas
> >> Instruments C2000. I tried to use the RTDX functions (write
> >> and read) in Simulink for TMS320F2812 processor. But when press in button
> >> "Incremental Build" to generate
> >> the code for CCS, appear a error dialog window with next
> >> message:
> >>
> >> " Error building Real-Time Workshop target for block
> >> diagram 'c2812rtdxtest'. MATLAB error message:
> >> Error using ==> callMakeHook.p>callMakeHook at 47
> >> The call to ccslink_ert_make_rtw_hook, during the exit hook
> >> generated the following error:
> >> Error using ==> i_exitHookpoint at 88
> >> Error while creating the project:
> >> Error using ==> ccs.ccsdsp.fileparamparser at 32
> >> Specified file does not exist on CCS path "
> >>
> >> I don?t know what "specified file does not exist on CCS
> >> path". I hope somebody give me a little tips to fix it.
> >>
> >> Thanks.
> >> Rui Machado
> >>
> >
>
From: Philip on
If you go to www.ti.com and search for SPRC097 and download SPRC097.zip, after you install it, you will find a lot examples about how to use C281x ADC, GPIO, SCI etc peripherals.

If you are using Target Support Package with Simulink, you may refer to this demo to get started with:

ADC-PWM Synchronization via ADC Interrupt

Thanks,
Philip

"Foad Askari" <foadaskari(a)hotmail.com> wrote in message <hvtsko$oql$1(a)fred.mathworks.com>...
> Thanks for your response.
> I have looked at those. I can't follow it very well.
> I am trying to use this kit to generate 0 or 5 v output to my motor controller.
> I just realized that it doesnt output analog so I am buying a DAC.
>
> do you know of any basic coding examples such as blinking a LED or even reaching the input and output pins.
> Thanks
>
>
> but if you can help me with
> "Philip Chu" <pchu(a)mathworks.com> wrote in message <hutvj0$acd$1(a)fred.mathworks.com>...
> > To start coding with F2812 CPU, you may refer to following documents:
> >
> > F281x Data Manual - sprs174r.pdf
> > C281x C/C++ Header Files and Peripheral Examples - SPRC097.pdf
> >
> > If you are using Simulink Target Support Package, you may look at C2000
> > demos with F2812 board models.
> >
> > Hope this helps.
> >
> > Thanks,
> > Philip
> >
> >
> > "Foad Askari" <foadaskari(a)hotmail.com> wrote in message
> > news:hutncc$90m$1(a)fred.mathworks.com...
> > > Hey,
> > >
> > > I am just getting started with a project and we are using Code Composer
> > > Studio v3.1 with a eZdsp kit for TMS320F2812.
> > > do you know of any tutorial on how to code this CPU with this software and
> > > even how to get started. I appreciate any help as I am not familiar with
> > > this program at all.
> > >
> > > Thanks
> > >
> > >
> > > "Rui " <ruimac(a)gmail.com> wrote in message
> > > <g9j8iq$35s$1(a)fred.mathworks.com>...
> > >> Hi,
> > >>
> > >> I make a project that used Toolbox for DSP Texas
> > >> Instruments C2000. I tried to use the RTDX functions (write
> > >> and read) in Simulink for TMS320F2812 processor. But when press in button
> > >> "Incremental Build" to generate
> > >> the code for CCS, appear a error dialog window with next
> > >> message:
> > >>
> > >> " Error building Real-Time Workshop target for block
> > >> diagram 'c2812rtdxtest'. MATLAB error message:
> > >> Error using ==> callMakeHook.p>callMakeHook at 47
> > >> The call to ccslink_ert_make_rtw_hook, during the exit hook
> > >> generated the following error:
> > >> Error using ==> i_exitHookpoint at 88
> > >> Error while creating the project:
> > >> Error using ==> ccs.ccsdsp.fileparamparser at 32
> > >> Specified file does not exist on CCS path "
> > >>
> > >> I don?t know what "specified file does not exist on CCS
> > >> path". I hope somebody give me a little tips to fix it.
> > >>
> > >> Thanks.
> > >> Rui Machado
> > >>
> > >
> >