# Image writer to SD on RT1062

**URL:** <https://forums.openmv.io/t/image-writer-to-sd-on-rt1062/9242>\
**Category:** OpenMV Boards\
**Created:** [February 22, 2024, 5:43pm UTC](https://forums.openmv.io/t/image-writer-to-sd-on-rt1062/9242 "2024-02-22T17:43:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stub](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Stub](https://forums.openmv.io/u/Stub)\
**Post date:** [February 22, 2024, 5:43pm UTC](https://forums.openmv.io/t/image-writer-to-sd-on-rt1062/9242/1 "2024-02-22T17:43:49Z")

</div>

Hi,

I am having some difficulties with SD cards becoming corrupt after a some use. I am also getting an OSError whenever I write a file with the image writer. This also happens with the sample code imageio\_write. I am writing hundreds of short clips to SD, each one gets the OSError, so I am wondering if the OSError is a clue as to what is happening…? (I have formatted another card and tried again with the same result)

Do you get the same error? If so do you know what it means?

---

<div class="post-metadata">

**Author:** ![Stub](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Stub](https://forums.openmv.io/u/Stub)\
**Post date:** [February 22, 2024, 5:45pm UTC](https://forums.openmv.io/t/image-writer-to-sd-on-rt1062/9242/2 "2024-02-22T17:45:23Z")

</div>

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/c/c31caf79e6473058473f186bcbde46fa8195c571.png)

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [February 22, 2024, 7:05pm UTC](https://forums.openmv.io/t/image-writer-to-sd-on-rt1062/9242/3 "2024-02-22T19:05:33Z")

</div>

Hi, that code is just a way to raise an error message box in the IDE so that you understand you have to reset the camera so that the PC can see the new file.

It’s not actually an error.

---

<div class="post-metadata">

**Author:** ![Stub](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Stub](https://forums.openmv.io/u/Stub)\
**Post date:** [February 22, 2024, 7:33pm UTC](https://forums.openmv.io/t/image-writer-to-sd-on-rt1062/9242/4 "2024-02-22T19:33:12Z")

</div>

Hi,

I still get OSError when the raise is commented out.

---

<div class="post-metadata">

**Author:** ![Stub](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Stub](https://forums.openmv.io/u/Stub)\
**Post date:** [February 22, 2024, 7:33pm UTC](https://forums.openmv.io/t/image-writer-to-sd-on-rt1062/9242/5 "2024-02-22T19:33:45Z")

</div>

And indeed in my code where I do not use raise.

---

<div class="post-metadata">

**Author:** ![Stub](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Stub](https://forums.openmv.io/u/Stub)\
**Post date:** [February 22, 2024, 7:34pm UTC](https://forums.openmv.io/t/image-writer-to-sd-on-rt1062/9242/6 "2024-02-22T19:34:11Z")

</div>

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/3/3893aef871bd1beaee597ea157948e3973eaad1b.png)

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [February 22, 2024, 11:40pm UTC](https://forums.openmv.io/t/image-writer-to-sd-on-rt1062/9242/7 "2024-02-22T23:40:46Z")

</div>

Hi,

I think you can ignore that error. It’s just the script ending.

I thought I fixed that being displayed a while back… let me check if it’s still a thing.

---

<div class="post-metadata">

**Author:** ![Stub](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Stub](https://forums.openmv.io/u/Stub)\
**Post date:** [February 23, 2024, 10:49am UTC](https://forums.openmv.io/t/image-writer-to-sd-on-rt1062/9242/8 "2024-02-23T10:49:33Z")

</div>

OK. Thanks for checking…
