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.

AISgen for software in sram

Other Parts Discussed in Thread: OMAP-L137

I like to generate an AIS file for an application located in SRAM @ 0x60000000 (CS2), but can't find how to configure EMIFA from the AISgen-tool. The OMAP is booting from a SPI1 Flash

How can I get the bootloader to configure EMIFA before loading the program into SRAM?

  • Hi

    This is just an idea. I'v never confirmed this with RBL.  (But I checked generated AIS bin file)

    Please check in your environment.

    First, You can find a HexAIS_OMAP-L137.exe in AISgen installed folder.
    Ex) C:\Program Files\Texas Instruments\AISgen for D800K005

    In fact, by AISgen GUI tool, AISgen.ini file is generated and then HexAIS_OMAP-L137 tool generates the AIS binary file using this file.
    #please see the help of HexAIS_OMAP-L137 at an MS-DOS prompt. ( "./HexAIS_OMAP-L137.exe -h")

    PLL and EMIF setting is is described in the xxx.ini.
    So I think you can descrivbe EMIFA setting in the xxx.ini as following.

    [AISgenEMIFA.ini]***************************************************************
    ; Created by AISgen for D800K005 v0.8.2.0

    [General]
    BootMode = NONE
    crcCheckType = NO_CRC

    [AIS_SeqReadEnable]

    [PLLANDCLOCKCONFIG]
    PLLCFG0 = 0x0F000302
    PLLCFG1 = 0x00070226
    PERIPHCLKCFG = 0x00000006

    [EMIF3SDRAM]
    SDCR    = 0x00018621
    SDTIMR  = 0x0E9129C8
    SDTIMR2 = 0x78080005
    SDRCR   = 0x000003D4

    ; This section can be used to configure the async chip selects
    ; of the EMIFA (CS2-CS5).  The fields required to do this
    ; are given below.
    ;           |------24|------16|-------8|-------0|
    ; A1CR:     |                A1CR               |
    ; A2CR:     |                A2CR               |
    ; A3CR:     |                A3CR               |
    ; A4CR:     |                A4CR               |
    [EMIF25ASYNC]
    A1CR = 0x00000000
    A2CR = 0x00000000
    A3CR = 0x00000000
    A4CR = 0x00000000
    *********************************************************


    Perhaps, You need to use the HexAIS_OMAP-L137.exe at an MS-DOS prompt directly without AISgen GUI.
    >  ./HexAIS_OMAP-L137.exe -ini AISgenEMIFA.ini -o ais_emifa.bin  "T:\input.out"

    -Takao