Reply by shazia raja February 20, 20042004-02-20
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
flash properly. I can program and run the blink LED example just fine.
But when I try to program my code in, I can never get it to work. I've
tried doing some modifications on the blink boot code, the post boot
code and some other examples. I followed one of TI's documents that had
me segment the flash into FLASH_BOOT and FLASH_REST. The compilation,
conversion to a hex file, and programming of the flash work fine. But I
just don't get my code to boot. I assume that's because my boot loader
or memory map has some type of error in it. I just feel like I'm
missing something here. What's the general procedure you have to do to
get a boot loader working properly?

Mike
_____________________________________
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 c...@yahoogroups.com

To Post: Send an email to c...@yahoogroups.com

To Leave: Send an email to c...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/c6x

Other Groups: http://www.dsprelated.com

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/c6x/

<*> To unsubscribe from this group, send an email to:
c...@yahoogroups.com

<*>


Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now

Reply by Mike Petty February 19, 20042004-02-19
I'm currently having a bunch of trouble getting my C6713 to boot off of
flash properly. I can program and run the blink LED example just fine.
But when I try to program my code in, I can never get it to work. I've
tried doing some modifications on the blink boot code, the post boot
code and some other examples. I followed one of TI's documents that had
me segment the flash into FLASH_BOOT and FLASH_REST. The compilation,
conversion to a hex file, and programming of the flash work fine. But I
just don't get my code to boot. I assume that's because my boot loader
or memory map has some type of error in it. I just feel like I'm
missing something here. What's the general procedure you have to do to
get a boot loader working properly?

Mike