eloquentarduino / EloquentTinyML

Eloquent interface to Tensorflow Lite for Microcontrollers
301 stars 57 forks source link

Error compiling for board DOIT ESP32 DEVKIT V1 #30

Closed embedragx closed 10 months ago

embedragx commented 3 years ago

error: insn does not satisfy its constraints: } ^ (insn 45 1406 1640 111 (set (reg:SF 19 f0 [orig:198 _248 ] [198]) (mem/u/c:SF (symbol_ref/u:SI ("*.LC101") [flags 0x2]) [0 S4 A32])) "c:\Users\raghu\Documents\Arduino\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h":44 47 {movsf_internal} (expr_list:REG_EQUAL (const_double:SF 6.0e+0 [0x0.cp+3]) (nil))) during RTL pass: postreload

eloquentarduino commented 3 years ago

Can you make it work with other boards? Just select "ESP32 Dev Module" for example.

embedragx commented 3 years ago

In file included from C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src\tensorflow\lite\micro\kernels\svdf.cpp:25: C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h: In function 'float tflite::ops::micro::ActivationValFloat(TfLiteFusedActivation, float)': C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h:53:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src\tensorflow\lite\micro\kernels\svdf.cpp: In function 'TfLiteStatus tflite::ops::micro::svdf::Eval(TfLiteContext, TfLiteNode)': C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src\tensorflow\lite\micro\kernels\svdf.cpp:558:1: error: insn does not satisfy its constraints: } ^ (insn 45 1406 1640 111 (set (reg:SF 19 f0 [orig:198 _248 ] [198]) (mem/u/c:SF (symbol_ref/u:SI ("*.LC101") [flags 0x2]) [0 S4 A32])) "C:\Users\raghu\Documents\Arduino\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h":44 47 {movsf_internal} (expr_list:REG_EQUAL (const_double:SF 6.0e+0 [0x0.cp+3]) (nil))) during RTL pass: postreload C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src\tensorflow\lite\micro\kernels\svdf.cpp:558:1: internal compiler error: in extract_constrain_insn, at recog.c:2210 Please submit a full bug report, with preprocessed source if appropriate. See https://gcc.gnu.org/bugs/ for instructions. Using library EloquentTinyML-master at version 0.0.10 in folder: C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master exit status 1 Error compiling for board ESP32 Dev Module.

Same Error ....

eloquentarduino commented 3 years ago

Try to delete the EloquentTinyML-master folder from the Arduino\libraries folder and install the library via Arduino IDE library manager.

arnaudonate commented 3 years ago

I have a similar issue, I'm trying to compile it for "ESP32 Dev Module", I tried uncommenting the min/max but the error is the following:

In file included from C:\Users\...\libraries\EloquentTinyML-master\src\tensorflow\lite\micro\kernels\svdf.cpp:25:0:

C:\Users\...\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h: In function 'float tflite::ops::micro::ActivationValFloat(TfLiteFusedActivation, float)':

C:\Users\...\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h:53:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1plus.exe: some warnings being treated as errors
exit status 1
Error compiling for board ESP32 Dev Module.

I'm just trying to upload the example files for the SineExample.ino, hope you can help as I already followed your recommendations here in the thread and doesn't work yet
eloquentarduino commented 3 years ago

I can confirm it worked on "ESP32 Dev Module" since I used it in my own development. I will take time to look at those files that gives you error. Can you please confirm which core are you using for the ESP32?

arnaudonate commented 3 years ago

Sure, thanks for the quick reply!

I'm usign the ESP32-WROOM-32 (On an AZDelivery dev board), I've had some issues in the past with the BUILTIN_LED, I usually need to write pin 1 directly otherwise it won't work. Not sure if that can be related at all, hope it can bring some light into the matter.

Thank you for your help!

eloquentarduino commented 3 years ago

I updated the library. Please install from Github since I didn't published on the Arduino Library Manager yet since I made a major update and need to test yet.

arnaudonate commented 3 years ago

Thank you so much! I will tets it now :) This is very helpful!

embedragx commented 3 years ago

I will try it soon.

And thnx for the effort 👍