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.

Flashing C6713

Other Parts Discussed in Thread: CCSTUDIO

I have been trying to convert my .out file to hex file as per the instruction on below link (processors.wiki.ti.com/.../Flashing_the_C6713_EVM)

But after the step 3 , it unclear what exactly to do.

It would be much better if it has got some pictures for the instructions.

Thanks & Regards 

  • Hi Navaneeth,

    After step 3,

    If you want to flash dsp/bios based .out then you need to follow
    processors.wiki.ti.com/.../Flashing_the_C6713_EVM

    If you are using non dsp/bios .out, then you need to follow
    processors.wiki.ti.com/.../Flashing_the_C6713_EVM

    May i know at which point you are facing problem?
  • As i am using dsp/bios based i followed the steps has given.
    But after the flash. I can can see nothing is happening. So i have questions to make sure i am during it right.
    1. Does Link.cmd file contains only
    Sections
    {
    "bootload" :> BOOT
    }
    2. For step 7 - I don't see the link.cmd file in the link order
    3. hex file is created, but nothing is happening on the DSP.
  • Hi Navaneeth,

    Have you tried to run stand alone application using on-board emulator. First confirm the application which you are trying to flash is working fine.

    1. Does Link.cmd file contains only

    Sections

    {

    "bootload" :> BOOT

    }

    No. you need to add this line to your link.cmd file.

    6) Add a link.cmd file to your project putting the .boot_load at boot:

    You need to download this link.cmd file and have to add above quoted line.

    Also confirm that, At the time of booting All Switches Should be in OFF state.

    SW1 SW2 SW3 SW4

    OFF OFF OFF OFF

    I have attached link.cmd zip for your convenience.

    Link.zip

  • i tried it. Still the same result.
    and the code works all good when i load it normally.
    for step 7 , i still can't see the link file in the link order tab.
    I get the following message
    C:\CCStudio_v3.1\examples\dsk6713\bsl\dsk_app\Debug>hex6x dskapp.cmd
    Translating dskapp.out to ASCII-Hex format...
    "dskapp.out" ==> .hwi_vec
    "dskapp.out" ==> .text
    WARNING: section '.text' at 03000h falls in unconfigured memory (skipped)
    "dskapp.out" ==> .bios
    WARNING: section '.bios' at 05700h falls in unconfigured memory (skipped)
    "dskapp.out" ==> .rtdx_text
    WARNING: section '.rtdx_text' at 078e0h falls in unconfigured memory
    (skipped)
    "dskapp.out" ==> .cinit
    WARNING: section '.cinit' at 085a0h falls in unconfigured memory (skipped)
    "dskapp.out" ==> .stack
    WARNING: section '.stack' at 096b0h falls in unconfigured memory (skipped)
    "dskapp.out" ==> .sysinit
    WARNING: section '.sysinit' at 09ac0h falls in unconfigured memory (skipped)
    "dskapp.out" ==> .trace
    WARNING: section '.trace' at 0a06ch falls in unconfigured memory (skipped)
    "dskapp.out" ==> .const
    WARNING: section '.const' at 0a36ch falls in unconfigured memory (skipped)
    "dskapp.out" ==> .LOG_system$buf
    WARNING: section '.LOG_system$buf' at 0a400h falls in unconfigured memory
    (skipped)
    "dskapp.out" ==> .sts
    WARNING: section '.sts' at 0a620h falls in unconfigured memory (skipped)
    "dskapp.out" ==> .switch
    WARNING: section '.switch' at 0a6b0h falls in unconfigured memory (skipped)
    "dskapp.out" ==> .gblinit
    WARNING: section '.gblinit' at 0a6f8h falls in unconfigured memory (skipped)
    "dskapp.out" ==> .log
    WARNING: section '.log' at 0a714h falls in unconfigured memory (skipped)
    "dskapp.out" ==> .trcdata
    WARNING: section '.trcdata' at 0a72ch falls in unconfigured memory (skipped)
    "dskapp.out" ==> .pinit
    WARNING: section '.pinit' at 0a738h falls in unconfigured memory (skipped)
    "dskapp.out" ==> .args
    WARNING: section '.args' at 0a74ch falls in unconfigured memory (skipped)
  • Hi Navaneeth,

    Have you modified anything in example code, or using your own developed code?

    I suspect you are getting these errors because memory locations are not configured properly in .cmd file.
  • Hi Navaneeth,

    Try to change .cmd file.

    ROMS
    {
    FLASH: org = 90000000h, len = 0x3000,romwidth = 8, files = {BlinkDSK6713.hex}
    }

    Hope it will resolve your problem.
    Do let us know if you still face any issue.
  • Hi Aravind,
    I have been trying to convert the code which was given by TI for blinking the led.

    #include "dsk6713.h"
    #include "dsk6713_led.h"
    #include "dsk6713_dip.h"


    /*
    * main() - Main code routine, initializes BSL and runs LED application
    */

    /*
    * EXTRA: Pressing DIP switch #3 changes LED #3 from off to on.
    */

    void main()
    {
    /* Initialize the board support library, must be first BSL call */
    DSK6713_init();

    /* Initialize the LED and DIP switch modules of the BSL */
    DSK6713_LED_init();
    DSK6713_DIP_init();

    while(1)
    {
    /* Toggle LED #0 */
    DSK6713_LED_toggle(0);

    /* Check DIP switch #3 and light LED #3 accordingly, 0 = switch pressed */
    if (DSK6713_DIP_get(3) == 0)
    /* Switch pressed, turn LED #3 on */
    DSK6713_LED_on(3);
    else
    /* Switch not pressed, turn LED #3 off */
    DSK6713_LED_off(3);

    /* Spin in a software delay loop for about 200ms */
    DSK6713_waitusec(200000);
    }
    }

    I still have the problem of flash not doing any thing.
    Also i want to let you know , the following steps doesn't work ,

    Type (replace the path below with the path for the .cmd file for your application if needed):

    C:\CCStudio_v3.1\c6000\cgtools\bin\hex6x C:\Program Files\SoftwareDesignSolutions\FlashBurnDSK\examples\DSK6713\BlinkDSK6713\BlinkDSK6713_ahex.cmd
    c) A .hex file will be generated.
    I get the error saying, .out file is not found.

    instead i used
    hex6x blinkDSK6713_AHEX.cmd
  • Hi,
    I am still getting the unconfigured memory error for the changes you had asked me to do.
    ROMS
    {
    FLASH: org = 90000000h, len = 0x3000,romwidth = 8, files = {BlinkDSK6713.hex}
    }

    Should i change any memory address while doing step 1 and 2?
  • Also want to make sure if i am using the write .ASM file

    .ref _c_int00
    .global RESET_RST

    FLASH_START .equ 0x90000400 ;flash start address
    CODE_START .equ 0x00000400 ;start of non boot code
    CODE_SIZE .equ 0x00003000 ;application code size in byte

    .sect "vectors"
    RESET_RST:

    NOP ; mvkl .S2 _c_int00, B0
    NOP ; mvkh .S2 _c_int00, B0
    NOP ; B .S2 B0
    NOP
    NOP
    NOP
    NOP
    NOP

    NMI_RST:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    RESV1:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    RESV2:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT4:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT5:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT6:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT7:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT8:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT9:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT10:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT11:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT12:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT13:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT14:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    INT15:
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    .sect "bootload"

    _boot_start:
    mvkl FLASH_START,B4 ;flash start address ->B4
    mvkh FLASH_START,B4

    mvkl CODE_START,A4 ;apps code start address ->A4
    mvkh CODE_START,A4
    zero A1

    _boot_loop1:
    ldb *B4++,B5 ; flash read
    mvkl CODE_SIZE-4,B6 ; B6 = BOOT_SIZE -1024

    add 1,A1,A1 ;A1+=1,inc outer counter
    || mvkh CODE_SIZE-4,B6

    cmplt A1,B6,B0
    nop
    stb B5,*A4++
    [B0] b _boot_loop1
    nop 5

    mvkl .S2 _c_int00, B0
    mvkh .S2 _c_int00, B0
    B .S2 B0
    nop 5
  • Hi Navneeth,

    I am attaching working led example project for your reference.

    It is working fine on my end.

    You need to build it and the resulted .out file, convert in into .hex using hex6x.exe 

    You will find hex6x.exe in your ccs installation directory.

    ~\ccsv5\tools\compiler\c6000_7.4.4\bin\

    You need to go at this path using command line.

    After that execute this command,

    hex6x.exe ~\led\FlashBlink_ahex.cmd(Edit this path with your current path of the project).

    I hope it will work out for you.

    3857.led.zip

  • I was successfully able to convert the hex file for the led example. But i could not convert the tone generation example given by Ti. I get the unconfigured memory error.

    Have attached my file along. tone.zip