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.

Problem with AIS file generated by using genAIS.pl



Hello Friends,

I am currently performing the exercise on genAIS utility. I am trying to configure the CACHE enabling at the start of boot process.

I have found the two ways of generating the AIS file.

1. GenAIS_DM643x.exe: Configuration is provided by using .ini file

2. genAIS.pl: Configuration is provided by using .cfg file

I have generated the AIS file by using GenAIS_DM643x.exe and able to flash it in NOR flash (EMIF) using NOR writer program. The booting and application(Toggling of GPIO pin) execution is working fine (As Expected). However do not found the configuration parameter for CACHE enabling.

Because of limited scope of configuration through .ini file, I moved to the second way of AIS file generation using genAIS.pl. I am able to generate AIS file  and able to flash it in NOR flash (EMIF) using NOR writer program. However unable to get booting and application(Toggling of GPIO pin) execution as expected.

Command Used are given below:

genAIS.pl -bootmode emifa -datawidth 8 -cfg DM643x.cfg -i sample.out -otype bin -o TestSample

binsrc TestSample.ais TestSample.h TestGPIO

The .cfg file prepared is given below,

0x5853590D  #Function Execute Command
0x00030000  #   Selects PLL configuration function, with 3 arguments
0x00000015  #   PLLM value
0x00000000  #   PLLDIV 0
0x00000000  #   Clock source
0x5853590D  #Function Execute Command
0x00090002  #   Selects DDR memory configuration, with 9 arguments
0x00000017  #   DDR PLLM
0x00000000  #   PLL SRC
0x00000001  #   DDR CLLK DIV
0x0000000B  #   VBPE CLK DIV
0x50006405  #   DDR Control register mask
0x00134822  #   SDRAM Config register mask
0x22923249  #   SDRAM Timer 0 register mask
0x0013C722  #   SDRAM Timer 1 register mask
0x000004EF  #   SDRAM Refresh control register mask
0x5853590D  #Function Execute Command
0x0050043C  #   Selects EMIFA configuration, with 5 arguments
0x3FFFFFFC  #   AB1CR control register mask
0x3FFFFFFC  #   AB2CR control register mask
0x3FFFFFFC  #   AB3CR control register mask
0x3FFFFFFC  #   AB4CR control register mask
0x00000000  #   NANDFCR control register mask
0x58535907 #Function SET Command
0x00000003 # Data type 32 bit, Value 3
0x01C40000 # Address of PINMUX0 register
0x00148001 # Data to write on PINMUX0 address
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000003 # Data type 32 bit, Value 3
0x01C40004 # Address of PINMUX1 register
0x01608540 # Data to write on PINMUX1 address
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41800 #  Address of Module Status 0 Register (VPSS DMA)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41804 #  Address of Module Status 1 Register (VPSS MMR)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41808 #  Address of Module Status 2 Register (EDMACC)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C4180C #  Address of Module Status 3 Register (EDMATC0)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41810 #  Address of Module Status 4 Register (EDMATC1)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41814 #  Address of Module Status 5 Register (EDMATC2)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41818 #  Address of Module Status 6 Register (EMAC Memory Controller)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C4181C #  Address of Module Status 7 Register (MDIO)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41820 #  Address of Module Status 8 Register (EMAC)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41824 #  Address of Module Status 9 Register (McASP0)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C4182C #  Address of Module Status 11 Register (VLYNQ)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41830 #  Address of Module Status 12 Register (HPI)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41834 #  Address of Module Status 13 Register (DDR2)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41838 #  Address of Module Status 14 Register (EMIFA)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C4183C #  Address of Module Status 15 Register (PCI)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41840 #  Address of Module Status 16 Register (McBSP0)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41844 #  Address of Module Status 17 Register (McBSP1)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41848 #  Address of Module Status 18 Register (I2C)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C4184C #  Address of Module Status 19 Register (UART0)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41850 #  Address of Module Status 20 Register (UART1)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41858 #  Address of Module Status 22 Register (HECC)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C4185C #  Address of Module Status 23 Register (PWM0)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41860 #  Address of Module Status 24 Register (PWM1)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41864 #  Address of Module Status 25 Register (PWM2)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41868 #  Address of Module Status 26 Register (GPIO)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C4186C #  Address of Module Status 27 Register (TIMER0)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks
0x58535907 #Function SET Command
0x00000204 # Data type 8 bit, Value 4
0x01C41870 #  Address of Module Status 28 Register (TIMER1)
0x00000003 # Module in Enable state
0x00000004 #  Sleep of 4 CPU clocks

Queries:

1. Is any extra things needs to be handled while using genAIS.pl

2. Is it possible to configure CACHE enabling through ini file

 

Thanks

-Abhijeet