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 DSK6713

Hi,

I am reporting the issue. I have been trying to convert the basic LED BLINK code to HEX format. the code was given by TI. I get the following error while converting the LED.out to hex format using HEX6X. Have attached all the files which was used and also error which i see.

C File

#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);
}
}

Hex File Conversion.cmd file

 

/* FlashBlink_hex.cmd -- Hex Converter
* for FlashBlink Demo
*/

/* To use this, from a DOS window.
To build a hex file, build the
FlashBlink application using CCS
* FlashBlink.mak file. After that,
* open a DOS window in the same dir.
* and type
* >hex6x FlashBlink_ahex.cmd
*
* to produce .hex for downloading.
* Use the FlashBurn application to download.
*/

D:\DSK6713\DSK6713\DSK6713\examples\dsk6713\bsl\led\Debug\led.out

-a

-memwidth 8

-image

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

LINKER FILE

 

/*******************************************************************************
* Copyright 2004-2005 - Software Design Solutions, Inc. All rights reserved.
*
* Portions of this work have been provided under license with Texas
* Instruments Inc.
*
* $RCSfile: BlinkDSK6713.cmd,v $
* $Revision: 1.2 $
*
* Linker command file for BlinkDSK6713
******************************************************************************/

MEMORY
{
vecs: o = 00000000h l = 00000200h
boot: o = 00000200h l = 00000200h
IRAM: o = 00000400h l = 0000FA00h
CE0: o = 80000000h l = 01000000h
FLASHBOOT: o = 90000000h l = 00000400h
FLASH: o = 90000400h l = 0007FC00h

}

SECTIONS
{
"vectors" : {} > FLASHBOOT run = vecs
"bootload" : {} > FLASHBOOT run = boot
.text : {} > FLASH run = IRAM, LOAD_START(FLASH_TEXT_START), RUN_START(RAM_TEXT_START), SIZE(TEXT_SIZE)
.cinit : {} > FLASH run = IRAM, LOAD_START(FLASH_CINIT_START), RUN_START(RAM_CINIT_START), SIZE(CINIT_SIZE)
.const : {} > FLASH run = IRAM, LOAD_START(FLASH_CONST_START), RUN_START(RAM_CONST_START), SIZE(CONST_SIZE)
.switch : {} > FLASH run = IRAM, LOAD_START(FLASH_SWITCH_START), RUN_START(RAM_SWITCH_START), SIZE(SWITCH_SIZE)
.tables : {} > FLASH run = IRAM, LOAD_START(FLASH_TABLES_START), RUN_START(RAM_TABLES_START), SIZE(TABLES_SIZE)
.stack : {} > IRAM
.bss : {} > IRAM
.data : {} > IRAM
.far : {} > IRAM
.sysmem : {} > IRAM
.cio : {} > IRAM
}

 

ERROR 

 

C:\>MyProjects\led\hex6x C:\MyProjects\led\FlashBlink_ahex.cmd
Translating C:\MyProjects\led\Debug\led.out to ASCII-Hex format...
"C:\MyProjects\led\Debug\led.out" ==> .hwi_vec
>> WARNING: section '.hwi_vec' at 00h falls in unconfigured memory (skipped)
"C:\MyProjects\led\Debug\led.out" ==> .bios
>> WARNING: section '.bios' at 0200h falls in unconfigured memory (skipped)
"C:\MyProjects\led\Debug\led.out" ==> .text
>> WARNING: section '.text' at 01980h falls in unconfigured memory (skipped)
"C:\MyProjects\led\Debug\led.out" ==> .rtdx_text
>> WARNING: section '.rtdx_text' at 02f20h falls in unconfigured memory
(skipped)
"C:\MyProjects\led\Debug\led.out" ==> .cinit
>> WARNING: section '.cinit' at 03be0h falls in unconfigured memory (skipped)
"C:\MyProjects\led\Debug\led.out" ==> .stack
>> WARNING: section '.stack' at 049b0h falls in unconfigured memory (skipped)
"C:\MyProjects\led\Debug\led.out" ==> .sysinit
>> WARNING: section '.sysinit' at 04dc0h falls in unconfigured memory (skipped
"C:\MyProjects\led\Debug\led.out" ==> .trace
>> WARNING: section '.trace' at 0534ch falls in unconfigured memory (skipped)
"C:\MyProjects\led\Debug\led.out" ==> .const
>> WARNING: section '.const' at 0554ch falls in unconfigured memory (skipped)
"C:\MyProjects\led\Debug\led.out" ==> .LOG_system$buf
>> WARNING: section '.LOG_system$buf' at 05600h falls in unconfigured memory
(skipped)
"C:\MyProjects\led\Debug\led.out" ==> .switch
>> WARNING: section '.switch' at 05aach falls in unconfigured memory (skipped)
"C:\MyProjects\led\Debug\led.out" ==> .gblinit
>> WARNING: section '.gblinit' at 05ad4h falls in unconfigured memory (skipped
"C:\MyProjects\led\Debug\led.out" ==> .log
>> WARNING: section '.log' at 05af0h falls in unconfigured memory (skipped)
"C:\MyProjects\led\Debug\led.out" ==> .sts
>> WARNING: section '.sts' at 05b08h falls in unconfigured memory (skipped)
"C:\MyProjects\led\Debug\led.out" ==> .trcdata
>> WARNING: section '.trcdata' at 05b28h falls in unconfigured memory (skipped
"C:\MyProjects\led\Debug\led.out" ==> .pinit
>> WARNING: section '.pinit' at 05b34h falls in unconfigured memory (skipped)
"C:\MyProjects\led\Debug\led.out" ==> .args
>> WARNING: section '.args' at 05b48h falls in unconfigured memory (skipped)

 

  • Hi Navaneeth,

    I've seen some of the posts of yours that you are asking the C6713 hex conversion, still facing any problem.

    I'm able to convert *.out to *.hex and run successfully.

    Here is my linker.cmd

    MEMORY

    {

       vecs:          o = 00000000h   l = 00000200h

       boot:          o = 00000200h   l = 00000200h

       IRAM:          o = 00000400h   l = 0000FA00h                          

       CE0:       o = 80000000h   l = 01000000h

    }

    SECTIONS

    {

       "vectors"   >       vecs

       "bootload"  >       boot

       .cinit      >       IRAM

       .text       >       IRAM

       .stack      >       IRAM

       .bss        >       IRAM

       .const      >       IRAM

       .data       >       IRAM

       .far        >       IRAM

       .switch     >       IRAM

       .sysmem     >       IRAM

       .tables     >       IRAM

       .cio        >       IRAM

    }                            

    Here is my *.cmd for hex conversion.

    /* FlashBlink_hex.cmd -- Hex Converter

    *                       for FlashBlink Demo

    */

    /* To use this, from a DOS window.

      To build a hex file, build the

      FlashBlink application using CCS

    * FlashBlink.mak file. After that,

    * open a DOS window in the same dir.

    * and type

    *    >hex6x FlashBlink_ahex.cmd

    *

    * to produce .hex for downloading.

    * Use the FlashBurn application to download.

    */

    BlinkDSK6713.out

    -a

    -memwidth  8

    -image

    ROMS

    {

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

    }

    I've copied the *.out and hex cmd to the compiler location and converted there.

    Screen shot: