X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fimage.c;h=9bd8f6b0c6f492074ae56b0571273a5329efd784;hp=0d98c57b2a5d414edb2e835e0b488fafd315216e;hb=5b350bf05c7f9e092ae030e0ace9e63114224ddb;hpb=3da1b2e657233c7c19ea1e8952508f2030e8585b diff --git a/src/target/image.c b/src/target/image.c index 0d98c57b2a..9bd8f6b0c6 100644 --- a/src/target/image.c +++ b/src/target/image.c @@ -643,8 +643,8 @@ static int image_mot_buffer_complete_inner(struct image *image, section[image->num_sections].size += 1; full_address++; } - } else if (record_type == 5) { - /* S5 is the data count record, we ignore it */ + } else if (record_type == 5 || record_type == 6) { + /* S5 and S6 are the data count records, we ignore them */ uint32_t dummy; while (count-- > 0) {