Forums

Create a S-Record File for Data Flash???

Started by wpethe February 4, 2002
Hi,

I am going to use the serial bootloadere to load my application to
DSP56F803. (Download the S-record File)
I have only the serial Interface to connect with the PC.
(I have read the AN1926)

Now some Problems (perhaps very simple)

But I like to use some Pages of Data Flash as Library (only for
Configuration and Constant STRINGs (to work with an AN LCD). The
Strings should be in different language, and on Page should be in
English, one in German, one in French...
At every page the strings should start at the same Memory Position
(same "Subaddress")
How can I build such a S-Record File and append it to the S-Record
File (of my application) build from the Compiler? Are there any tools?
Or should I write a secial application to write the Strings at the
Position I like. And then, after I download and start the
Flash-Prepare Application Reset and download the Application to work
with...
It is not very simple to make it.

In AN1926 page 6 There is written that SDK 2.4 will include an
Windows-Application to program DSP via JTAG port.
I did not find any application.
Should I clean my glasses or is there no application?

Thanks

W. Pethe



One way to do what you wish is to define a structure of constant strings
(fixed length) in some file such as "labels.h". Link labels.h to the Data
Flash area in your embedded controller - reference as usual. Now the tricky
part --> write a custom PC-based application that also links with labels.h.
The PC app steps through labels.h and writes an S-Record to a file for each
label. When writing the S-Record, you can direct it to specific addresses,
put header info on, etc. My personal favorite is to do all this in DOS and
write to Standard Out, but them that's what I'm used to. The PC-based
application could use different strings on top of the same structure to
represent different languages. Example:

English
File "English Labels.h", Labels[0] = "Hello"

Hawaiian
File "Hawaii Labels.h", Labels[0] = "Aloha"

I could be more specific, but maybe that's enough to get you rolling. I
implemented it that way about 6 years ago. Maybe we have more advanced
techniques now. You can get into Big Problems if you've only allowed for
short strings but it takes more words in different languages to describe
similar concepts. I was limited by the size of an LCD display back then -
it was a hardware limitation - made the software easier.

DWH

-----Original Message-----
From: wpethe [mailto:]
Sent: Monday, February 04, 2002 7:57 AM
To:
Subject: [motoroladsp] Create a S-Record File for Data Flash??? Hi,

I am going to use the serial bootloadere to load my application to
DSP56F803. (Download the S-record File)
I have only the serial Interface to connect with the PC.
(I have read the AN1926)

Now some Problems (perhaps very simple)

But I like to use some Pages of Data Flash as Library (only for
Configuration and Constant STRINGs (to work with an AN LCD). The
Strings should be in different language, and on Page should be in
English, one in German, one in French...
At every page the strings should start at the same Memory Position
(same "Subaddress")
How can I build such a S-Record File and append it to the S-Record
File (of my application) build from the Compiler? Are there any tools?
Or should I write a secial application to write the Strings at the
Position I like. And then, after I download and start the
Flash-Prepare Application Reset and download the Application to work
with...
It is not very simple to make it.

In AN1926 page 6 There is written that SDK 2.4 will include an
Windows-Application to program DSP via JTAG port.
I did not find any application.
Should I clean my glasses or is there no application?

Thanks

W. Pethe
<http://rd.yahoo.com/M!0675.1853748.3359285.1261774/D=egroupweb/S057718
55:HM/A6910/R=0/*https://www.consumerinfo.com/cb/yahooccms/form_online_a1
.asp?sc856015> Click Here!

<http://us.adserver.yahoo.com/l?M!0675.1853748.3359285.1261774/D=egroupmai
l/S05771855:HM/A6910/rands7162556>

_____________________________________
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:

To Join:

To Post:

To Leave:

Archives: http://www.yahoogroups.com/group/motoroladsp
<http://www.yahoogroups.com/group/motoroladsp>

More Groups: http://www.dsprelated.com/groups.php3
<http://www.dsprelated.com/groups.php3 ">http://docs.yahoo.com/info/terms/> .


Hi,

Here is what our support team said,

I don't understand why you cannot include these configuration and strings as
part of your application. (That way it will all be built into the same
S-record file). As far as the hurdles involved with the different language
strings, I have no idea how to do that. But, as far as putting constant
data into data flash memory, you should be able to use the Metrowerks linker
and compiler to be able to do that. As a matter of fact, in the next
upcoming release 5.0 of CodeWarrior, the compiler will have the ability to
create another section entitled .rodata (for read only data), which can
easily be mapped to data flash.

I wouldn't know how to do it if you have to append the S-record to your
applications S-record.

Sorry I couldn't be of more help.

Ron

> I am going to use the serial bootloadere to load my application to
> DSP56F803. (Download the S-record File)
> I have only the serial Interface to connect with the PC.
> (I have read the AN1926)

> Now some Problems (perhaps very simple)
>
> But I like to use some Pages of Data Flash as Library (only for
> Configuration and Constant STRINGs (to work with an AN LCD). The
> Strings should be in different language, and on Page should be in
> English, one in German, one in French...
> At every page the strings should start at the same Memory Position
> (same "Subaddress")
> How can I build such a S-Record File and append it to the S-Record
> File (of my application) build from the Compiler? Are there any tools?
> Or should I write a secial application to write the Strings at the
> Position I like. And then, after I download and start the
> Flash-Prepare Application Reset and download the Application to work
> with...
> It is not very simple to make it.
>
> In AN1926 page 6 There is written that SDK 2.4 will include an
> Windows-Application to program DSP via JTAG port.
> I did not find any application.
> Should I clean my glasses or is there no application?

--
Free Programming Courses at CodeWarrior U
<http://www.codewarrioru.com>
Now Including Palm OS Programming & PowerPlant Courses

Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - - http://www.metrowerks.com