EFFS-AppUpdate example doesn't work on PK70
Posted: Thu Sep 29, 2011 7:59 pm
I tried the example in \nburn\examples\EFFS\EFFS-AppUpdate on a MOD5270 and it works great. Same application on a PK70 doesn't work. It displays the message "Starting" and that's it. I did some additional diagnostics to see what was going on, and I found that inside the UpdateFromFat() function, there is the following code:
It appears that the ProcessS3() function always returns a 0 on the PK70, which means that nlines never increments and the while loop just runs forever. On the MOD5270, ProcessS3() returns a 16, which works fine.
I see that the ProcessS3() function lives in the StreamUpdate.cpp file, but I can't quite grasp what it is doing in order to figure out how to fix it. Thoughts?
Thanks,
Lance
Code: Select all
while ( nlines < 5 ) {
n = my_f_read_line( fat_read_buffer, 255, fp );
if ( n > 0 ) {
if ( ProcessS3( fat_read_buffer, addr, CopyTo, cur_pos, maxlen ) != 0 )
nlines++;
}
}
I see that the ProcessS3() function lives in the StreamUpdate.cpp file, but I can't quite grasp what it is doing in order to figure out how to fix it. Thoughts?
Thanks,
Lance