This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6727 Secondary Boot from Parallel Flash

Other Parts Discussed in Thread: SPRC203

Hello,

I'm trying to build a project about TMS320C672x secondary boot from parallel flash with GPIO lines used for extending the address range of Flash.

The connection between DSP and the flash is as follows:

The flash data bus is 16-bit. The A14 to A21 are connected to DSP UHPI.HD[0] to HD[7].

Here is my problem :

I program the flash page change code like"GPIODAT1 = offset >> 15" in the TISecondaryBoot.c, then I burn it into the flash, it does not work.

Should I use PAGE_SWAP_COMMAND to change page? And how to use it ?

Thank you very much!

  • Lina

    Have you got a chance to read the boot loader application notes?

    Boot loader application notes:

    http://www.ti.com/lit/an/spraa69d/spraa69d.pdf

    You can download the example code for secondary loaders and examples here: 

    http://www-s.ti.com/sc/techlit/sprc203.zip 

    Thanks

    David

  • hello David,

    Thanks for your reply!

    I have read the boot loader application notes and downloaded the example code in sprc203.zip.

    But I'm a little confused about the example in the folder "sprc203\TMS320C672xxBootUtils\TMS320C672xxBootUtils\TMS320C672xxBootUtils\Examples\generic\gpio".

    I want to write the secondary bootloader  in C language rather than assembly language. 

    So, I modified the file "TISecondaryBoot.c" and added flash page change code "GPIODAT1 = offset >> 15" in the according to the connection. Somehow, like the FPGA to change the flash page in the file “TISecondaryBootPADK.c” .

    Then, I used genBootcfg.pl to generate myapplicationcfg.c and myapplication.cfg. 

    Finally, I used genAIS.pl to generate myapplication.ais.  

    Because I do not use the command "PAGE_SWAP_COMMAND ", the genAIS script is -i myapplication.out -o myapplication.ais -bootmode raw -pf 16 -cfg myapplication.cfg.

    I do not know where  the mistake is? Do I misunderstand something?