"[Error] Failed to open f_model." and "Compilation error: exit status 1"

I just tried to update to 4.07. When I try to compile (even the built-in libraries), I get the following output:

QBN: realtek:AmebaPro2:Ameba_AMB82-MINI
Using board 'Ameba_AMB82-MINI' from platform in folder: C:\Users\REdel\AppData\Local\Arduino15\packages\realtek\hardware\AmebaPro2\4.0.7
Using core 'ambpro2' from platform in folder: C:\Users\REdel\AppData\Local\Arduino15\packages\realtek\hardware\AmebaPro2\4.0.7

"C:\\Users\\REdel\\AppData\\Local\\Arduino15\\packages\\realtek\\tools\\ameba_pro2_tools\\1.3.4/prebuild_windows.exe" "C:\\Users\\REdel\\AppData\\Local\\Arduino15\\packages\\realtek\\tools\\ameba_pro2_toolchain\\1.0.1-p1" ameba_pro2_toolchain/1.0.1-p1 ameba_pro2_toolchain2/1.0.1-p2 ameba_pro2_toolchain ameba_pro2_toolchain2 "C:\\Users\\REdel\\AppData\\Local\\Arduino15\\packages\\realtek\\hardware\\AmebaPro2\\4.0.7" JXF37 ameba_pro2_nn_models/1.0.0 ameba_pro2_nn_models
if exist C:\Users\REdel\AppData\Local\Arduino15\packages\realtek\hardware\AmebaPro2\4.0.7\variants\common_libs\libarduino_sensor_sel.adel C:\Users\REdel\AppData\Local\Arduino15\packages\realtek\hardware\AmebaPro2\4.0.7\variants\common_libs\libarduino_sensor_sel.a
if exist ameba_pro2_toolchain2/1.0.1-p2 xcopy /y /s "ameba_pro2_toolchain2/1.0.1-p2" "ameba_pro2_toolchain/1.0.1-p1"
if exist ameba_pro2_toolchain2 rmdir /s /q ameba_pro2_toolchain2
if exist ameba_pro2_nn_models/1.0.0 xcopy /y /s "ameba_pro2_nn_models/1.0.0" "C:\Users\REdel\AppData\Local\Arduino15\packages\realtek\hardware\AmebaPro2\4.0.7\variants"
if exist ameba_pro2_nn_models rmdir /s /q ameba_pro2_nn_models
copy C:\Users\REdel\AppData\Local\Arduino15\packages\realtek\hardware\AmebaPro2\4.0.7\variants\common_sensor_sel_libs\SENSOR_F37\libarduino_sensor_sel.a C:\Users\REdel\AppData\Local\Arduino15\packages\realtek\hardware\AmebaPro2\4.0.7\variants\common_libs\libarduino_sensor_sel.a
        1 file(s) copied.
[Error] Failed to open f_model.
"C:\\Users\\REdel\\AppData\\Local\\Arduino15\\packages\\realtek\\tools\\ameba_pro2_tools\\1.3.4/ino_validation_windows.exe" "C:\\Users\\REdel\\AppData\\Local\\Temp\\arduino\\sketches\\23E527D5633159B33C428721938B959B" "C:\\Users\\REdel\\AppData\\Local\\Arduino15\\packages\\realtek\\tools\\ameba_pro2_tools\\1.3.4" LoadFromFlash
exit status 1

Compilation error: exit status 1

The above was from trying to compile the library C:\Users\REdel\AppData\Local\Arduino15\packages\realtek\hardware\AmebaPro2\4.0.7\libraries\NeuralNetwork\examples\RTSPImageClassification\RTSPImageClassification.ino

Verbose output is checked:
image

I’ve already tried:

  1. Downgrading and upgrading the SDK
  2. Completely reinstalling the SDK (including removing the realtek folder in C:\Users\REdel\AppData\Local\Arduino15\packages and all AMB82 staging files.

Please help.

Thanks!

Solved.

Apparently, now the project files need to be in the %Documents%/Arduino folder.

This wasn’t documented anywhere (or if it was, then I must have missed it).

It would really help if the Arduino SDK for AMB82-Mini would allow us to store project files anywhere as long as they are with the .ino file.