]> git.sur5r.net Git - openocd/commitdiff
- free working area used to store flash write buffer
authordrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 7 Sep 2006 17:50:02 +0000 (17:50 +0000)
committerdrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 7 Sep 2006 17:50:02 +0000 (17:50 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@96 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/str7x.c

index 8dc00d0868e4409fbdfa187becedfe8e6995b4b4..81fa9bcf82a550abcec36ac14be2e1150e837050 100644 (file)
@@ -474,6 +474,8 @@ int str7x_write_block(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 cou
                count -= thisrun_count;
        }
        
+       target_free_working_area(target, source);
+       
        destroy_reg_param(&reg_params[0]);
        destroy_reg_param(&reg_params[1]);
        destroy_reg_param(&reg_params[2]);