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 FlashBoot Speed=1Flash Width=0Flash Timing=3ffffffcConfigure Peripheral=TrueConfigure PLL0=FalseConfigure SDRAM=FalseConfigure PLL1=FalseConfigure DDR2=FalseConfigure LPSC=FalseConfigure Pinmux=FalseEnable CRC=FalseSpecify Entrypoint=FalseEnable Sequential Read=FalseUse 4.5 Clock Divider=FalseUse DDR2 Direct Clock=FalseUse mDDR=TrueROM ID=1Device Type=0Input Clock Speed=24Clock Type=0PLL0 Pre Divider=1PLL0 Multiplier=20PLL0 Post Divider=2PLL0 Div1=1PLL0 Div3=3PLL0 Div7=6PLL1 Multiplier=20PLL1 Post Divider=2PLL1 Div1=1PLL1 Div2=2PLL1 Div3=3Entrypoint=0SDRAM SDBCR=0SDRAM SDTMR=0SDRAM SDRSRPDEXIT=0SDRAM SDRCR=0DDR2 PHY=0DDR2 SDCR=0DDR2 SDCR2=0DDR2 SDTIMR=0DDR2 SDTIMR2=0DDR2 SDRCR=0LPSC0 Enable=LPSC0 Disable=LPSC0 SyncRst=LPSC1 Enable=LPSC1 Disable=LPSC1 SyncRst=Pinmux=App File String=C:\Project\Metronics\Loader - 45536\Work\BOOTLOADER\aisig\BOOTLOADER.elfAIS 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
----------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.----------------------------------------------------------------------------------------------------------
Useful Links:OMAP-L1x/C674x/AM18x Debug GEL File
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.
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.outAIS File Name=c:\out.ais
Hi Jeff.
jc App File String=c:\input.outAIS 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).
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
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?
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
---------------------------------------------------------------------------------Please click the Verify Answer button on this post if it answers your question.---------------------------------------------------------------------------------
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."
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?