X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fimage.c;h=9bd8f6b0c6f492074ae56b0571273a5329efd784;hb=17a052d6fe44fc265d48e94bdd3356d6f25ca064;hp=0d98c57b2a5d414edb2e835e0b488fafd315216e;hpb=4a9a07b1c5189e8f9024fa843f511a0e948e61b5;p=openocd.git 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) {