diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-05-03 18:11:34 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-05-04 09:11:21 +0200 |
commit | 282e89c878fd43ba90f0a9416adce81c5f596af7 (patch) | |
tree | 0f1839a7fcd3cb841907969d6f72d26ee7715c1a /src/flash/nor/lpc2900.c | |
parent | 70226c221f5879bb6126ff3f2ec9ae64c68d80d6 (diff) |
flash: less bogus errors
Removed bogus errors when trying to allocate a large
a target memory buffer as possible.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/flash/nor/lpc2900.c')
-rw-r--r-- | src/flash/nor/lpc2900.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/lpc2900.c b/src/flash/nor/lpc2900.c index 360c14de..5b004951 100644 --- a/src/flash/nor/lpc2900.c +++ b/src/flash/nor/lpc2900.c @@ -1288,7 +1288,7 @@ static int lpc2900_write(struct flash_bank *bank, uint8_t *buffer, reduced size if that fails. */ struct working_area *warea; uint32_t buffer_size = lpc2900_info->max_ram_block - 1 * KiB; - while( (retval = target_alloc_working_area(target, + while( (retval = target_alloc_working_area_try(target, buffer_size + target_code_size, &warea)) != ERROR_OK ) { |