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.

OMAPL138 StarterWare Booting And Flashing

Other Parts Discussed in Thread: OMAPL138, OMAP-L138

Hello,

I try to make the OMAPL138's DSP core (on LogicPD board ) to run my application when power came on, but i didn't succeed.

First let me show you my code's memory mapping generated by CCS:

ENTRY POINT SYMBOL: "_c_int00"  address: 0080e5c0


MEMORY CONFIGURATION

         name            origin    length      used     unused   attr    fill
----------------------  --------  ---------  --------  --------  ----  --------
  DSPL2ROM              00700000   00100000  00000000  00100000  RWIX
  DSPL2RAM              00800000   00040000  00029224  00016ddc  RWIX     //used
  DSPL1PRAM             00e00000   00008000  00000000  00008000  RWIX
  DSPL1DRAM             00f00000   00008000  00000000  00008000  RWIX
  SHDSPL2ROM            11700000   00100000  00000000  00100000  RWIX
  SHDSPL2RAM            11800000   00040000  00000000  00040000  RWIX
  SHDSPL1PRAM           11e00000   00008000  00000000  00008000  RWIX
  SHDSPL1DRAM           11f00000   00008000  00000000  00008000  RWIX
  EMIFACS0              40000000   20000000  00000000  20000000  RWIX
  EMIFACS2              60000000   02000000  00000000  02000000  RWIX
  EMIFACS3              62000000   02000000  00000000  02000000  RWIX
  EMIFACS4              64000000   02000000  00000000  02000000  RWIX
  EMIFACS5              66000000   02000000  00000000  02000000  RWIX            //used
  SHRAM                 80000000   00020000  00010014  0000ffec  RWIX
  DDR2                  c0000000   20000000  00008800  1fff7800  RWIX                   //used


SEGMENT ALLOCATION MAP

run origin  load origin   length   init length attrs members
----------  ----------- ---------- ----------- ----- -------
00800000    00800000    00010420   00010420    r-x
  00800000    00800000    00010420   00010420    r-x .text
00810420    00810420    0000dd9c   00000000    rw-
  00810420    00810420    0000dd9c   00000000    rw- .far
0081e1c0    0081e1c0    0000a000   00000000    rw-
  0081e1c0    0081e1c0    0000a000   00000000    rw- .stack
008281c0    008281c0    0000073c   0000073c    r--
  008281c0    008281c0    0000073c   0000073c    r-- .const
00828900    00828900    000005a8   00000488    rw-
  00828900    00828900    00000488   00000488    rw- .fardata
  00828d88    00828d88    00000120   00000000    rw- .cio
00828ea8    00828ea8    00000094   00000094    r--
  00828ea8    00828ea8    00000094   00000094    r-- .switch
00828f3c    00828f3c    00000080   0000005c    rw-
  00828f3c    00828f3c    0000005c   0000005c    rw- .neardata
  00828f98    00828f98    00000024   00000000    rw- .bss
00828fbc    00828fbc    00000270   00000270    r--
  00828fbc    00828fbc    00000270   00000270    r-- .cinit
80000000    80000000    00010000   00000000    rw-
  80000000    80000000    00010000   00000000    rw- .sysmem

I follow flashing instructions at  http://processors.wiki.ti.com/index.php/OMAPL138_StarterWare_Booting_And_Flashing .

I type the following command : " sfh_OMAP-L138.exe   -flash boot.ais MyapplicationCode.bin -appStartAddr 0x0080E5C0 -appLoadAddr 0x0080E5C0 " and i got this result

-----------------------------------------------------
   TI Serial Flasher Host Program for OMAP-L138
   (C) 2010, Texas Instruments, Inc.
   Ver. 1.67
-----------------------------------------------------


Platform is Windows.
      [TYPE] UBL and application image
       [UBL] boot.ais
 [APP IMAGE] MyapplicationCode.bin
    [TARGET] OMAPL138
    [DEVICE] SPI_MEM

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

(AIS Parse): Read magic word 0x41504954.
(AIS Parse): Waiting for BOOTME... (power on or reset target now)
(AIS Parse): BOOTME received!
(AIS Parse): Performing Start-Word Sync...
(AIS Parse): Performing Ping Opcode Sync...
(AIS Parse): Processing command 0: 0x58535901.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Loading section...
(AIS Parse): Loaded 8656-Byte section to address 0x80000000.
(AIS Parse): Processing command 1: 0x58535901.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Loading section...
(AIS Parse): Loaded 780-Byte section to address 0x800021D0.
(AIS Parse): Processing command 2: 0x58535906.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Performing jump and close...
(AIS Parse): AIS complete. Jump to address 0x80000000.
(AIS Parse): Waiting for DONE...
(AIS Parse): Boot completed successfully.

Waiting for SFT on the OMAP-L138...

Flashing UBL boot.ais (7968 bytes) at 0x00000000

 100% [ ████████████████████████████████████████████████████████████ ]
                  Image data transmitted over UART.

 100% [ ████████████████████████████████████████████████████████████ ]
                       UBL programming complete


Flashing application MyapplicationCode.bin (69380 bytes) at 0x00010000

 100% [ ████████████████████████████████████████████████████████████ ]
                  Image data transmitted over UART.

 100% [ ████████████████████████████████████████████████████████████ ]
                   Application programming complete


Operation completed successfully.

After that, when i set the  switches (5:8 = 0000 on the EVM) and reset the board, nothing happend because my program was supposed to paly a sound and being detected by the host PC when it is connected via a USB cable.

I also try to use the ti's program "UartHost" and the flashing didn't go forward as you can see below:

Please if you know why the OMAPL138 didn't execute my application after booting, just tell me what to do.

Or just send me a simple "helloworld" example if you have it and which start from CCS and run after flashing.

Thanks a lot for evry help.