diff options
author | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2007-07-25 10:06:57 +0000 |
---|---|---|
committer | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2007-07-25 10:06:57 +0000 |
commit | 290e01c62afdfd5f6eb76a4caef266344510f2c0 (patch) | |
tree | d1bc200336f595ce782427f6c86724f7135aa16b /src/flash | |
parent | 1429d2c659ab9b84dee673e7697da7eab44a8f90 (diff) | |
download | openocd+libswd-290e01c62afdfd5f6eb76a4caef266344510f2c0.tar.gz openocd+libswd-290e01c62afdfd5f6eb76a4caef266344510f2c0.tar.bz2 openocd+libswd-290e01c62afdfd5f6eb76a4caef266344510f2c0.tar.xz openocd+libswd-290e01c62afdfd5f6eb76a4caef266344510f2c0.zip |
- reformat src/jtag/bitq.c (thanks to Pavel Chromy)
- fix multiple reads from FT2232 into same buffer location (thanks to Magnus Lundin)
- retry JTAG chain validation (thanks to Magnus Lundin)
- reworked GDB packet input handling (thanks to Pavel Chromy)
- output error message when setting a watchpoint failed
- removed duplicate out-of-bounds check in at91sam7.c (thanks to Pavel Chromy)
git-svn-id: svn://svn.berlios.de/openocd/trunk@181 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/at91sam7.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/flash/at91sam7.c b/src/flash/at91sam7.c index 7b9fb659..0d97c34c 100644 --- a/src/flash/at91sam7.c +++ b/src/flash/at91sam7.c @@ -675,9 +675,6 @@ int at91sam7_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count) return ERROR_FLASH_DST_BREAKS_ALIGNMENT; } - if (offset + count > bank->size) - return ERROR_FLASH_DST_OUT_OF_BANK; - if (at91sam7_info->cidr_arch == 0) return ERROR_FLASH_BANK_NOT_PROBED; @@ -688,7 +685,7 @@ int at91sam7_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count) /* Configure the flash controller timing */ at91sam7_read_clock_info(bank); - at91sam7_set_flash_mode(bank,FMR_TIMING_FLASH); + at91sam7_set_flash_mode(bank,FMR_TIMING_FLASH); for (pagen=first_page; pagen<last_page; pagen++) { if (bytes_remaining<dst_min_alignment) |