cancel
Showing results for 
Search instead for 
Did you mean: 

httpd_gen in linux

Maciejowski.Seth
Associate II
Posted on November 10, 2015 at 19:47

Hey folks,

I'm trying to to create an img file from a web page using httpd_gen.  The only version of httpd_gen I have is the source code (httpd_gen.c).  I compiled this using gcc on two different linux machines (x86 based and ARM based).  I try to download to a wifi module using  AT+S.HTTPDFSUPDATE.  The file downloads to the module, then throws this error on the last bit :

 Write len 617 -> 0x96000 (final)

 Wrote 90729 bytes

 Error (-12 @ 90725/540), cleaning up..

I'm imaging the sample html web pages from the SPWF01S_CGIs_SSIs package.  The output img file is almost identical to the outfile.img file that comes with the package, but it looks like the CRCs don't agree and the header area at the top of the img file is slightly different.  Any suggestions?

Thanks,

-Seth

2 REPLIES 2
Posted on November 11, 2015 at 08:29

Hi Seth,

it's not a problem on CRC (in this case, you'll get an error like ''...CRCs don't match...'').

Please dump the full log, since command (first line is missing: ''...Image length...'').

Anyway, it seems to me a problem on connection: ''-12'' usually means ''Server closed the connections''. If possible, try using another webserver.

Ciao

jerry

markb
Associate II
Posted on November 11, 2015 at 08:30

Hi Seth,

I am using httpd_gen on a i386 linux system and the images it generates work fine.

Is it a byte-sex (big-endian/little-endian) problem? httpd_gen assumes it's running

on a machine that has the same byte-sex as the (ARM) target.

Cheers,

Mark