Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison flash.c @ 67:dcac5f08f87a
Don't complain about CRC mismatch in flashreadblock.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sun, 14 Apr 2013 14:29:08 +0930 |
parents | 03592ca4d37e |
children | cf9eb08b8b23 |
comparison
equal
deleted
inserted
replaced
66:0916bfe3f418 | 67:dcac5f08f87a |
---|---|
360 | 360 |
361 /* Calculate CRC */ | 361 /* Calculate CRC */ |
362 CRC_ResetDR(); | 362 CRC_ResetDR(); |
363 ramcrc = CRC_CalcBlockCRC((uint32_t *)_data, len / 4); | 363 ramcrc = CRC_CalcBlockCRC((uint32_t *)_data, len / 4); |
364 | 364 |
365 printf("RAM CRC 0x%08x Flash CRC 0x%08x\r\n", (uint)ramcrc, (uint)flashcrc); | 365 /* printf("RAM CRC 0x%08x Flash CRC 0x%08x\r\n", (uint)ramcrc, (uint)flashcrc); */ |
366 | 366 |
367 if (ramcrc == flashcrc) | 367 if (ramcrc == flashcrc) |
368 return 1; | 368 return 1; |
369 else | 369 else |
370 return 0; | 370 return 0; |