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.

Download .bin file to NOR Flash using Davinci EVM DM6446


HI,

I am trying to download a simple Application code (.bin) to flash (Say nor flash) in CCS v 5, currently it is downloading into DDR2 of my EVM.

Procedure i followed to create .bin file is mentioned in the below link.


e2e.ti.com/.../1296486
e2e.ti.com/.../1520251

For porting the .bin file we follwed instructions mentioned in the link

processors.wiki.ti.com/.../Serial_Boot_and_Flash_Loading_Utility


Switch Config is SW3-1 is(1), SW3-2 is (0) that is [1010111111]

-stack 0x00000800 /* Stack Size */
-heap 0x00000800 /* Heap Size */

MEMORY
{
IRAM: o = 0x00000000 l = 0x00004000
DRAM: o = 0x00008000 l = 0x00004000
AEMIF: o = 0x02000000 l = 0x02000000
DDR2: o = 0x80000000 l = 0x10000000
}

SECTIONS
{
.bss > AEMIF
.cinit > AEMIF
.cio > AEMIF
.const > AEMIF
.stack > AEMIF
.sysmem > AEMIF
.text > AEMIF
.ddr2 > AEMIF
}

and ran:

sfh_DM644x.exe -norerase and

sfh_DM644x.exe -norflash_noubl led.bin

still no improve. same log as mentioned in previous update.

If I change switch config to NOR boot and run in hyper terminal I get below LOG, but no lED glowing

U-Boot 1.1.3 (Mar 3 2006 - 01:16:59)

U-Boot code: 81080000 -> 810973A8 BSS: -> 810A02B8

RAM Configuration:

Bank #0: 80000000 256 MB

unknown vendor=89 Flash: 0 kB

*** Warning - bad CRC, using default environment

In: serial

Out: serial

Err: serial

ARM Clock :- 283MZ

DDR Clock :- 189MZ

Hit any key to stop autoboot: 0

BOOTP broadcast 1

WARN: emac_send_packet: No link

BOOTP broadcast 2

WARN: emac_send_packet: No link

BOOTP broadcast 3

WARN: emac_send_packet: No link

BOOTP broadcast 4

WARN: emac_send_packet: No link

BOOTP broadcast 5

WARN: emac_send_packet: No link

BOOTP broadcast 6

WARN: emac_send_packet: No link

BOOTP broadcast 7

WARN: emac_send_packet: No link

BOOTP broadcast 8

WARN: emac_send_packet: No link

BOOTP broadcast 9

WARN: emac_send_packet: No link

BOOTP broadcast 10

WARN: emac_send_packet: No link

Retry count exceeded; starting again

