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 understanding

Other Parts Discussed in Thread: TMS320C6747, OMAP-L137, AM1707

Hi.

Please help me with understanding how AISgen work.

let's say I have a  test program without PLL settings for DSP  and  PINMUX  settings for my SDRAM. 

Have I correctly understanding that:

1) When I configure  AISgen [Pll Settings, PINMUX Settings, EMIFB SDRAM Settings ] for flashing spi flash, DSP each time when starting from flash, will be used these settings.

2) The above settings will be write to internal DSP ROM.

3)  If I do not have PLL and SDRAM settings in my application code, settings in AISgen will be enough.

Сorrect me if I'm wrong.

Thanks.

  • Hi Alex,

    Actually, for AISgen, TI has provided a ready made configuration file for devices ( for example: C6748 ) which shall be loaded directly into the AIS gen tool for NAND/SPI flah memories.

    That configuration file will have the neccessary settings for

    1. Boot mode,

    2. Boot speed,

    3. PLL0 settings

    4. SDRAM

    5. PLL1

    6. DDR2

    7. LPSC

    8. Pinmux

    ............

    ............

    e.t.c.

    2.

    Alex says said:
    The above settings will be write to internal DSP ROM.

    No, For more information on the booting sequence, please visit :

    3)

    Alex says said:
     If I do not have PLL and SDRAM settings in my application code, settings in AISgen will be enough.

    Yes.

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    --------------------------------------------------------------------------------------------------------

  • Ok, thanks for your answer.

    I understand that:

    On SPI flash memory are located:

    1) Bootloader AIS

    2) Application binary

    When I set  the boot switches for SPI0 flash boot, bootloader copies code and data to device memory. For TMS320C6747 it  is  128kB Shared RAM (defined in C6747.cmd). My application code size  should not exceed 128kB. My understanding is correctly ?

    I read TMS320C6747.pdf and find next - Boot ROM (cannot be used for application code). Tell me please how onchip  Boot ROM  memory is used ?

    Thanks.

  • Hi Alex,

    Alex said:
    When I set  the boot switches for SPI0 flash boot, bootloader copies code and data to device memory. For TMS320C6747 it  is  128kB Shared RAM (defined in C6747.cmd). My application code size  should not exceed 128kB. My understanding is correctly ?

    Almost the answer is "yes".Because in the linker command file, it will be defined where the stack , text code will reside.

    For more details, please refer to the linker command file; in which the memory sections like .text, .stack, .bss are mapped to the physical memory like DDR2 or Shared RAM.

    Alex said:
      I read TMS320C6747.pdf and find next - Boot ROM (cannot be used for application code). Tell me please how onchip  Boot ROM  memory is used ?

    The ROM of C6747 will have the C6747 Bootloader which supports boot modes and uses the available ROM functions.

    Please visit the C6747 bootloader user guide. http://www.ti.com.cn/cn/lit/an/sprabb1c/sprabb1c.pdf

    Regards,

    Shankari.

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

     

  • Hi Shankari,

    I understand that we have two bootloaders:

    1) ROM bootloader (RBL) - stored on the onchip ROM [writing on the factory].

    2) Bootloader AIS - generating by the AISgen  [stored on the spi flash memory].  

    My understanding is correctly ?

    Thanks.

  • Hi Alex,

    yes, your understanding is right.

    Customers can only understand and use the features of RBL.This RBL is written on the factory.

    But the AIS bootloader can be generated by the customer/user and can be flashed multiple times.

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    --------------------------------------------------------------------------------------------------------

  • Hi Shankari,
    Thanks for your help.

    Let me ask you a some questions.
    I have C6745 board [TMS320C6745DPTPT3 + SPI flash W25X32VSFIG + SDRAM IS42S16160B-6TLI + UART].
     I am using Serial FLASH to store my code. Boot from a serial flash. 


    1) I read an article: Using the TMS320C6747/45/43 Bootloader.
    "To boot from a slave memory device connected to SPI or I2C peripherals, AIS (in binary format) can be
    directly Flashed to the memory device". How I can flashing SPI flash without ccs ? Serial Flashing Host Utility is the only option?

    2) I read an article on the next link: processors.wiki.ti.com/.../Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137.

    Serial Flasher Options
    There are four modes for using the serial flasher:

    1)Erase the target flash type - This will erase the entire contents of the flash.
    C:\flasher>sfh_OMAP-L137.exe -erase
    2)Flash the memory with a single application image - This will place an application image at address 0x0 of the flash.
    C:\flasher>sfh_OMAP-L137.exe -flash_noubl <binary application file>
    3)Flash the memory with a UBL and application image - This will place the UBL at address 0x0 and an application image, such as u-boot, at address 0x10000. This is used for the AM1707 device.
    C:\flasher>sfh_OMAP-L137.exe -flash <UBL binary file> <binary application file>
    4)Flash the memory with a DSP UBL, ARM UBL, and application image - This will place a DSP AIS file at address 0x0 of the flash, an ARM UBL at address 0x2000, and an application image, such as u-boot, at address 0x8000. This is used for the OMAPL137_v1 and OMAPL137_v2 devices.
    C:\flasher>sfh_OMAP-L137.exe -flash_dsp <DSP UBL AIS file> <ARM UBL binary file> <binary application file>

    I must use: Flash the memory with a single application image or Flash the memory with a UBL and application image ?
    How i can get a single application image, using AISGen for D800K005 ?
    How i can get a UBL binary file, using AISGen for D800K005 ?

    Thanks.

  • Hi Shankari,
    Thanks for your help.

    Let me ask you a some questions.
    I have C6745 board [TMS320C6745DPTPT3 + SPI flash W25X32VSFIG + SDRAM IS42S16160B-6TLI + UART].
    I am using Serial FLASH to store my code. Boot from a serial flash.


    1) I read an article: Using the TMS320C6747/45/43 Bootloader.
    "To boot from a slave memory device connected to SPI or I2C peripherals, AIS (in binary format) can be
    directly Flashed to the memory device". How I can flashing SPI flash without ccs ? Serial Flashing Host Utility is the only option?

    2) I read an article on the next link: processors.wiki.ti.com/.../Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137.

    Serial Flasher Options
    There are four modes for using the serial flasher:

    1)Erase the target flash type - This will erase the entire contents of the flash.
    C:\flasher>sfh_OMAP-L137.exe -erase
    2)Flash the memory with a single application image - This will place an application image at address 0x0 of the flash.
    C:\flasher>sfh_OMAP-L137.exe -flash_noubl <binary application file>
    3)Flash the memory with a UBL and application image - This will place the UBL at address 0x0 and an application image, such as u-boot, at address 0x10000. This is used for the AM1707 device.
    C:\flasher>sfh_OMAP-L137.exe -flash <UBL binary file> <binary application file>
    4)Flash the memory with a DSP UBL, ARM UBL, and application image - This will place a DSP AIS file at address 0x0 of the flash, an ARM UBL at address 0x2000, and an application image, such as u-boot, at address 0x8000. This is used for the OMAPL137_v1 and OMAPL137_v2 devices.
    C:\flasher>sfh_OMAP-L137.exe -flash_dsp <DSP UBL AIS file> <ARM UBL binary file> <binary application file>

    I must use: Flash the memory with a single application image or Flash the memory with a UBL and application image ?

    How i can make binary application file using the AISGen for D800K005 ?
    How i can make UBL binary file using the AISGen for D800K005 ?

    Thanks.

  • Hi Shankari,
    Thanks for your help.

    Let me ask you a some questions.
    I have C6745 board [TMS320C6745DPTPT3 + SPI flash W25X32VSFIG + SDRAM IS42S16160B-6TLI + UART].
    I am using Serial FLASH to store my code. Boot from a serial flash.


    1) I read an article: Using the TMS320C6747/45/43 Bootloader.
    "To boot from a slave memory device connected to SPI or I2C peripherals, AIS (in binary format) can be
    directly Flashed to the memory device". How I can flashing SPI flash without ccs ? Serial Flashing Host Utility is the only option?

    2) I read an article on the next link: processors.wiki.ti.com/.../Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137.

    Serial Flasher Options
    There are four modes for using the serial flasher:

    1)Erase the target flash type - This will erase the entire contents of the flash.
    C:\flasher>sfh_OMAP-L137.exe -erase
    2)Flash the memory with a single application image - This will place an application image at address 0x0 of the flash.
    C:\flasher>sfh_OMAP-L137.exe -flash_noubl <binary application file>
    3)Flash the memory with a UBL and application image - This will place the UBL at address 0x0 and an application image, such as u-boot, at address 0x10000. This is used for the AM1707 device.
    C:\flasher>sfh_OMAP-L137.exe -flash <UBL binary file> <binary application file>
    4)Flash the memory with a DSP UBL, ARM UBL, and application image - This will place a DSP AIS file at address 0x0 of the flash, an ARM UBL at address 0x2000, and an application image, such as u-boot, at address 0x8000. This is used for the OMAPL137_v1 and OMAPL137_v2 devices.
    C:\flasher>sfh_OMAP-L137.exe -flash_dsp <DSP UBL AIS file> <ARM UBL binary file> <binary application file>

    I must use: Flash the memory with a single application image or Flash the memory with a UBL and application image ?

    How i can make the binary application file using the AISGen for D800K005 ?
    How i can make the UBL binary file using the AISGen for D800K005 ?

    Thanks.