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 command line parameter error

Other Parts Discussed in Thread: OMAP-L138

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

  • 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

  • Hi Jeff

    jc said:

    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

  • 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

  • Hi Jeff.

    jc said:

    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

  • 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

  • Hello again

    jc said:

    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

  • 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

  • Hey !

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

    BR,

    Maxime

  • 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

  • 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

  • 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

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

  • 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.

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

  • 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.

  • 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?

  • Hello,

    please go to your Regional and Language Settings, change the decimal symbol from ',' to '.' and try again.

    Best regards,

    Mariusz.

  • Hi.

    On host PCs with linux use shell script like this:

    
    

    #!/bin/bash
    export LANG=en_US.utf8
    mono ./AISgen_d800k008.exe -cfg=config_for_ais.cfg

    This script runs your AISgen program with LANG environment describing localization culture with "." instead of ",". This script does not change your global linux environment but only for programs you invoke in it.

    There is other method also. You can import AISgen.exe as reference in your own c# program and invoke like this:

    Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
    OMAP_L138_AIS_GUI.MainForm mf=new OMAP_L138_AIS_GUI.MainForm(true,"/path/to/your/cfg/file/config_for_ais.cfg");
    ((System.Windows.Forms.Form)mf).ShowDialog();

    This will generate properly aised file.

    Regards