Hi,
I am using genAis.pl V1.03.07
or v1.04.01 (i am not entirely sure the header comment is a bit odd) and am running it with the following flags:
perl genAIS.pl -bootmode tisecboot -pf 16 -pkg bga -magic -cfgtype ais -otype bin -i code.out -o code.ais -cfg ais.cfg
doing this with a given file code.out will produce an endless stream of errors like the following:
"Use of uninitialized value in right bitshift (>>) at genAIS.pl line 2436."
This doesn't happen every time and seems as though it may be in someway be related to the filesize or something similar as, i can make the problem go away by adding/removing any arbitrary number of prints from my code.
Due to my lack of not knowing which version i am using the error corresponds to code like the following:
while( --$bits >= 0 )
{
$msb_bit = $crc & 0x80000000;
$crc = ($crc << 1) ^ ((($secData->[$n + $dataNdx]) >> $bits) & 1 );
if ( $msb_bit ){
$crc = ($crc ^ $crc_poly);
}
}
Has anyone seen this behaviour before? Is there a fix? I can probably supply the .out and .cfg file if i have to.
Thanks.