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 dsk, hex6x problem

Hello,

I am in really on top of my head, and I need help. I have read wiki pages, document files but to no avail. I am trying to flash my program on the c6713 dsk, but I keep getting errors in translation, as below

=============================================================================================================================
C:\Documents and Settings\user\My Documents\MATLAB\initial_board_setup_ticcs>hex
6x initial_hex.cmd
Translating initial_board_setup.out to ASCII-Hex format...
   "initial_board_setup.out"   ==> vectors
>> WARNING: section 'vectors' at 00h falls in unconfigured memory (skipped)
   "initial_board_setup.out"   ==> bootload
>> WARNING: section 'bootload' at 0200h falls in unconfigured memory (skipped)
   "initial_board_setup.out"   ==> .bios
>> WARNING: section '.bios' at 08400h falls in unconfigured memory (skipped)
   "initial_board_setup.out"   ==> .rtdx_text
>> WARNING: section '.rtdx_text' at 010cc0h falls in unconfigured memory
            (skipped)
   "initial_board_setup.out"   ==> .gblinit
>> WARNING: section '.gblinit' at 011780h falls in unconfigured memory (skipped)

   "initial_board_setup.out"   ==> .trcdata
>> WARNING: section '.trcdata' at 0117f4h falls in unconfigured memory (skipped)

   "initial_board_setup.out"   ==> .hwi_vec
>> WARNING: section '.hwi_vec' at 011800h falls in unconfigured memory (skipped)

   "initial_board_setup.out"   ==> .sysinit
>> WARNING: section '.sysinit' at 011a00h falls in unconfigured memory (skipped)

   "initial_board_setup.out"   ==> .args
>> WARNING: section '.args' at 012300h falls in unconfigured memory (skipped)
   "initial_board_setup.out"   ==> .text
>> WARNING: section '.text' at 080040000h falls in unconfigured memory (skipped)

   "initial_board_setup.out"   ==> .cinit
>> WARNING: section '.cinit' at 08004a140h falls in unconfigured memory
            (skipped)
   "initial_board_setup.out"   ==> .pinit
>> WARNING: section '.pinit' at 08004b474h falls in unconfigured memory
            (skipped)
   "initial_board_setup.out"   ==> .const
>> WARNING: section '.const' at 08004c688h falls in unconfigured memory
            (skipped)
   "initial_board_setup.out"   ==> .trace
>> WARNING: section '.trace' at 08004c8d0h falls in unconfigured memory
            (skipped)
   "initial_board_setup.out"   ==> .log
>> WARNING: section '.log' at 08004cad0h falls in unconfigured memory (skipped)
   "initial_board_setup.out"   ==> .sts
>> WARNING: section '.sts' at 08004d2b4h falls in unconfigured memory (skipped)
   "initial_board_setup.out"   ==> .switch
>> WARNING: section '.switch' at 08004d304h falls in unconfigured memory
            (skipped)
===============================================================================================================================

My hex.cmd file is as shown below

================================================================================================================================

/*
** ======== initial_board_setup_hex.cmd ========
** hex6x command file
*/
initial_board_setup.out /* input COFF file */
-map initial_board_setup.map /* generate hex.map map file */
-a /* ASCII HEX format */
-image /* set image mode */
-zero /* reset address origin to 0 */
-memwidth 8 /* 8-bit wide ROM */
ROMS
{
FLASH: org = 0x90000000, len = 0x40000,romwidth = 8, files = {initial_board_setup.hex}
}
==================================================================================================================================

whereas the command file is

==================================================================================================================================

/* Include DSP/BIOS generated linker command file */
-l initial_board_setupcfg.cmd
/* Allocation of the custom code and data sections */
SECTIONS
{
    .mw_isrambuff:     > IRAM
}

==================================================================================================================================

Please, can anyone help me? To be truthful, I do not know what or how to code this, as I only followed examples and changed sections of the code as appropriate. If there is anyone willing, can I please send my whole project file to your email to take a look at it? The code works, I just need to flash it. Thanks

Desperate for help,

Nic

  • Those who watch this forum are not experts on flashing memory.  We are familiar with the hex utility, which is one part of the flashing process.  I can tell you some of the errors you are making with the hex utility.  But for yet more detail on the entire process, please see this thread.

    You get messages like this ...

    Nicholas Cheng said:
    >> WARNING: section 'vectors' at 00h falls in unconfigured memory (skipped)
       "initial_board_setup.out"   ==> bootload

    Because your link command file contains this ...

    Nicholas Cheng said:
    ROMS
    {
    FLASH: org = 0x90000000, len = 0x40000,romwidth = 8, files = {initial_board_setup.hex}
    }

    The section vectors starts at address 0.  But, with that ROMS directive, you tell the hex utility to only convert sections in the address range 0x90000000 to 0x90040000.

    General documentation on the hex utility can be found in the C6000 Assembly Language Tools book.

    Thanks and regards,

    -George