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.

How do I Implement the flash boot for C6424 DSK?

Mastermind 41665 points

Replies: 4

Views: 5023

Install FlashBurn utility

The easiest way to burn the FLASH for C6424 is to get the FREE flash burn utility from Software Design solutions at: http://www.softwaredesignsolutions.com/flashburn.aspx

And get the additional board package for C6424: http://www.softwaredesignsolutions.com/flashburn_faq.aspx#FAQ7

Also you need to have CCS installed for the DSK

 

Download Utilities

Download the utilities' files that are going to be used are attached to this post.

 

Prepare the application to be flashed to the EVM

The file should be in hexadecimal format (Motorola S-record or ASCII hex). A CCS COFF file (the .out file) can be converted to proper hex format using the provided hexAIS tool, found in:

...\C642x_FlashAndBootUtils_trunk\C642x\GNU\AISUtils\HexAIS_C642x.exe


After you downloaded the file C642x_FlashAndBootUtils_trunk mentioned above.


Note that the hexAIS tool is a .NET application and requires the Microsoft .NET Framework v2.0 or higher to be installed. See the readme.txt file for more details.


Or use the genAIS perl script (supplied with spraak5a) can be used to generate a binary AIS file and the hexAIS utility can then convert this to the hex format. The


a. Example: Run (Start->Run, type: cmd, a dos window will open) HexAIS_C642x a.out to produce the file a.hex, which can be flashed to the NOR flash of the EVM. This procedure uses the included file, C642x.ini, to provide information on basic initialization of the system PLLs, DDR interface, and EMIFA interface


b. Example: Use the genAIS perl script (from spraak5a) to generate a binary AIS file (this utility provides more options, but is also more complex to use). Then run ‘hexAIS -ais2hex a.ais’ to generate the file ‘a.hex’, which can be flashed to the NOR flash.

This .hex file will be used in step 11 bellow.

 

Instructions

1. Connect the EVM to the PC via the supplied USB cable to use the board’s embedded emulation support.


2. Apply power to the EVM


3. Start C6424 EVM CCStudio v3.3 by clicking on the icon (installed from the Spectrum Digital CD included in the DVDP package) or use your full version set up for the EVM.


4. Make sure that the Switch SW1[4:1] = 0000. See page 42 of: http://c6000.spectrumdigital.com/evm6424/reva/files/EVM6424_TechRef.pdf


5. Connect to the target EVM by hitting ALT+C in CCS.


6. Open the FlashBurn DSK Utility by going to Start->All Programs->Software Design Solution->FlashBurn DSK and running “FlashBurn DSK”.


7. If asked, choose to “Create a New FlashBurn configuration”. Otherwise, within the FlashBurn Utility, go to File->New to start a new configuration file (cdd file).


8. In Step 1 of the FlashBurn DSK dialog box, connect to the target by clicking on the dropdown selection box and choosing “EVM-C6424 (cpu_0)”, then clicking the “Connect” button. The dialog box will update to reflect the connection status.


9. In Step 2, click on the Browse button following the “FBTC Program File” field to locate and select the provided FlashBurn Target Component (FBTC), “FBTCEVM6424.out”. It can be found at: C:\Program Files\SoftwareDesignSolutions\FlashBurnDSK\examples\EVM6424\FBTCEVM6424.out


10. Do a global erase of the NOR flash to prepare for writing, by clicking the “Erase Flash” button in Step 3 of the FlashBurn DSK dialog.


11. In Step 3, browse for the File to burn to the NOR flash. The file should be in hexadecimal format as described above. Leave all other settings at their default. Click the Burn icon or select Program->Program Flash from the menu.


12. A status bar will show the progress of the operation.


13. The results of the flashing operation will appear in the status bar of the FlashBurn window.


14. If the burn fails, do a complete erase of the NOR region, and then try again.


15. Close FlashBurn (optionally saving the configuration file). From within CCS, hit ALT+C to disconnect from the board. Close CCS. Power off the board


