DSPRelated.com
Forums

bootloadin 5409 from tow 8bit eprom

Started by Yasser Attarizzi August 25, 2002
Hi all
i try to bootload my 5409 with two 32*8 bit eprom,i am using hex500 3.7 to
build a boottable but at the begining of the table i couldn't find 10aa and
there is nothing at 0xffff, i use this cmd file for hex 500:

test3.out /* COFF object input file */
-map example2.map
-i /* Select Intel format */
/*-byte*/ /* Select byte increment for addresses */

-boot
-bootorg 0x8000
-memwidth 16 /* Set EPROM system memory width */
-romwidth 8 /* Set physical width of ROM device */
ROMS
{
PAGE 0 : EPROM : origin = 0x00, length = 0x1000,

files = {low8.bit, upp8.bit}
}
-e 0x80
and this is the ascii format of output file:
00 80 00 01 F0 73 02 00
02 00 00 15 F7 BB EA 00 77 01 FF FF 77 18 00 50 69 1D 00 60 F7 BD F4 95
EC 2F F4 95 F4 95 F6 BD F4 95 F0 70 07 FF F4 95 F4 95 F0 73 02 08 FC 00
00 00


please help me in this issue



I believe your first problem is related to the way you
created the .out file. Make sure your use -v548 option
when you compile the source, otherwise the HEX500
utility won't create the BOOT table for you.

To place the starting address of your boot table in
address 0xFFFF, you need to create it in your linker
command file, like the following:

/* Fill value is the boot table starting address*/
BOOTDATA: LOAD=0xFFFF PAGE 0, FILL=0x8000
{
. += 1;
}

and put an extra section in the command file for
HEX500 program:

ROMS:
{
PAGE 0 : ROM2 : o=0x0FFFF, l=0x0001,
files={bt_low8.bit, bt_upp8.bit}
}

However, you will need to put all the sections name in
the command file as well, like the example below...

SECTIONS:
{
.stack boot
.text boot
.cinit boot
.cio boot
.switch boot
.bss boot
.const boot
.sysmem boot

BOOTDATA
}

If you find all this is too much trouble, place the
boot table starting address from your EPROM burning
program directly. :)

Good luck.

Ben
--- Yasser Attarizzi <> wrote:
> Hi all
> i try to bootload my 5409 with two 32*8 bit eprom,i
> am using hex500 3.7 to
> build a boottable but at the begining of the table i
> couldn't find 10aa and
> there is nothing at 0xffff, i use this cmd file for
> hex 500:
>
> test3.out /* COFF object input file */
> -map example2.map
> -i /* Select Intel format */
> /*-byte*/ /* Select byte increment for addresses */
>
> -boot
> -bootorg 0x8000
> -memwidth 16 /* Set EPROM system memory width */
> -romwidth 8 /* Set physical width of ROM device */
> ROMS
> {
> PAGE 0 : EPROM : origin = 0x00, length = 0x1000,
>
> files = {low8.bit, upp8.bit}
> }
> -e 0x80 >
> and this is the ascii format of output file: >
> 00 80 00 01 F0 73 02 00
> 02 00 00 15 F7 BB EA 00 77 01 FF FF 77 18 00 50 69
> 1D 00 60 F7 BD F4 95
> EC 2F F4 95 F4 95 F6 BD F4 95 F0 70 07 FF F4 95 F4
> 95 F0 73 02 08 FC 00
> 00 00
> >
>
> please help me in this issue >
> _____________________________________
> 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: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://www.yahoogroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/


=====
___________________________________________________________
~ ~ _/_/_/_/ _/_/_/_/ _/_/ _/
. . _/ _/ _/ _/ _/ _/ Benjamin Chan
' _/_/_/ _/_/_/ _/ _/ _/ []
o _/ _/ _/ _/ _/_/
_/_/_/_/ _/_/_/_/ _/ _/

__________________________________________________