DSPRelated.com
Forums

Re: Storing data into memory of C31

Started by Keith E. Larson August 11, 2003
Hello Ayu

For help in DSK3D.EXE (DOS/Console debugger), hit the F1 key and scroll down
till you find the MEM2HEX command. For DSK3DW.EXE (newer Windows debugger),
again hit F1, but this time use the windows help 'Find' capability to locate
the command. These are simple commands that save 'chunks' of RAM into files
that are suitable for later reload. If you have the file RAND.ASM presently
assembled, run the following commands. Note how in these commands, the
filename is not within quotes.

load rand
mem2coff test.out,0x809800,16
mem2hex test.hex,0x809800,16
csave

In this case RAND.DSK is loaded and then stored back out to a file using the
MEM2HEX and MEM2COFF commands. Now look at the MEM2HEX command and the
resulting file. You should now see the memory contents of RAND.DSK in a
contiguous block in bootloader form... but nicely commented :-) Change the
length, and you will see essentially the same header, but the following data
section size reflects the new size.

However, please note that the starting point is defined as 0x809802, the
starting point defined in RAND.DSK. COFF/HEX files need a starting point,
and the one that is used is the last one loaded (from RAND.DSK). I suppose
this could be the program counter, but I did not actually think of this as
an option till now. That is... if you want to boot-and-run the file, you
may want to patch this one location.

File Converter
--------------
If you are trying to convert file formats, look into the FILECVRT.EXE
program that converts in a number of directions (DSK->HEX, DSK->COFF,
DSK->BIN, COFF->HEX, COFF->BIN). You will notice that some, like converting
COFF->DSK dont make sense so are not implimented. But even then, if this is
very important, the source files are provided.

New DSK Code (for VC33 DSK, but equally usable for C31 DSK)
-----------------------
Spectrum Digital, who is building the VC33 DSK for TI, is hosting a web site
for the software updates. This link is supposed to automatically start a
login sequence, but if it does not (like my web browser), go to the main
S.D. site and click on "Drivers and Config Utilities", then "University
DSK's" etc.

www.spectrumdigital.com/drivers/docstore/UniversityDSKs/TMS320VC33/

Note: I will likely post another update in a few weeks so keep an eye on
this link.

Where/How to get a VC33 DSK
---------------------------
From the TI web page, search on "TMS320VC33 DSK" and follow the link to the
University DSK's. Or, click on the following. The board you are looking for
is the $150 board.

http://focus.ti.com/general/docs/university/univ.tsp?templateIdX07&navigat
ionId543&path=templatedata/cm/univgen/data/univ_pricing_ovw

Best regards,
Keith Larson
-
At 07:36 AM 8/11/03 -0000, you wrote:
Hi there,

Could anybody explain how to read data that has been stored in the memory of
C31 using MEM2HEX command. This number will be processed offline for results
comparison. I am still strugling to use the following command MAXFLEN,
MEM2COFF but unfortunately I found no documentation on TI's web nor
elsewhere. Hopefully, Mr. Keith Larson would consider helping me.

Please share the lights, anything related to this task is highly appreciated.

Many thanks,

Ayu
+-----------+
|Keith Larson |
|Member Group Technical Staff |
|Texas Instruments Incorporated |
| |
| 281-274-3288 |
| |
| www.micro.ti.com/~klarson |
|-----------+
| TMS320C3x/C4x/VC33 Applications |
| |
| TMS320VC33 |
| The lowest cost and lowest power 500 w/Mflop |
| floating point DSP on the planet! |
+-----------+



Hello Ayu

At the moment the best place to get the new tools is from the Spectrum
Digital web site since S.D is manufacturing the VC33 DSK boards for TI.

www.spectrumdigital.com
then 'Drivers and Utilities' icon (red/white target at upper left)
then University DSK's
then TMS320VC33

All versions of Windows, including the NT variants of NT,2K and XP are
supported with the windows based demos, tools and utilities that do not need
access the printer port. For example the DSK3A assembler, file convert
utilities etc... works as is.

The only real problem is that by wanting to keep the DSK source files
'TI-open' (open as long as you use the source files for TI based projects),
I could not embed or distribute a licensed and therefor costly driver.

To use Win-NT/2K/XP you will need to download and install one of two public
domain drivers. Which one is up to you. If you are using a Win-NT derived
OS and dont already have one of these drivers installed, you should see a
Message box telling you where to go get the drivers.

