From ba8c762a8653c9fbb4918d882f2a4f402e0c4001 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 16 Mar 2010 00:53:32 +0000 Subject: [PATCH] Bugfixes submitted by David Hewson git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2543 42af7a65-404d-4744-a932-0658087f49c3 --- configs/ea3131/tools/lpchdr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configs/ea3131/tools/lpchdr.c b/configs/ea3131/tools/lpchdr.c index da953384730..99b820bb06a 100755 --- a/configs/ea3131/tools/lpchdr.c +++ b/configs/ea3131/tools/lpchdr.c @@ -261,7 +261,11 @@ int main(int argc, char **argv, char **envp) memset(&g_hdr, 0, sizeof(struct lpc313x_header_s)); g_hdr.vector = 0xea00001e; /* b 0x11029080 */ g_hdr.magic = 0x41676d69; +#if 1 /* CRC doesn't seem to be functional */ + g_hdr.imageType = 0x0000000a; +#else g_hdr.imageType = 0x0000000b; +#endif g_hdr.imageLength = (buf.st_size + sizeof(struct lpc313x_header_s) + 511) & ~0x1ff; /* This is how much we must pad at the end of the binary image. */