- added support for HCS12 derivatives with ECC flash EEPROM, such as the HCS12Pxx.

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@65 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2013-10-17 11:34:07 +00:00
parent 3bfdc5b9bf
commit d3eb03e16f
2 changed files with 1023 additions and 1 deletions

View File

@ -405,7 +405,7 @@ blt_bool FlashWrite(blt_addr addr, blt_int32u len, blt_int8u *data)
/* determine the start address of the last block in flash */
last_block_base_addr = flashLayout[FLASH_LAST_SECTOR_IDX].sector_start + \
flashLayout[FLASH_LAST_SECTOR_IDX].sector_size - \
FLASH_ERASE_BLOCK_SIZE;
FLASH_WRITE_BLOCK_SIZE;
/* if this is the bootblock, then let the boot block manager handle it */
base_addr = (addr/FLASH_WRITE_BLOCK_SIZE)*FLASH_WRITE_BLOCK_SIZE;

File diff suppressed because it is too large Load Diff