Technical discussions about the TI C3x DSPs (including the C31, C32 and C33 DSPs).
Hi, My flash is 8 bit.I want to write my boot code into flash.I believe if I write an instruction in Code Composer it is by default in 32 bits(e.g,LDI,STI etc).How to convert the instructions to 8 bit.I am using assemblylanguage. somebody has raised a similar question for data to which it was answered use AND3 and RPTS.But will this work for instructions? Asha ------------------------------------ OMAP35x EVM jump-starts low-power apps ------------------------------------ The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x You can post a message or access and search the archives of this group on DSPRelated.com: http://www.dsprelated.com/groups/c3x/1.php _____________________________________
Asha, Your compiler distribution should come with a command line tool called "hex30.exe". This tool converts the byte codes into a form usable by the on-chip bootloader. The documentation is in Chapter 10 of SPRU035. Regards, Bill > -----Original Message----- > From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On > Behalf Of p...@yahoo.co.in > Sent: Monday, July 28, 2008 6:26 AM > To: c...@yahoogroups.com > Subject: [c3x] writing to 8 bit flash > > Hi, > My flash is 8 bit.I want to write my boot code into flash.I believe > if I write an instruction in Code Composer it is by default > in 32 bits(e.g,LDI,STI etc).How to convert the instructions > to 8 bit.I am using assemblylanguage. somebody has raised a > similar question for data to which it was answered use AND3 > and RPTS.But will this work for instructions? > Asha > ------------------------------------ OMAP35x EVM jump-starts low-power apps ------------------------------------ The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x You can post a message or access and search the archives of this group on DSPRelated.com: http://www.dsprelated.com/groups/c3x/1.php _____________________________________
> My flash is 8 bit.I want to write my boot code into flash.I believe
> if I write an instruction in Code Composer it is by default in 32 bits(e.g,LDI,STI
etc).How to convert the instructions to 8 bit.I am using assemblylanguage. somebody has raised
a similar question for data to which it was answered use AND3 and RPTS.But will this work for
instructions?
The linker command must be told the memory is 8 bit, then it will insert
the correct information in the first byte of the memory image to tell
the loader the flash is 8 bit.
Here is an example file that I have used:
/*-------------------------------------*/
/* command file to make a boot eprom */
/*-------------------------------------*/
k3master.out /* input file from linker */
-map k3master.mxp /* map filename */
-i /* intel format */
-o k3master.hex /* output filename */
-memwidth 8 /* physical width of memory system */
-bootorg 400000h /* base address of boot memory */
-cg 10FAh /* configure bus for max wait states */
-e 0080484fh /* execution address */
ROMS
{
FLASH: org=400000h, romwidth=8
}
-boot
org, -cg and various filenames must be changed to match your requirements.
Details are in the C31X software manuals.
Lyle
------------------------------------
OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
You can post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/c3x/1.php
_____________________________________