Notes:

Making a kernel mode driver change in an Windows-NT based OS requires
administrative priveledges and a reboot.

I would love to have the console based applications that need PP access also
working, but have not yet found a suitable path. The bottom line if this
could be made to work is that it would *greatly* simplify the programming
for a novice since you would not need to also learn how to program Windows.

Best regards,
Keith Larson
-------
At 09:08 AM 8/15/03 -0000, you wrote:
Hello Keith,

Many thanks for your explanation. I thought, it would be nice if TI provides
reference for all this information.

Where does this windows debuger C3x available ? I am using 2000 machine
which (I think) doesn't allow for direct access of the parallel port. I am
using two pc's, one with 98SE for this realtime experiment and one with 2000
for all other thing.

Best regards,

Ayu
--- In , "Keith E. Larson" <k-larson2@t...> wrote:
Hello Ayu

For help in DSK3D.EXE (DOS/Console debugger), hit the F1 key and scroll down
till you find the MEM2HEX command. For DSK3DW.EXE (newer Windows debugger),
again hit F1, but this time use the windows help 'Find' capability to locate
the command. These are simple commands that save 'chunks' of RAM into files
that are suitable for later reload. If you have the file RAND.ASM presently
assembled, run the following commands. Note how in these commands, the
filename is not within quotes.

load rand
mem2coff test.out,0x809800,16
mem2hex test.hex,0x809800,16
csave

In this case RAND.DSK is loaded and then stored back out to a file using the
MEM2HEX and MEM2COFF commands. Now look at the MEM2HEX command and the
resulting file. You should now see the memory contents of RAND.DSK in a
contiguous block in bootloader form... but nicely commented :-)

Change the length, and you will see essentially the same header, but the
following data section size reflects the new size.

However, please note that the starting point is defined as 0x809802, the
starting point defined in RAND.DSK. COFF/HEX files need a starting point,
and the one that is used is the last one loaded (from RAND.DSK). I suppose
this could be the program counter, but I did not actually think of this as
an option till now. That is... if you want to boot-and-run the file, you
may want to patch this one location.

File Converter
--------------
If you are trying to convert file formats, look into the FILECVRT.EXE
program that converts in a number of directions (DSK->HEX, DSK->COFF,
DSK->BIN, COFF->HEX, COFF->BIN). You will notice that some, like converting
COFF->DSK dont make sense so are not implimented. But even then, if this is
very important, the source files are provided.

New DSK Code (for VC33 DSK, but equally usable for C31 DSK)
-----------------------
Spectrum Digital, who is building the VC33 DSK for TI, is hosting a web site
for the software updates. This link is supposed to automatically start a
login sequence, but if it does not (like my web browser), go to the main
S.D. site and click on "Drivers and Config Utilities", then "University
DSK's" etc.

www.spectrumdigital.com/drivers/docstore/UniversityDSKs/TMS320VC33/

Note: I will likely post another update in a few weeks so keep an eye on
this link.

Where/How to get a VC33 DSK
---------------------------
From the TI web page, search on "TMS320VC33 DSK" and follow the link to the
University DSK's. Or, click on the following. The board you are looking for
is the $150 board.

http://focus.ti.com/general/docs/university/univ.tsp?templateIdX07&navigat
ionId543&path=templatedata/cm/univgen/data/univ_pricing_ovw

Best regards,
Keith Larson
-
At 07:36 AM 8/11/03 -0000, you wrote:
Hi there,

Could anybody explain how to read data that has been stored in the memory of
C31 using MEM2HEX command. This number will be processed offline for results
comparison. I am still strugling to use the following command MAXFLEN,
MEM2COFF but unfortunately I found no documentation on TI's web nor
elsewhere. Hopefully, Mr. Keith Larson would consider helping me.

Please share the lights, anything related to this task is highly appreciated.

Many thanks,

Ayu
+-----------+
|Keith Larson |
|Member Group Technical Staff |
|Texas Instruments Incorporated |
| |
| 281-274-3288 |
| |
| www.micro.ti.com/~klarson |
|-----------+
| TMS320C3x/C4x/VC33 Applications |
| |
| TMS320VC33 |
| The lowest cost and lowest power 500 w/Mflop |
| floating point DSP on the planet! |
+-----------+