Hello Mike,
I am working on C6711 and at
last succeed in runing my application out of Flash. Hope some my experience tips
will help u as well. But first of all I would like to know if u r using
interrupts or not?
Here re some steps to take care of.
1. Use the default boot.asm for ur board. Delete the "copy to Flash"
section from this file.
2. Check for the EMIF register initializations in this boot loader.
3. Now in the linker command file define memory sections as:
BOOT_RAM: o = 00000000h l =
00000400h
vecs: o = 00000400h l = 400h (if u r using interrupts) IRAM: o = 00000800h l = [ur code size] and be sure about ur link order for sections it must be something like
this:
.boot_load
> BOOT_RAM
"vectors" > vecs .text > [ ur memory sections] .cinit > -do- .const > -do- .stack
> -do-
.bss > -do-
.data
> -do-
.far
> -do-
now in ur application initialize ISTP to 0x400.
compile and link ur application now from map file see the code size and
change it in the boot asm file and compile and link again.
now create the hex file and write it on flash.
Here if ur using SDRAM as well in boot asm file add another copy loop and
add address for the SDRAM start and SDRAM code size from map file. ckeck
for ur heap and stack sizes and locate them on some memory that doesn't
fall in the "copy from rom to ram code sections"
I hope it will help u.
Please feel free if u have any question.
Regards,
Shazia
Mike Petty <m...@nmt.edu> wrote: I'm currently having a bunch of trouble getting my C6713 to boot off of Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now |