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.

Reg: NOR flashing with AIS Script

Hi,

I am using DM6437 EVM board. In that I can able to flash the BlinkEVMDM6437, application using flash burner, in the NOR flash (with out AIS format).I am able to execute the code from NOR flash (LED's are blinking)

 

When I am trying the same with AIS script with NOR writer.but code is not executing (LED's are not blinking)

The Following step I have followed .

1. With BlinkEVMDM6437.pjt I have created BlinkEVMDM6437.out file.

2. I have created .bin file with the help of  genAIS.pl

      With the following Settings.

          i) In put file = BlinkEVMDM6437.out

         ii) Out out file = outfilefile.bin

         iii) Boot mode = emif

        iv)   memwidth = 8

3. With Nor writer utility I have burn the code ( outfilefile.bin) in the NOR flash (NOR Address = 0x42000000), with BOOTMODE = 0100 (SW! on the EVM board) & FASTBOOT=0.

4. I have cross checked whether data is correctly burned or not in NOR flash (Data is correct).

5. But its not executing from NOR flash.

   and also I have tried with output file format  as *.ais

whether the procedure is correct or not ? I need to execute the BlinkEVMDM6437 application with AIS scripting.

Sorry , I am not able attaching the ais file and outputfile.bin along with this ,

Please suggest me with suitable solution.

 

Thanks & Regards,

 

Subramanyam

 

 

 

 

 

 

 

 

 

  • Subramanyam,

    For EMIFA boot with AIS, FASTBOOT==1 is needed. Please see table 3-6 (http://focus.ti.com/lit/ds/symlink/tms320dm6437.pdf). Also AEM[2:0]==001b.

    Thanks,
    Gaurav

  •  

    Hi Gaurav,

    I have tried with FASTBOOT ==1,AEM[2:0] = 001b, after that also application (LED Blinking application)is not executing from NOR.I have cross checked data in the NOR flash location, data is correctly loaded.

    In my second trial

    For NOR execution confirmation, I have called LED blinkin API's into another  application, with that I have created ais file and flashed into NOR with NOR writer utility.

     Its flashed properly but LED's are not blinking.


    The sequence I have called API's are:

            EVMDM6437_init();
        EVMDM6437_LED_init( );
        
     
        EVMDM6437_LED_off(0);
        EVMDM6437_LED_off(1);
            EVMDM6437_LED_off(2);
        EVMDM6437_LED_off(3);     
          
            
            

             myDataPtr = &myData1;
           while(myDataPtr != &endMyData1) {
         if (*myDataPtr != 0xFEEDBABEu) {
            errCount--;
           EVMDM6437_LED_on(0);
           EVMDM6437_waitusec(20000);
         }
        else {
         EVMDM6437_LED_on(1);
         EVMDM6437_waitusec(20000);
         
         ++myDataPtr;
            }
      }     

      if (*myDataPtr != 0x12345678) {

         EVMDM6437_LED_on(2);
         EVMDM6437_waitusec(20000);
         EVMDM6437_LED_off(0);
         EVMDM6437_waitusec(20000);
         --errCount;
      }
        else
        EVMDM6437_LED_on(3);
        EVMDM6437_waitusec(20000);

      myDataPtr = &myData2;
      while(myDataPtr != &endMyData2) {
         if (*myDataPtr != 0xBABEFACEu) {
            errCount--;
         }
         ++myDataPtr;
      }

      if (*myDataPtr != 0x12345678) {
         --errCount;
      }


        

    Batch File:

    genAIS.pl -otype ascii -i myapp.out -o outfile.ais -bootmode emif -datawidth 8  -cfg evmdm6437.cfg
    pause   



    Please suggest how to execute this code from NOR with AIS scripting, is there is any thing missing?



    I have created ais file with -debug option,and the size of file is almost 39KB, have tried to flash the data into NOR, but in this case NOR writer is failing.I am attaching the following log file.

    Starting NORWriter.
    NOR Initialization:
        Command Set: AMD
        Manufacturer: AMD
        Size: 16 MB
    Enter the binary AIS application file name:
    BlinkEVMDM6437.hex
    Erasing the NOR Flash
    Erased through 0x42020000
    Erase Completed
    Writing the NOR Flash
    NOR Write OK through 0x42002000
    NOR Write OK through 0x42004000
    NOR Write OK through 0x42006000
    NOR Write OK through 0x42008000

    Normal write also failed
    NOR Write Failed...Aborting!
        ERROR: Writing NOR failed.
        NOR flashing failed!


        Is there is any size limitation? I am using SRAM size is 128KB,DDR2 with 64MB.
    At one moment of time I have tried to execute from DDR2, In this I have faced some kind of memory overlap errors.

    Can you provide detailed information on AIS file Generation.

    Please suggest me with suitable solutions.

     

    Thanks & Regards,

     

    Subramanyam