16. Set the SW1 and SW2 switches as follows:

SW2-1: Off

SW2-2: On

SW2-3: Off

SW2-4: Off


SW1-1: Off

SW1-2: Off

SW1-3: On

SW1-4: Off

SW1-5: On

SW1-6: Off - this seems to be inverted in the TechRef

SW1-7: On

SW1-8: Off


See page 42 of: http://c6000.spectrumdigital.com/evm6424/reva/files/EVM6424_TechRef.pdf

 

17. Turn on the board and your application should start.

 

 

Thanks go to Mariana for putting this article together.

C642x_FlashAndBootUtils_trunk.zip

4 Replies

  • Hi Bernie,

    I'm writing to you because I'm in trouble with the TMS320C6424 boot loader.

    I tried booting my application by using

    "...\C642x_FlashAndBootUtils_trunk\C642x\GNU\AISUtils\HexAIS_C642x.exe"

    as suggested by you and my application booted and worked well.

    Then, I tried booting my application by using "genAis.pl" inside "spraak5a.zip" downloaded from TI site. I'm using 5.8.8 Active Perl Version.

    I wrote a batch file as follows to launch the "genAIS.pl" application:

    "genAIS.pl -otype bin -i my_app_flash.out -o my_app_flash.ais -bootmode emif -datawidth 16 -cfg my_app_flash.cfg"

    The "my_app_flash.cfg" file is below:

    0x5853590D          # Function Execute Command
    0x00030000          # Selects PLL Configuration function with 3 arguments
    0x00000015          # PLL Multiplier Value
    0x00000000          # PLL Divider Value
    0x00000000          # Oscillator Source
    0x5853590D          # Function Execute Command
    0x00050001          # Selects EMIFA Configuration with 5 arguments
    0x3FFFFFFD          # A1CR Control Register Value
    0x3FFFFFFD          # A2CR Control Register Value
    0x3FFFFFFD          # A3CR Control Register Value
    0x3FFFFFFD          # A4CR Control Register Value
    0x00000000          # NANDFCR control register value
    0x5853590D          # Function Execute Command
    0x00090002          # Selects DDR configuration with 9 arguments
    0x00000017          # DDR PLL Multiplier Value
    0x00000001          # DDR Clock Divider Value
    0x0000000B          # VBPE Clock Divider Value
    0x00000000          # DDR Clock Source
    0x50006405          # DDR Control Register Value
    0x00138822          # SDRAM Config Register Value
    0x16492148          # SDRAM Timer 0 Register Value
    0x000CC702          # SDRAM Timer 1 Register Value
    0x000004EF          # SDRAM Refresh Control Register Value

    Then I used

    "...\C642x_FlashAndBootUtils_trunk\C642x\GNU\AISUtils\HexAIS_C642x.exe -ais2hex my_app_flash.ais"

    and with "FlashBurn DSK" I wrote the NOR flash of my DSP but, in this way, my application doesn't work...and I don't know why....

    I need to boot my application from I2C but, at this point, I dont't know how I can reach this result.

    If you could help me, I would appreciate it a lot.

    Best regards,

    Fabio

  • In reply to fabio di gennaro:

    If your boot is failing, in addition to analyzing the settings you are converting to hex with, you may want to try debugging what is running out of flash. You should be able to use the load symbols capability of CCS to debug code you have loaded into the flash, this may give you some idea of how it is failing, there is an article on debugging from flash here.

  • In reply to Bernie Thompson TI:

    i am also having trouble in having "FBTCEVM6424.out" for flash programming my dsk6713 kit kindly help above links are not working for flashburn utilities....
  • In reply to hatim butt:

    Hi Hatim,

    You are following a very old post. Please create a new thread in order to get faster response.

    Regards,
    Arvind Singh.

    -----------------------------------------------------------------------------------------------
    Please click "Verify Answer" button if this post answers your question.
    -----------------------------------------------------------------------------------------------

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.