• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » OMAP™ Processors » OMAP-L13x, AM1x and C674x Processors Forum » AISgen command line parameter error
Share
OMAP™ Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Resources
  • OMAP-L1x DSP+ARM9™-based Processors Product Folder
  • OMAP3525/30 DSP+ARM Cortex™-A8-based SOCs Product Folder

  • Top OMAPL Wiki Links
  • OMAPL3x Schematic Review Checklist
  • OMAPL13x Boot resources

  • OMAPL Document Resources
  • OMAPL137 Technical reference manual
  • OMAPL138 Technical reference manual
  • OMAPL Boot loader App Notes
  • AISgen command line parameter error

    AISgen command line parameter error

    This question is answered
    Björn
    Posted by Björn
    on Feb 15 2011 03:43 AM
    Prodigy195 points

    Hi there

    I am trying to run AISgen (Version 1.7c) on the command line, the code is for the ARM part of an OMAP-L138. I followed the documentation (sprab41b) to create a config file (see below), but when I try to run AISgen with this config from the command line, it doesn't create the output file.

    The AISgen log file gives the following, a little vague error message:

     

    ***Loaded configuration from file AISConfig.cfg

    ***One or more parameter error must be corrected.

     

    This problem only occurs when I try to use the command line ith the -cfg option. When I start AISgen without it and then use File->Load Configuration to load the very same config, no error occurs and the output file is created.

     

    Yours,

         Björn.

     

    ---Bootloader.cfg---

    Boot Mode=SPI1 Flash
    Boot Speed=1
    Flash Width=0
    Flash Timing=3ffffffc
    Configure Peripheral=True
    Configure PLL0=False
    Configure SDRAM=False
    Configure PLL1=False
    Configure DDR2=False
    Configure LPSC=False
    Configure Pinmux=False
    Enable CRC=False
    Specify Entrypoint=False
    Enable Sequential Read=False
    Use 4.5 Clock Divider=False
    Use DDR2 Direct Clock=False
    Use mDDR=True
    ROM ID=1
    Device Type=0
    Input Clock Speed=24
    Clock Type=0
    PLL0 Pre Divider=1
    PLL0 Multiplier=20
    PLL0 Post Divider=2
    PLL0 Div1=1
    PLL0 Div3=3
    PLL0 Div7=6
    PLL1 Multiplier=20
    PLL1 Post Divider=2
    PLL1 Div1=1
    PLL1 Div2=2
    PLL1 Div3=3
    Entrypoint=0
    SDRAM SDBCR=0
    SDRAM SDTMR=0
    SDRAM SDRSRPDEXIT=0
    SDRAM SDRCR=0
    DDR2 PHY=0
    DDR2 SDCR=0
    DDR2 SDCR2=0
    DDR2 SDTIMR=0
    DDR2 SDTIMR2=0
    DDR2 SDRCR=0
    LPSC0 Enable=
    LPSC0 Disable=
    LPSC0 SyncRst=
    LPSC1 Enable=
    LPSC1 Disable=
    LPSC1 SyncRst=
    Pinmux=
    App File String=C:\Project\Metronics\Loader - 45536\Work\BOOTLOADER\aisig\BOOTLOADER.elf
    AIS File Name=C:\Project\Metronics\Loader - 45536\Work\BOOTLOADER\aisig\BOOTLOADER.bin

    AISgen command line
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • jc-ti
      Posted by jc-ti
      on Feb 15 2011 11:17 AM
      Mastermind27555 points

      There may be a problem with having spaces in the path for the command line tool. Try relocating your files to another directory or removing the spaces in the folders.

      Jeff

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

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

      Useful Links:
      OMAP-L1x/C674x/AM18x Debug GEL File

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Björn
      Posted by Björn
      on Feb 16 2011 03:18 AM
      Prodigy195 points

      Hi Jeff

      jc

      There may be a problem with having spaces in the path for the command line tool. Try relocating your files to another directory or removing the spaces in the folders.

      Thanks for the Idea, but it didn't help. I also tried to change the paths to relative adressing (via text editor), and even using 8:3 filenames, again with the same error message.

       

      Yours,

           Björn

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jc-ti
      Posted by jc-ti
      on Feb 16 2011 17:04 PM
      Mastermind27555 points

      I copied and pasted your config file and changed the input and output file paths and it generated the output AIS file successfully. Try testing it out by using these file names:

      App File String=c:\input.out
      AIS File Name=c:\out.ais

      Jeff

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

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

      Useful Links:
      OMAP-L1x/C674x/AM18x Debug GEL File

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Björn
      Posted by Björn
      on Feb 17 2011 01:38 AM
      Prodigy195 points

      Hi Jeff.

      jc

      App File String=c:\input.out
      AIS File Name=c:\out.ais

       Same thing, didn't work on my PC.

      Did you use all the settings in the config file I posted earlier (D800K004, SPI-Flash, ARM core)?

      I did some further try and error on this and I think I found the problematic parameter: It's not one of the paths, but the Boot mode. When I select NOR Flash or NAND Flash, AISgen generates the output file, but when I select SPI1 Flash or UART0, I get the error (I didn't check the other modes).

       

      Björn

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jc-ti
      Posted by jc-ti
      on Feb 17 2011 08:37 AM
      Mastermind27555 points

      Yes I copied all of your settings from the config file and had no issues. I also used the same boot mode that you did.

      If possible can you put everything in one directory and privately send me the zip? I can run it from here and let you know. Thanks

      Jeff

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

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

      Useful Links:
      OMAP-L1x/C674x/AM18x Debug GEL File

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Björn
      Posted by Björn
      on Feb 17 2011 09:52 AM
      Prodigy195 points

      Hello again

      jc

      If possible can you put everything in one directory and privately send me the zip? I can run it from here and let you know. Thanks

       

      Of course. Where to?

       

      Björn

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ilgiz Mulyukov
      Posted by Ilgiz Mulyukov
      on Aug 08 2011 08:36 AM
      Prodigy80 points

      Hello! I am have same result also with new version of tool 1.9. But I am use C6748. Is there a solution for this problem?

      8015.ais_test.rar

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Maxime Renaudet
      Posted by Maxime Renaudet
      on Jun 14 2012 05:10 AM
      Intellectual440 points

      Hey !

      I've been having the same problem here, still no work around on this matter ?

      BR,

      Maxime

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Rahul Prabhu
      Posted by Rahul Prabhu
      on Jun 14 2012 20:36 PM
      Genius16220 points

      Maxime,

      Have you tried using the tool as described below:

      > "C:\ti\AISgen for D800K008\AISgen_d800k008.exe" -cfg="C:\ti\Bootloader\OMAPL138-DSP-LED\C6748-LED-SPI.cfg"

      This works for me. The tool is sensitive to spaces in file path so i recommend passing input and output file name in quotes as done above. Let me know if this helps.

      Regards,

      Rahul

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

      OMAPl138 boot c6748
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Maxime Renaudet
      Posted by Maxime Renaudet
      on Jun 15 2012 02:53 AM
      Intellectual440 points

      Hello,

      The problem is not about opening the file, if I give a wrong path, in the log file I get:

      "***Error loading configuration: Impossible de trouver le fichier *path*." (Which says Unable to find the file).

      But when I use it with the right cfg file (the one that successfully produce an AIS with the UI), in the log file, Iget :

      "***Loaded configuration from file C:\Users\test\Desktop\flashToolTgns\Resources\aisconfig.cfg
      ***One or more parameter error must be corrected."

      BR,

      Maxime

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mirosław Janowczyk
      Posted by Mirosław Janowczyk
      on Nov 22 2012 06:23 AM
      Prodigy60 points

      Hello,

      Have You resolve your problem? I have the same issue. cfg file works good when loaded form AISgen GUI but reports a problem when passing as an -cfg="...." parameter.

      regards

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Maxime Renaudet
      Posted by Maxime Renaudet
      on Nov 22 2012 06:26 AM
      Intellectual440 points

      No, I wish I had, I wouldn't lose time to open GUI to create AIS and then run the flashing in cmd line ...

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mirosław Janowczyk
      Posted by Mirosław Janowczyk
      on Nov 22 2012 07:32 AM
      Prodigy60 points

      Hello. I made some investigation and found critical line in cfg file:

      Configure Peripheral=True

      Without this line there are no errors but generated ais file doesn't work with Uart boot tool. It shows those errors:

      (Serial Port): Opening /dev/ttyS1 at 115200 baud...
      (AIS Parse): Read magic word 0x41504954.
      (AIS Parse): Waiting for BOOTME... (power on or reset target now)
      (AIS Parse): BOOTME received!
      (AIS Parse): Performing Start-Word Sync...
      (AIS Parse): Performing Ping Opcode Sync...
      (AIS Parse): Processing command 0: 0x5853590D.
      (AIS Parse): Performing Opcode Sync...
      (AIS Parse): Executing function...
      (AIS Parse): Processing command 1: 0x5853590D.
      (AIS Parse): Performing Opcode Sync...
      (Serial Port): Read error: The operation has timed-out.
      (AIS Parse): I/O Error in read!
      (Serial Port): Read error: The operation has timed-out.

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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Maxime Renaudet
      Posted by Maxime Renaudet
      on Nov 22 2012 07:37 AM
      Intellectual440 points

      Becareful with the boot tool. If you are talking about the slh_xx.exe, you must generate the AIS with UART2 selected. Otherwise it won't work.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mirosław Janowczyk
      Posted by Mirosław Janowczyk
      on Nov 22 2012 07:46 AM
      Prodigy60 points

      I know that. I'm using UartHost.exe. I think the AISgen.exe cannot deal with "Configure Peripheral=True" when cfg file comes from command line parameter.

      Does anyone know where can I find source code for AISgen tool? Is it available?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    12
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use