DSPRelated.com
Forums

Tips for beginner in real time

Started by Olivier GRY June 9, 2005
Hi !

I am a beginner in real time coding and I wander if someone can give me
some advices to program a DSP like the C6713 ?

I think there is several rules to follow but I do not know them.
For example, it is best to use switch(case) rather than if... else if
... else if... else or the opposite ?

Thank you very much for your help

Regards,
Olivier GRY





> -----Original Message-----
> From: c6x@c6x@... [mailto:c6x@c6x@...] On Behalf Of
> Olivier GRY
> Sent: Thursday, June 09, 2005 7:14 AM
> To: c6x@c6x@...
> Subject: [c6x] Tips for beginner in real time
>
> Hi !
>
> I am a beginner in real time coding and I wander if someone can give me
> some advices to program a DSP like the C6713 ?
>
> I think there is several rules to follow but I do not know them.

I think the most important rule is don't worry about rules too much. Just
start doing the work. There will be lessons learned, but that is half the
fun.

There are examples that come with the 6713 DSK. That is a good place to
start, i.e. get them working.

Regards,

Robert

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 6/4/2005




> -----Original Message-----
> Date: Thu, 9 Jun 2005 19:37:32 -0500
> From: "robert" <r_obert@r_ob...>
> Subject: RE: Tips for beginner in real time >> -----Original Message-----
>> From: c6x@c6x@... [mailto:c6x@c6x@...] On Behalf Of
>> Olivier GRY
>> Sent: Thursday, June 09, 2005 7:14 AM
>> To: c6x@c6x@...
>> Subject: [c6x] Tips for beginner in real time
>>
>> Hi !
>>
>> I am a beginner in real time coding and I wander if someone can give me
>> some advices to program a DSP like the C6713 ?
>>
>> I think there is several rules to follow but I do not know them.
>
> I think the most important rule is don't worry about rules too much. Just
> start doing the work. There will be lessons learned, but that is half the
> fun.
>
> There are examples that come with the 6713 DSK. That is a good place to
> start, i.e. get them working.
>
> Regards,
>
> Robert
>
> --

The only rule to worry about in realtime programming is to meet the realtime
deadlines.

To begin with I would look at the comp.realtime archives and Amazon.com for
some reference texts. Once you know what the latency is and the difference
between soft and hard realtime, you would feel more confident.

Regards,

Andrew


Thanks Andrew,

I am pretty worried because it is the first time I program a realtime application and it is pretty difficult at my level.
Here are the features of this application (C6713 because it is the only one can be used in space model) :
    McBSP communication with a FPGA (10 MHz for the clock)
    UART communication with a computer (115 200 bauds)
    Manage 10 ADC and 10 DAC to do a locking of the system based on 10 different parameters...

And I am really worried about the end performances of the system...

See why I am looking for tips (and because my company does not want to pay me a formation :'()

Bye ! Olivier

Andrew Nesterov a écrit :
-----Original Message-----
Date: Thu, 9 Jun 2005 19:37:32 -0500
From: "robert" <r...@hotmail.com>
Subject: RE: Tips for beginner in real time
-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
Olivier GRY
Sent: Thursday, June 09, 2005 7:14 AM
To: c...@yahoogroups.com
Subject: [c6x] Tips for beginner in real time
Hi !
I am a beginner in real time coding and I wander if someone can give me
some advices to program a DSP like the C6713 ?
I think there is several rules to follow but I do not know them.
I think the most important rule is don't worry about rules too
much. Just
start doing the work. There will be lessons learned, but that is half the
fun.
There are examples that come with the 6713 DSK. That is a good place to
start, i.e. get them working.
Regards,
Robert
--
The only rule to worry about in realtime programming is to meet the realtime
deadlines.
To begin with I would look at the comp.realtime archives and Amazon.com for
some reference texts. Once you know what the latency is and the difference
between soft and hard realtime, you would feel more confident.
Regards,
Andrew
	


--
space.gif

70, avenue des Martyrs
38000 GRENOBLE
Olivier GRY 
Ingénieur Electronique Tél : 04 76 47 85 88 
Fax : 04 76 46 84 56 
Email : o...@sageis-cso.fr 


Hi,
 
It is likely your DSP code is deeply crashed and CCS cannot
talk anymore with the DSP.
 
When using TI DSP and CCS, file access is done through the JTAG
interface using a communication library.
If your DSP get crashed then JTAG link may get broken and things
similar to what you are listing occurs. If you are sure that the hardware
platform is stable, then it looks like code is damaged
by a fool pointer or something like that.
 
I suggest to go for the old and legacy way : comment code to find out
what could make it crashing.
 
regards,
 
jean-michel.
 
 
----- Original Message -----
From: swapnali patil
To: c...@yahoogroups.com
Sent: Friday, June 10, 2005 3:34 PM
Subject: [c6x] read write from hard-disk

HI! all
can any 1 help for Reading & Writting a *.bmp file to & from the hard-disk, the code is perfectly working with  VC++ editor, while running same code on CCS giving Message as follows.
Trouble running Target CPU: Error 0x0000000C/-2044 Error during: Register, Break Point,  No breakpoint at 0x74000114   Sequence ID: 16 Error Code: -2044 Error Class: 0x0000000C
Error: Error 0x0000000C/-2044 Error during: Register, Break Point,  No breakpoint at 0x74000114   Sequence ID: 16 Error Code: -2044 Error Class: 0x0000000C
Trouble Halting Target CPU: Error 0x0000000C/-2044 Error during: Register, Break Point,  No breakpoint at 0x74000114   Sequence ID: 16 Error Code: -2044 Error Class: 0x0000000C
Failed to remove the debug state from the target before disconnecting.  There may still be breakpoint opcodes em
and Sout as
Invalid CIO command (255).
 
i think i am missing the CCS specific,functions, i am using the Fwrite & Fread.i.e. not working
 



Too much spam in your inbox?

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

Archives:  http://www.dsprelated.com/groups/c6x/1.php

To Post:  Send an email to c...@yahoogroups.com

Other DSP Related Groups: http://www.dsprelated.com/groups.php
hi! ,All!
Thanx for the help.
the problem was actually with LINKER FILE. the file "lnk.cmd" was not suitable for the application as i removed it , the code worked fine, at least for Reading. Mr. Tahir has suggested same. but i don't know how to modify & how to decide what to modify in Linked file. if any body have any Doc or suggetions pls help.
Thanx & Regards
swapnali