Error Building firmware failed for ARDUINO_NICLA_VISION

Question/Issue:
[While trying to deploy a very simple impulse with selected deployment option "OpenMV Firmware

Firmware binary that includes your model and runs on OpenMV cameras". it fails the build for Arduino Nicla vision]

Project ID:
[Project name OrangeNutsDetector]

Context/Use case:
[I’m following the Arduino tutorial Image Classification with Edge Impulse®

Transfer learning: MobileNetV2 96x96 0.1 (final layer: 4 neurons, 0.1 dropout)
Input layer (6,912 features)
Selected model: Quantized (int8), Total RAM 124,2 K

Summary:
[The bug is the failure within Edge Impulse to build the firmware for Nicla Vision]

Expected Results:
[Completion of the Deployment process on Edge Impulse without error for Nicla Vision]

Actual Results:
[I get the error Error Building firmware failed for ARDUINO_NICLA_VISION ]

Reproducibility:

  • [X ] Always
  • [ ] Sometimes
  • [ ] Rarely

Environment:

  • Platform: [e.g., Nicla Vision.]

  • Edge Impulse Version (Firmware): [not relevant since it’s the build on the edgeimpulse web platform not working]
    Logs/Attachments:
    [Include any logs or screenshots that may help in diagnosing the issue]

Logs/Attachments:
[Building firmware…
GEN /app/openmv/src/ARDUINO_NICLA_VISION_build/lib/libtf/libtf_builtin_models.c
GEN /app/openmv/src/ARDUINO_NICLA_VISION_build/lib/libtf/libtf_builtin_models.h
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Including User C Module from /app/openmv/src/omv/modules
GEN /app/openmv/src/ARDUINO_NICLA_VISION_build/micropython/genhdr/mpversion.h
CC /app/openmv/src/omv/modules/py_tf.c
CC …/…/py/modsys.c
CC …/…/extmod/modos.c
CC …/…/extmod/modplatform.c
CC …/…/shared/runtime/pyexec.c
/opt/gcc/gcc-arm-none-eabi-10-2020-q4-major/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld: /app/openmv/src/ARDUINO_NICLA_VISION_build/bin/firmware.elf section `.text’ will not fit in region `FLASH_TEXT’
/opt/gcc/gcc-arm-none-eabi-10-2020-q4-major/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld: region `FLASH_TEXT’ overflowed by 127504 bytes
collect2: error: ld returned 1 exit status
make: *** [/app/openmv/src/omv/ports/stm32/omv_portconfig.mk:695: firmware] Error 1
Building firmware failed for ARDUINO_NICLA_VISION]

Additional Information:
[the same process for Fruit-Detector - Dashboard - Edge Impulse worked]

Hi @apagliari

Do you still encounter this issue? We have recently worked with OpenMV bring our firmware to the latest, and optimized for the device flash storage. Can you try exporting the firmware for this project again?

Best

Eoin

Hi. Today I tried the same tutorial and got the same error, several deployments but got the same error.

Hey @pedromvlsilva!

Thanks for bubbling this back up for us!

We dug into this a bit and found that while the MobileNetV2 model doesn’t build for the Nicla Vision, the MobileNetV1 does for the same settings as suggested in the Arduino guide.

You can also use the MobileNetV2 0.05 model rather than the MobileNetV2 0.1 model.

Let us know if this helps or if you run into any other issues.

Cheers,
Heath