azhagiri

  • Hi,


    sfh_DM644x.exe -norerase and

    sfh_DM644x.exe -norflash_noubl led.bin

    still no improve. same log as mentioned in previous update.

    If I change switch config to NOR boot and run in hyper terminal I get below LOG, but no lED glowing

    U-Boot 1.1.3 (Mar 3 2006 - 01:16:59)

    U-Boot code: 81080000 -> 810973A8 BSS: -> 810A02B8

    RAM Configuration:


    Do you have u-boot stuff in "led.bin" ?
    Or just LED blink code alone ?
    If you don't have that then I'm curious about your log which you got.
    When you do erase the NOR flash, u-boot should get erased completely but you are getting ubl/u-boot prints.
    Please make sure that you have set bootmode to NOR.


    Do one thing, just erase the NOR flash and set boot mode to NOR flash then see, you are getting any prints on console.

    sfh_DM644x.exe -norerase
  • OK I will try that and update you, Also how to know weather my led code has u-boot stuff? do you have any led test code sample so that i can run and test?

    I hope it doesnot contain any uboot code in it its a sample code for LED and I have used GEL files as usual

    Regards,

    Azhagiri
  • Hi,
    Is that LED code created by you or what ?
    Got from any link or TI provided ?
    You can easily understand that whether code has u-boot stuff or not.
    I hope it doesn't.

    So, you would get the same log even you erased the NOR flash.
  • I have tried to erase nor and run the console and below is my log, after erase I am not getting any message on hyper terminal.

    TI Serial Flasher Host Program for DM644x
    (C) 2010, Texas Instruments, Inc.
    Ver. 1.50
    -----------------------------------------------------


    Platform is Windows.
    Globally erasing NOR flash.


    Attempting to connect to device COM1...
    Press any key to end this program at any time.


    Waiting for the DM644x...
    BOOTME commmand received. Returning ACK and header...
    ACK command sent. Waiting for BEGIN command...
    Target: BEGIN
    BEGIN commmand received. Sending CRC table...
    100% [ ]
    CRC table sent....



    Waiting for DONE...
    DONE received. Sending the UBL...
    100% [ ]
    UBL sent....


    DONE received. UBL was accepted.
    UBL transmitted successfully.


    Waiting for SFT on the DM644x...
    Target: Starting UART Boot...
    Target: BOOTUBL
    BOOTUBL commmand received. Returning CMD and command...
    CMD value sent. Waiting for DONE...
    Target: DONE
    DONE received. Command was accepted.
    Target: CFI Query...passed.
    Target: NOR Initialization:
    Target: Command Set: Intel
    Target: Manufacturer: INTEL
    Target: Size: 0x00000010 MB
    Target: Erasing the NOR Flash
    Target: Erased through 0x02020000
    Target: Erased through 0x02040000
    Target: Erased through 0x02060000
    Target: Erased through 0x02080000
    Target: Erased through 0x020A0000
    Target: Erased through 0x020C0000
    Target: Erased through 0x020E0000
    Target: Erased through 0x02100000
    Target: Erased through 0x02120000
    Target: Erased through 0x02140000
    Target: Erased through 0x02160000
    Target: Erased through 0x02180000
    Target: Erased through 0x021A0000
    Target: Erased through 0x021C0000
    Target: Erased through 0x021E0000
    Target: Erased through 0x02200000
    Target: Erased through 0x02220000
    Target: Erased through 0x02240000
    Target: Erased through 0x02260000
    Target: Erased through 0x02280000
    Target: Erased through 0x022A0000
    Target: Erased through 0x022C0000
    Target: Erased through 0x022E0000
    Target: Erased through 0x02300000
    Target: Erased through 0x02320000
    Target: Erased through 0x02340000
    Target: Erased through 0x02360000
    Target: Erased through 0x02380000
    Target: Erased through 0x023A0000
    Target: Erased through 0x023C0000
    Target: Erased through 0x023E0000
    Target: Erased through 0x02400000
    Target: Erased through 0x02420000
    Target: Erased through 0x02440000
    Target: Erased through 0x02460000
    Target: Erased through 0x02480000
    Target: Erased through 0x024A0000
    Target: Erased through 0x024C0000
    Target: Erased through 0x024E0000
    Target: Erased through 0x02500000
    Target: Erased through 0x02520000
    Target: Erased through 0x02540000
    Target: Erased through 0x02560000
    Target: Erased through 0x02580000
    Target: Erased through 0x025A0000
    Target: Erased through 0x025C0000
    Target: Erased through 0x025E0000
    Target: Erased through 0x02600000
    Target: Erased through 0x02620000
    Target: Erased through 0x02640000
    Target: Erased through 0x02660000
    Target: Erased through 0x02680000
    Target: Erased through 0x026A0000
    Target: Erased through 0x026C0000
    Target: Erased through 0x026E0000
    Target: Erased through 0x02700000
    Target: Erased through 0x02720000
    Target: Erased through 0x02740000
    Target: Erased through 0x02760000
    Target: Erased through 0x02780000
    Target: Erased through 0x027A0000
    Target: Erased through 0x027C0000
    Target: Erased through 0x027E0000
    Target: Erased through 0x02800000
    Target: Erased through 0x02820000
    Target: Erased through 0x02840000
    Target: Erased through 0x02860000
    Target: Erased through 0x02880000
    Target: Erased through 0x028A0000
    Target: Erased through 0x028C0000
    Target: Erased through 0x028E0000
    Target: Erased through 0x02900000
    Target: Erased through 0x02920000
    Target: Erased through 0x02940000
    Target: Erased through 0x02960000
    Target: Erased through 0x02980000
    Target: Erased through 0x029A0000
    Target: Erased through 0x029C0000
    Target: Erased through 0x029E0000
    Target: Erased through 0x02A00000
    Target: Erased through 0x02A20000
    Target: Erased through 0x02A40000
    Target: Erased through 0x02A60000
    Target: Erased through 0x02A80000
    Target: Erased through 0x02AA0000
    Target: Erased through 0x02AC0000
    Target: Erased through 0x02AE0000
    Target: Erased through 0x02B00000
    Target: Erased through 0x02B20000
    Target: Erased through 0x02B40000
    Target: Erased through 0x02B60000
    Target: Erased through 0x02B80000
    Target: Erased through 0x02BA0000
    Target: Erased through 0x02BC0000
    Target: Erased through 0x02BE0000
    Target: Erased through 0x02C00000
    Target: Erased through 0x02C20000
    Target: Erased through 0x02C40000
    Target: Erased through 0x02C60000
    Target: Erased through 0x02C80000
    Target: Erased through 0x02CA0000
    Target: Erased through 0x02CC0000
    Target: Erased through 0x02CE0000
    Target: Erased through 0x02D00000
    Target: Erased through 0x02D20000
    Target: Erased through 0x02D40000
    Target: Erased through 0x02D60000
    Target: Erased through 0x02D80000
    Target: Erased through 0x02DA0000
    Target: Erased through 0x02DC0000
    Target: Erased through 0x02DE0000
    Target: Erased through 0x02E00000
    Target: Erased through 0x02E20000
    Target: Erased through 0x02E40000
    Target: Erased through 0x02E60000
    Target: Erased through 0x02E80000
    Target: Erased through 0x02EA0000
    Target: Erased through 0x02EC0000
    Target: Erased through 0x02EE0000
    Target: Erased through 0x02F00000
    Target: Erased through 0x02F20000
    Target: Erased through 0x02F40000
    Target: Erased through 0x02F60000
    Target: Erased through 0x02F80000
    Target: Erased through 0x02FA0000
    Target: Erased through 0x02FC0000
    Target: Erased through 0x02FE0000
    Target: Erased through 0x02FE8000
    Target: Erased through 0x02FF0000
    Target: Erased through 0x02FF8000
    Target: Erased through 0x03000000
    Target: Erase Completed
    Target: Erase completed successfully.
    Target: DONE
    Target: DONE

    Operation completed successfully.

    C:\>