- several small fixes (thanks to Magnus Lundin and Spencer Oliver)
- added support for using Luminary Micro development board 'evb_lm3s811' as a JTAG interface (thanks to Magnus Lundin) git-svn-id: svn://svn.berlios.de/openocd/trunk@106 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -107,7 +107,7 @@ int str9x_build_block_list(struct flash_bank_s *bank)
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
num_sectors = b0_sectors + 2;
|
||||
num_sectors = b0_sectors + 4;
|
||||
|
||||
bank->num_sectors = num_sectors;
|
||||
bank->sectors = malloc(sizeof(flash_sector_t) * num_sectors);
|
||||
@@ -510,7 +510,7 @@ int str9x_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count)
|
||||
|
||||
while (words_remaining > 0)
|
||||
{
|
||||
bank_adr = address & 0x03;
|
||||
bank_adr = address & ~0x03;
|
||||
|
||||
/* write data command */
|
||||
target_write_u16(target, bank_adr, 0x40);
|
||||
@@ -552,7 +552,7 @@ int str9x_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count)
|
||||
bytes_written++;
|
||||
}
|
||||
|
||||
bank_adr = address & 0x03;
|
||||
bank_adr = address & ~0x03;
|
||||
|
||||
/* write data comamnd */
|
||||
target_write_u16(target, bank_adr, 0x40);
|
||||
|
||||
Reference in New Issue
Block a user