I need to convert a hex file named: WBoot.hex (firmware file) to binary. The following post:
http://sourceforge.net/mailarchive/f...forum_id=43894
suggested the following script:
PHP Code:
int main(int argc, char ** argv)
{
unsigned int bp[] = {
#include "WBoot.hex"
};
write(1, bp, sizeof(bp));
}
I copied it to a new file, made it executable and run it but I got the following:
./convert: line 1: syntax error near unexpected token `('
./convert: line 1: `int main(int argc, char ** argv)'
I tried:
$ xxd -r WBoot.hex cxacru-bp.bin
but I got very small file which did not work.
Any idea?