diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-03-16 00:53:32 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-03-16 00:53:32 +0000 |
commit | 4701309f2cc828598885175e7d61ffc8d4edf043 (patch) | |
tree | 7d7b258e313f38ff8233141a811f46ba9c079869 /nuttx/configs/ea3131/tools/lpchdr.c | |
parent | aff5322d8d9bf10f227507321dcc76c6b6ec9055 (diff) | |
download | px4-nuttx-4701309f2cc828598885175e7d61ffc8d4edf043.tar.gz px4-nuttx-4701309f2cc828598885175e7d61ffc8d4edf043.tar.bz2 px4-nuttx-4701309f2cc828598885175e7d61ffc8d4edf043.zip |
Bugfixes submitted by David Hewson
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2543 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/ea3131/tools/lpchdr.c')
-rwxr-xr-x | nuttx/configs/ea3131/tools/lpchdr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/configs/ea3131/tools/lpchdr.c b/nuttx/configs/ea3131/tools/lpchdr.c index da9533847..99b820bb0 100755 --- a/nuttx/configs/ea3131/tools/lpchdr.c +++ b/nuttx/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. */
|