FOMO Model for Portenta H7 Build Failure

Question/Issue: Why is the build failing?

Project ID: 113205

Context/Use case:Login - Edge Impulse

The build output shows:

Library Portenta_Audio has been declared precompiled:
Precompiled library in “/root/.arduino15/packages/arduino/hardware/mbed_portenta/2.8.0/libraries/Portenta_Audio/src/cortex-m7/fpv5-d16-softfp” not found
Using precompiled library in /root/.arduino15/packages/arduino/hardware/mbed_portenta/2.8.0/libraries/Portenta_Audio/src/cortex-m7
Still building…
Still building…
Still building…
Still building…
Still building…
/tmp/arduino-sketch-69B153BD87785079E90CB38B66839D39/linker_script.ld:104 cannot move location counter backwards (from 00000000240d1f00 to 000000002407fc00)
collect2: error: ld returned 1 exit status

Error during build: exit status 1

real 4m49.194s
user 4m36.846s
sys 2m57.084s
Application exited with code 1

Job failed (see above)

Hello @MMarcial,

I can reproduce your issue, I’m creating an internal ticket to check with our embedded engineers what’s the issue.

Regards,

Louis

Hello @MMarcial,

@Arjan just had a look at your project.

The model doesn’t fit in RAM. Due dynamic heap usage. The error description isn’t really informative unfortunately. He tried with a 96x96 input size and it works.

Regards,

Louis

Thank you. Your solution works: In the “Image Data” block changing “Image Width” to 96 and change “Image Height” to 96.