]> git.sur5r.net Git - openocd/blobdiff - src/flash/nor/stellaris.c
flash: less bogus errors
[openocd] / src / flash / nor / stellaris.c
index 0b7c45a31f45ba241d6df6e21c869d0315a3dae4..cce5f3700121eb8e46761a84f005d3b14bcfb577 100644 (file)
@@ -846,7 +846,7 @@ static int stellaris_write_block(struct flash_bank *bank,
                buffer_size = wcount * 4;
 
        /* memory buffer */
-       while (target_alloc_working_area(target, buffer_size, &source) != ERROR_OK)
+       while (target_alloc_working_area_try(target, buffer_size, &source) != ERROR_OK)
        {
                buffer_size /= 2;
                if (buffer_size <= buf_min)