Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Matching HexAIS output to AISgen output

$
0
0

Looking for some assistance generating AIS binary files using the HexAIS command line utility.

I'm working on automating the build process for an OMAP L138 based system. Currently, I use the AISgen utility to combine .out files for the ARM and DSP to create the bin file to be flashed onto the SPI flash (SPI1).   I need to automate this process and started experimenting with the HexAIS utility.  

Following the notes in the readme.txt I was able to put together an ini that matches everything I do with the AISgen utility.  I am able to generate a binary but it does not match the one generated by the AISgen utility.  The binary generated by HexAIS does not work.

Also, the bin file generated by the Hexais utility is 8 bytes larger and there are ~84k+ differences between the files; the output binary files themselves are only 95k which tells me that there's a lot of things missing or incorrect with my ini file.  

The attached zip file contains the cfg used with the AISgen utility and the ini file for the HexAIS utiltiy.  I'd appreciate it if someone can point out what information I'm missing in the ini file.

Notes and observations:

  • I need to use SPI1 flash as the boot device. I can't see any fields to specify which SPI interface to use in the ini file.  AISgen explicitly specifies the SPI interface used.
  • I combine the DSP and ARM images when generating the binaries. The hexAIS utility does seem to read both object files and include them but I'm not sure if there's a specific order I need to preserve.
  • Do I have everything I need in the ini file? 
  • The values used for PLL configuration in the ini file match the values written to the registers; the AISgen utility does not take into account the off-by-one difference required when writing to PLL registers.
In case it's useful here's the command line I use to call the HexAIS utility to create the bin file.

c:\ti\boot_tools\test_bld>..\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\GNU\AISUtils\HexAIS_OMAP-L138.exe -ini x1-scantest-OMAPL138.ini -otype binary -o scan_test.bin
-----------------------------------------------------
TI AIS Hex File Generator for OMAP-L138
(C) 2012, Texas Instruments, Inc.
Ver. 1.27
-----------------------------------------------------


Begining the AIS file generation.
AIS file being generated for bootmode: SPIMASTER.
Parsing the input object file, x1-omapl138-armv5-noos.out.
Parsing the input object file, x1-omapl138-c6748-noos.out.
AIS file generation was successful.
Wrote 96904 bytes to file scan_test.bin.
Conversion is complete.


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>