# OpenMV can't build a new firmware for Nicla Vision

**URL:** <https://forums.openmv.io/t/openmv-cant-build-a-new-firmware-for-nicla-vision/8200>\
**Category:** Arduino Boards\
**Created:** [April 6, 2023, 9:53pm UTC](https://forums.openmv.io/t/openmv-cant-build-a-new-firmware-for-nicla-vision/8200 "2023-04-06T21:53:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillengap](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@guillengap](https://forums.openmv.io/u/guillengap)\
**Post date:** [April 6, 2023, 9:53pm UTC](https://forums.openmv.io/t/openmv-cant-build-a-new-firmware-for-nicla-vision/8200/1 "2023-04-06T21:53:26Z")

</div>

**Hi everyone!**

I am using Nicla Vision, and have followed all steps for Image Classification with Edge Impulse and OpenMV in this link:

- [https://docs.arduino.cc/tutorials/nicla-vision/image-classification](https://docs.arduino.cc/tutorials/nicla-vision/image-classification)

However, I can’t finish the last step: “7. Test the Model”. Everything is fine until I create and deploy a library with OpenMV in Edge Impulse.

Since the Nicla Vision doesn’t have any on-board SRAM we need to build the machine learning model into the firmware and load it from the flash. So, I go to the openmv girhub and fork the repository.

Then, I rename the machine learning model and the label file, and In my fork, I replace the built-in machine learning model under src/lib/libtf/models with the model downloaded from Edge Impulse. Finally, It fails to build a new firmware for Nicla Vision.

I have repeated this process 3 times, I have changed the image size to 96 and 48, used Grayscale, etc. etc and nothing works.

My openmv project on github is public, and you can see these errors below:

- [Add files via upload · guillengap/openmv@b8fe6b7 · GitHub](https://github.com/guillengap/openmv/actions/runs/4625517604)

**Note:** openmv only build firmware for OPENMV2, NANO33, and ARDUINO\_NANO\_RP2040\_CONNECT

**Conclusion? This doesn’t work, or maybe I’m doing something wrong. Please I need technical support**

**Kind regards**

 ![errors](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/b/bc519dbc4fab0aa0dd7c95b19dd7c5b012d2120c.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:** [April 6, 2023, 10:18pm UTC](https://forums.openmv.io/t/openmv-cant-build-a-new-firmware-for-nicla-vision/8200/2 "2023-04-06T22:18:57Z")

</div>

If you check the build log you’ll see the compile fails because your model is too big by 640KB. So, you need to massively reduce the size of your model.

---

<div class="post-metadata">

**Author:** ![guillengap](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@guillengap](https://forums.openmv.io/u/guillengap)\
**Post date:** [April 7, 2023, 1:42am UTC](https://forums.openmv.io/t/openmv-cant-build-a-new-firmware-for-nicla-vision/8200/3 "2023-04-07T01:42:50Z")

</div>

Hi @kwagyeman

Thanks for your support! I followed your advice and it works … I sacrificed some precision to get the size of my model down. I think that by trial and error I will be able to make my model more optimal.

If anyone is stuck on this issue, I’m posting a project on element14, and I’ll post my experience with OpenMV, Nicla Vision, and Edge Impulse at the link below:

> **[Bees Monitor With Predators Repellent # 1 - Introduction](https://community.element14.com/challenges-projects/design-challenges/save-the-bees-design-challenge/b/blog/posts/bees-monitor-with-predators-repellent-1---introduction)**
>
> Table of ContentsIntroductionGetting StartedEdge ImpulseHi everyone! Below I show you the idea of my project to protect bees from their invertebrate predators. For this, I will use Machine Learning, which is not so easy since I intend to have a high...

Kind regards

Guillermo

---

<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:** [April 7, 2023, 2:11am UTC](https://forums.openmv.io/t/openmv-cant-build-a-new-firmware-for-nicla-vision/8200/4 "2023-04-07T02:11:21Z")

</div>

Glad you were able to get is solved.

We have a new version of the system we are about to launch. It will not have this issue.
