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.

RE: BOOT procedure for the DSP and ARM processor.

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Hi Shankari, 

I am trying to flash the LED example on the ARM core to boot from NAND but for some reason it doesn't seem to work.

 - I am trying to flash the already build  "OMAPL138-ARM-LED-nand.bin" So I guess the PINMUX, SYSCFG and PSC are all set appropriately.

CMD : sfh_OMAP-L138.exe -flash_noubl -targetType OMAPL138_LCDK -flashType NAND -p com4 -v <inpputFile Path>

Is there anything wrong?

Regards,

Mitesh

  • Hi Mitesh,

    You follow the below steps for flashing and booting the gpio led example. the steps are given for booting the raster example. You have to use the gpio led example in the place of the raster example given in the steps.

    How to flash and boot the sample ARM starterware app on OMAPL138 LCDK board

    It is assumed that you already installed "OMAPL138_StarterWare_1_10_04_01". For example, Consider you want to flash and boot the Raster example given at path "..\ti\OMAPL138_StarterWare_1_10_04_01\examples\lcdkOMAPL138\raster"

    1. First, import the raster display project given at "..\C:\ti\OMAPL138_StarterWare_1_10_04_01\build\armv5\cgt_ccs\omapl138\lcdkOMAPL138\raster" into CCS, build and generate the rasterDisplay.out.
    2. Using CCS, Open up the MAP file, "raster_c674x_omapl138_lcdkOMAPL138.map" and notice the entry point "ENTRY POINT SYMBOL: "_c_int00"  address: c1080000".
    3. Import the ARM starterware bootloader project given at "..\ti\OMAPL138_StarterWare_1_10_04_01\build\armv5\cgt_ccs\omapl138\lcdkOMAPL138\bootloader" and import it into CCS.
      1. Before building the bootloader project, in bl_main.c, assign the entry point address( Please note that this is the address noticed in the raster_armv5_omapl138_lcdkOMAPL138.map linker file of raster display project)  as 0xc1080000(i.e., unsigned int entryPoint = 0xc1080000;)
      2. Buid the project and generate the boot.out file.
    4. Using AIS gen tool, load the appropriate configuration file and convert the boot.out into boot.ais
    5. Using out2rprc, convert the rasterDisplay.out into rasterDisplay.bin
    6. On OMAPl138 LCDK board,set the boot switches for UART mode(1:4 = 0101 on OMAPL138 LCDK). Open serial terminals like teraterm and make sure you get the "BOOTME" message.
    7. By sfh utility, flash the two images, boot.ais and rasterDisplay.bin using the below command.
    $>sfh_OMAP-L138.exe -flash boot.ais rasterDisplay.bin -targetType OMAPL138_LCDK -flashType NAND -p COM3 

    Where 3 is the COM port number. After flashing successfully, Change the boot switches for NAND boot (1:4 = 0111 on OMAPL138 LCDK) and power on or reset the LCDK board. You will Observe the starterware messages from both the sample projects, bootloader and Rasterdisplay.

  • Hi Shankari, thanks for the reply. Yes, I was able to boot LED design with the starterware bootloader. But I have few questions, would appreciate if you could answer them.

    1) Is the bootloader running on the ARM core and after copying application from NAND to SDRAM it gives control to DSP?
    2) The UART and NAND init function and other stuffs looks similar to that used in the DSP core, does it mean same functions could be used to run from ARM or DSP core?
    3) The bootloader is running from the IRAM (Shared RAM) is there way to change that ? Would it be simple as changing the *.cmd file?
    4) Is there any documentation that tells how to write the cmd file?

    Regards,
    Mitesh
  • Hi Shankari, one more question.
    The bootloader example provided in the starterware uses the user boot loader, I guess, it is still possible to boot without the user boot loader from nand flash to DDR.

    I have taken the ARM boot app from the example for the DSP (processors.wiki.ti.com/.../Boot_Images_for_OMAP-L138

    I have modified or trying to modified the entrypoint address to SDRAM (DDR) but when I try to compile the design I am getting error.
    Description Resource Path Location Type
    #35 #error directive: <tistdtypes.h> is not supported for this target .ccsproject /ARM_BOOT_Example line 116, external location: C:\ti\pdk_OMAPL138_1_01_00_02\packages\ti\csl\tistdtypes.h C/C++ Problem

    I have imported the ccs3.3 project into the ccs V6 and changed the CCS general compiler verison to TI v5.2.5 but still I get the error. COuld you tell me how can I change the entrypoint address for the example design in CCS V6. thanks.